Get Printer Name

2 posts, 0 answers
  1. Ole
    Ole avatar
    3 posts
    Member since:
    May 2008

    Posted 12 Feb 2014 Link to this post

    Is it possible to get the name of the printer that the user selected when printing a PDF document using the RadPdfViewer?

    Thanks in advance
  2. Dimitar
    Admin
    Dimitar avatar
    1415 posts

    Posted 17 Feb 2014 Link to this post

    Hello Ole,

    Thank you for contacting us.

    To access the printer name you can use the PrinterSettings property. To access that name before the actual printing (the user may have changed it) you can use the BeginPrint event:
    void document_BeginPrint(object sender, System.Drawing.Printing.PrintEventArgs e)
    {
         string PrinterName = document.PrinterSettings.PrinterName;         
    }

    More information about this is available in the following articles:

    I hope this will be useful. Should you have further questions, I would be glad to help.

    Regards,
    Dimitar
    Telerik

    Check out the new Telerik Platform - the only modular platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native apps. Register for the free online keynote and webinar to learn more about the Platform on Wednesday, February 12, 2014 at 11:00 a.m. ET (8:00 a.m. PT).

  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top