Error when i send to printer (PaperKind error)

Originally Posted 16 August 2012, 7:36 am EST

  • Originally Posted 16 August 2012, 7:36 am EST

    im trying to send directly to printer im using the next snippet



    rpt.Document.Printer.PrinterName = PrinterName;

    rpt.Document.Printer.PrinterSettings.Copies = _NumCopys;

    rpt.Document.Printer.DocumentName = "Test";

    rpt.Document.Print(false, false, false);



    all its ok in some printers but using "default" or letter (the printer its capable to print in letter) i got this error:



    Printer does not support Letter papersize. Please use PaperKind.Custom in your PageSettings or specify a papersize supported by the current printer



    so using custom seems not working, any help?

    Thanks
  • Reply

    jmeja,

    Could you please try setting the PrinterName property to " " (empty
    string) ,this will result in ActiveReports to use its virtual printer to
    get paper size settings. You may find more information on PrinterName
    property here.

    Whenever
    you run a report,Active Reports always looks for a Default
    Printer and the supported printer settings,Incase
    you do not have a Default Printer installed on your server,then you can
    tell Active Reports to use its virtual printer to get paper settings .

    Best Regards,
    Abhishek
Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels