none
Can I supress Activation Error - "Printer not activated, error code - 20" and show my own message box. RRS feed

  • Question

  • I’m trying to implement print functionality in my application. My code goes like this.

    FixedDocument doc = new FixedDocument();

    PrintDialog pd = new PrintDialog();

    pd.PrintTicket.PageOrientation = System.Printing.PageOrientation.Landscape;

    pd.PrintDocument(doc.DocumentPaginator, Name);

    At this point when I select PDF printer I get Activation Error "Printer not activated, error code - 20".

    Can I avoid this pop up by applying some condition and show user my own message box?

    Tuesday, January 29, 2013 4:29 AM

Answers

All replies