At present, the method of obtaining the voltage of transmission lines by using the inverse problem of the electric field is generally faced with the difficulties of solving data equations. Aiming at the above problems, the method that solves transmission wire voltage through spatial electric field integration based on D-dot sensor is proposed. In this paper, with the ground as the reference potential and the vertical line of the transmission line to the ground as the integral path, D-dot electric field sensor is applied to measure the instant electric field values of several nodes on the integral path and the transmission wire voltage is directly solved combined with Gauss–Legendre numerical integration algorithm. The Gauss–Legendre algorithm is verified by the electric field distribution data on the integration path obtained by simulation. Furthermore, the improvement of the Gauss–Legendre algorithm is realized through optimizing the integral interval so that the location of integral nodes is more reasonable. Finally, the measurement system based on LabVIEW is designed and the experiment platform of the analog transmission line is constructed. Experiment results show that the measurement method of transmission wire voltage through the improved Gauss–Legendre algorithm based on D-dot sensor owns high accuracy with an error of less than 1%.