He desarrollado un aplicacion que imprime datos desde una base de datos de Sql server, al buscar los datos no hay ningun problema, el problema esta al querer imprimir, la aplicacion esta desarrollada en asp.net con visual studio 2003 y se encuentra en un servidor, windows 2000 advance.
Este es el error que me genera.
Server Error in '/EtiquetasRx' Application.
--------------------------------------------------------------------------------
Access is denied
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.ComponentModel.Win32Exception: Access is denied
Source Error:
Line 215: While cant_imp_placas > 0
Line 216: 'Response.Write("11111111111111111111111")
Line 217: imprimePlaca.Print()
Line 218: 'Response.Write("11111111111111111111112")
Line 219: 'Response.End()
Source File: C:\Inetpub\wwwroot\EtiquetasRx\Default.aspx.vb Line: 217
Stack Trace:
[Win32Exception (0x80004005): Access is denied]
System.Windows.Forms.PrintControllerWithStatusDial og.OnStartPrint(PrintDocument document, PrintEventArgs e) +141
System.Drawing.Printing.PrintController.Print(Prin tDocument document) +128
System.Drawing.Printing.PrintDocument.Print() +22
EtiquetasRx.WebForm1.btImprimir_Click(Object sender, EventArgs e) in C:\Inetpub\wwwroot\EtiquetasRx\Default.aspx.vb:217
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +108
System.Web.UI.WebControls.Button.System.Web.UI.IPo stBackEventHandler.RaisePostBackEvent(String eventArgument) +57
System.Web.UI.Page.RaisePostBackEvent(IPostBackEve ntHandler sourceControl, String eventArgument) +18
System.Web.UI.Page.RaisePostBackEvent(NameValueCol lection postData) +33
System.Web.UI.Page.ProcessRequestMain() +1292
-------------------------------------------------------------
espero me puedan ayudar, llevo 1 semana tratando de solucionar este problema, y no he podido...