Skip to Content
0
Former Member
Aug 12, 2009 at 12:47 PM

Default printer in ASP.NET

87 Views

Hello Forum

In my ASP.NET application Im not able to take printouts if i set the printer name as empty (for default printer.)

The variable m_sPrinterName holds the selected printer name..

My code is :

crReport|Document.PrintOptions.PrinterName = m_sPrinterName
crReport|Document.PrintToPrinter(1,False,0,0)

My application doesnt print if the value of the variable m_sPrinterName is left empty

In the report design the NoPrinter check box is left unchecked.

DLL's details :

CrystalDecisions.CrystalReports.Engine 10.2.3600.0

Please help me ..

Srivatsa