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

Paging problem

7 Answers 426 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
chander
Top achievements
Rank 1
chander asked on 16 Oct 2008, 05:52 PM
Is there a way I can embed the Telerik Report viewer and not have it conform to the in-built paging. In simple words have all the pages of the report extend down the viewer in the webpage. Meaning not getting a Page by Page output.

7 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 17 Oct 2008, 01:19 PM
Hi chander,

It is not possible to turn off paging out of the box. However you can show all pages of the report in the web ReportViewer by setting PageKind=Custom and a big number for PageSize, which you're sure would be enough to show all pages on a single one.
The limitation of this approach is that even when you export in any format, all pages would be still shown in this single huge page. What you can do to avoid this is hide the built-in Toolbar of the ReportViewer, prepare your own UI for the export formats and export the report through code. This way you can change the PageSize before the export.

Best wishes,
Steve
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Gezim
Top achievements
Rank 1
answered on 10 Jul 2012, 10:30 PM
Steve,

Where would I find PageKind and PageSize settings? I don't see them in the report viewer's properties.

Thanks,
-GEzim
0
Steve
Telerik team
answered on 11 Jul 2012, 06:57 AM
Hi Gezim,

The PaperKind and PaperSize Properties are part of the PageSettings available in the property grid of the report.

All the best,
Steve
the Telerik team

BLOGGERS WANTED! Write a review about Telerik Reporting or the new Report Designer, post it on your blog and get a complimentary license for Telerik Reporting. We’ll even promote your blog and help bring you a few fresh readers. Yes, it’s that simple. And it’s free. Get started today >

0
Gezim
Top achievements
Rank 1
answered on 11 Jul 2012, 10:35 PM
Thanks for the clarification, Steve.

However, I was looking for a way to disable paging altogether and have the report pages (if there are more than 1) show up all together without the need to page. PaperKind and PaperSize do not give me that, reliably.
0
Elian
Telerik team
answered on 16 Jul 2012, 11:47 AM
Hello Gezim,

This scenario is a bit off the typical usage of the Reporting tool and this is the reason we haven't created means of handling such cases.
Changing the paper size is the only option that could get you somewhere close to the layout you want.
In Q3 2011 we introduced the Interactive Layout - while in this mode (by default), even if the paper is bigger than the report, it won't be drawn (there won't be empty space after the report's end) and at the same time the report will be in one page.
 
Kind regards,
Elian
the Telerik team

BLOGGERS WANTED! Write a review about Telerik Reporting or the new Report Designer, post it on your blog and get a complimentary license for Telerik Reporting. We’ll even promote your blog and help bring you a few fresh readers. Yes, it’s that simple. And it’s free. Get started today >

0
Gezim
Top achievements
Rank 1
answered on 16 Jul 2012, 04:03 PM
Elian wrote:
"In Q3 2011 we introduced the Interactive Layout - while in this mode (by default), even if the paper is bigger than the report, it won't be drawn (there won't be empty space after the report's end) and at the same time the report will be in one page."

Hi Elian,

This would solve my problem except that the width doesn't work as you described. It's still renders the width you specify even in interactive mode. See screenshot I attached.

this.PageSettings.PaperKind = System.Drawing.Printing.PaperKind.Custom;
Telerik.Reporting.Drawing.SizeU size = new Telerik.Reporting.Drawing.SizeU(new System.Drawing.Size(1000000, 1000000));
this.PageSettings.PaperSize = size;
0
Elian
Telerik team
answered on 19 Jul 2012, 09:10 AM
Hello Gezim,

Which view mode of the viewer is used when the screenshot is taken? Normally in Interactive Layout, the horizontal scrollbar should not appear. However if it is only for viewing purposes, you do not need to set the page width to a big number, since in Interactive Layout horizontal paging does not occur. 
 
Greetings,
Elian
the Telerik team

BLOGGERS WANTED! Write a review about Telerik Reporting or the new Report Designer, post it on your blog and get a complimentary license for Telerik Reporting. We’ll even promote your blog and help bring you a few fresh readers. Yes, it’s that simple. And it’s free. Get started today >

Tags
General Discussions
Asked by
chander
Top achievements
Rank 1
Answers by
Steve
Telerik team
Gezim
Top achievements
Rank 1
Elian
Telerik team
Share this question
or