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

Page Settings of a ReportBook

3 Answers 263 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Christian
Top achievements
Rank 1
Christian asked on 16 Dec 2009, 02:41 PM
Hi

I'm using the ReportBook to combine several reports, all of which have the same page settings with a PaperKind set to A5 (instead of the default A4).
The ReportBook is displayed in a WinForms ReportViever control embedded in a WPF Window. Now in the ReportViewer the "Page Settings..." button is disabled which is only the case when I'm displaying a ReportBook but is enabled when one of the individual reports that are shown in the ReportBook is displayed. This is not so bad as the Page Settings button rarely needed. But when printing, the ReportBook is printed in A4 even though it is displayed as if it was A5 in the ReportViewer. This also is not the case when printing an individual report (instead of a ReportBook) in A5. In that case the report is printed correctly. Also the "Advanced" dialog that can be viewed from the standard printing dialog shows A5 with an individual report but A4 with a report book.

So how can I get the report book to be really in A5 (I know that I can switch the paper size to A5 in the advanced printing dialog and it works but the users do already set the A5 format in some setting I'm providing so it's not user friendly to have them set it twice.)

Thanks and regards

Christian

3 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 19 Dec 2009, 02:00 PM
Hi Christian,

We've made some tests on our end and at first were surprised by the result and it seemed like you were right. However after some more tests by using MS XPS viewer as Default Printer (since our office printers support only Letter/A4) and testing the Print on other similar programs like Word/Excel etc. it would seem that there is no problem on our end.
The print dialog would return the PaperKind you've defined in the report, only if it recognizes that the printer supports this paper kind. On our end it always shows Letter as default as this is the supported one by our printer. The same is observed if you choose print from MS Word - only the supported paper kind of your default printer is shown. However if you set MS XPS viewer as Default Printer for example, you would notice that upon print, the correct paper kind is returned according to the specified one. So in such case, we're not sure where is the problem - in the printer, its drivers or something else, but it does not look like something that we can change/fix.

Regards,
Steve
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Christian
Top achievements
Rank 1
answered on 22 Dec 2009, 09:57 AM
Dear Steve

Thank you for your reply.
It's true that the printer will show its supported paper kind in the "advanced" dialog which ist A4 in all cases. But when viewing a report that was shaped for A5 and clicking the report viewer's page settings button, it shows A5 in the drop down. When printing, the report is printed in A5 format on the top left corner of the A4 paper.
But when viewing a report book that consists of some instances of the above mentioned A5 shaped report, the page settings dialog cannot be opened, so I'm not able to tell what default paper kind selection the drop down has. When printing that report book, instead of printing the output on the top left corner of the A4 paper, it is scaled to A4. So I wonder why the report book printing behaves differently. For our purpose it would be better to have the same behaviour as with the individual report.

Regards

Christian
0
Steve
Telerik team
answered on 22 Dec 2009, 04:29 PM
Hi Christian,

As explained in the Report Book help article, the Page Settings button is disabled by design when displaying a report book. That is because we cannot know what the PageSettings of the various report in the book are.
In such case the PageSettings of the first report are taken into account and if all of your reports have been set as A5, then they would be printed as A5 if your printer is recognized to support this format. That is what we have tried to explain in our previous post - that it is the printer settings that define the default paper kind. Please review our explanations there and try setting the MS XPS viewer as default printer to see how it behaves then.
On a side note, if feasible for your scenario, you can try combining your reports into a single one, by using the SubReport item. This way only the paper kind of the main report would be taken into account.

Regards,
Steve
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
General Discussions
Asked by
Christian
Top achievements
Rank 1
Answers by
Steve
Telerik team
Christian
Top achievements
Rank 1
Share this question
or