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

Print page one 4 times, other 2 times

1 Answer 102 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Heiko
Top achievements
Rank 1
Iron
Veteran
Heiko asked on 26 Nov 2015, 05:41 PM

Hi!

 My customer has some strange requirement. From the ReportViewer (WPF) window he wants to click a button, then page one gets printed 4 times and all other pages from page two onwards should be printed 2 times. How can I achieve this with Telerik reporting?

Regards

Heiko

1 Answer, 1 is accepted

Sort by
0
Stef
Telerik team
answered on 27 Nov 2015, 12:38 PM
Hello Heiko,

I can suggest you the following approaches:
  1. Use the ReportProcesor.PrintReport method which will use the provided PrinterSettings on sending the report document to the printer;
  2. Use the ReportProcessor.RenderReport and export in PDF with additional device settings pointing which page to be rendered only (StartPage, EndPage). then the end-user can preview the PDF files and decide whether to print them. You can even inject Adobe Javascript (deviceInfo["JavaScript"] = "this.print({bUI: true, bSilent: false, bShrinkToFit: true});";) forcing the PDF reader to pop its Print dialog on previewing the exported reports.

To obtain the number of pages, you can use the WPF ReportViewer's API.


I hope this information is helpful.

Regards,
Stef
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
General Discussions
Asked by
Heiko
Top achievements
Rank 1
Iron
Veteran
Answers by
Stef
Telerik team
Share this question
or