Skip to Content
author's profile photo Former Member
Former Member

Default printer in ASP.NET

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

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on Aug 12, 2009 at 02:01 PM

    Empty does not equal default. It is simply empty. You always have to specify the name of the printer, be it default or not.

    Ludek

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.