How to show UI to select a printer?

0 Answers 117 Views
Dialog PDF Export
Francisco Roldan
Top achievements
Rank 1
Francisco Roldan asked on 06 May 2022, 09:20 AM

According to the docs ReportProcessor.PrintReport Method (ReportSource, PrinterSettings) API | Telerik Reporting the function reportProcessor.PrintRepor shoul accept null as a second paramenter in order to open the system dialog window, however, in reality this function requires a second parameter of type System.Drawing.Printing.PrinterSettings so null is not an option.

 

The thing is I want to prompt the user to select the printer they want to print to.

 

I´m using Asp.net core 6 MVC, with C#.

Dimitar
Telerik team
commented on 11 May 2022, 07:22 AM

For web applications, in order to start the print with the dialog, you may use the HTML5 Report Viewer and its print command, for example:

$('#printButton').click(function () {
    var rv = $("#reportViewer1").data("telerik_ReportViewer");
    rv.commands.print.exec();
});
 

No answers yet. Maybe you can help?

Tags
Dialog PDF Export
Asked by
Francisco Roldan
Top achievements
Rank 1
Share this question
or