Emission from Er-doped SnO2 thin film deposited via sol-gel by the dip coating technique is obtained in the range 500-700 nm with peak at 530 nm (green). Electron-hole generation in the tin dioxide matrix is used to promote the rare-earth ion excitation. Evaluation of crystallite dimensions through X-ray diffraction results leads to nanoscopic size, what could play a relevant role in the emission spectra. The electron-hole mechanism is also responsible for the excitation of the transition in the 1540 nm range in powders obtained from the same precursor solution of films. The thin film matrix presents a very useful shape for technological application, since it allows integration in optical devices and the application of electric fields to operate electroluminescent devices.