Replacement of hDC (printer) property of AR2 in AR13

Posted by: n.sudhir.makasare on 1 October 2019, 7:00 am EST

    • Post Options:
    • Link

    Posted 1 October 2019, 7:00 am EST

    i want to get AR13 equivalent for printer’s hDC property which was used in AR2.

  • Posted 3 October 2019, 7:10 am EST

    Hello,

    We are investigating on this and shall get back to you as soon as it is done (Internal Tracking ID: 276371).

    Thanks,

    Esha

    Note: Please post ActiveReports cases on the AR forums(https://www.grapecity.com/forums/activereports)

  • Posted 4 October 2019, 1:34 am EST

    Hello,

    You can use the PrinterSettings property of SystemPrinter class. You can learn about the same from here:

    https://help.grapecity.com/activereports/webhelp/AR13/webframe.html#GrapeCity.ActiveReports~GrapeCity.ActiveReports.SystemPrinter~PrinterSettings.html

    Also, you can use the Graphics object of SystemPrinter to return hDC in the PrintPage event, as follows:

    GrapeCity.ActiveReports.SystemPrinter my_printer = new GrapeCity.ActiveReports.SystemPrinter();
    IntPtr pt = my_printer.Graphics.GetHdc();
    ...
    my_printer.Graphics.ReleaseHdc(pt);
    

    Regards,

    Esha

Need extra support?

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

Learn More

Forum Channels