This is a migrated thread and some comments may be shown as answers.

Get Printer Name

1 Answer 60 Views
PdfViewer and PdfViewerNavigator
This is a migrated thread and some comments may be shown as answers.
Ole
Top achievements
Rank 1
Ole asked on 12 Feb 2014, 09:22 PM
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

1 Answer, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 17 Feb 2014, 12:14 PM
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).

Tags
PdfViewer and PdfViewerNavigator
Asked by
Ole
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
Share this question
or