A novel approach for the two-dimensional reconstruction from slopes with the spline technique. It outperforms existing zonal wavefront reconstruction methods, especially at the boundaries. The reconstruction results indicate the proposed method is feasible and robust in practice.