
Estoy haciedno una aplicacion web con asp.net VB 2003... En una de las partes del sistema debo llenar un datagrid, mostrarlo en la pagina y exportarlo a excel, mientras estaba trabajando en localhost no tenia problemas con exportar a excel pero ahora que lo he pasado al servidor que mantendrá el sitio web, sale un problema y nose que hacer.
El problema es que al presionar el boton de exportar a excel, dice...
No printers are installed. To install a printer: In Microsoft Windows 2000, click Start, point to Settings, and then click Printers. Double-click Add Printer. In Microsoft Windows XP, click Start, and then click Printers and Faxes. Under Printer Tasks, click Add a printer. Follow the instructions in the wizard.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Runtime.InteropServices.COMException: No printers are installed. To install a printer: In Microsoft Windows 2000, click Start, point to Settings, and then click Printers. Double-click Add Printer. In Microsoft Windows XP, click Start, and then click Printers and Faxes. Under Printer Tasks, click Add a printer. Follow the instructions in the wizard.
Source Error:
Código:
en la parte que intento hacer preview del archivo excel, se cae...Line 290: ''objLibroExcel.SaveAs(nombre) Line 291: Line 292: objLibroExcel.PrintPreview() Line 293: objLibroExcel.Close() Line 294: 'Salir de Excel y liberar objetos
Primero pense que era porque el servidor no tenia impresora instalada (si tenía) le instalé otra impresora, la deje como predeterminada, etc...
Pero nada... que puedo hacer?
Espero que me puedan ayudar.. gracias!