problemas para imprimir en asp.net

cristian vicencio rios
07 de Julio del 2010
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:InetpubwwwrootEtiquetasRxDefault.aspx.vb Line: 217

Stack Trace:


[Win32Exception (0x80004005): Access is denied]
System.Windows.Forms.PrintControllerWithStatusDialog.OnStartPrint(PrintDocument document, PrintEventArgs e) +141
System.Drawing.Printing.PrintController.Print(PrintDocument document) +128
System.Drawing.Printing.PrintDocument.Print() +22
EtiquetasRx.WebForm1.btImprimir_Click(Object sender, EventArgs e) in C:InetpubwwwrootEtiquetasRxDefault.aspx.vb:217
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +108
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +57
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +18
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
System.Web.UI.Page.ProcessRequestMain() +1292