6 Answers, 1 is accepted
You can center the report viewer like any other standard web control in an aspx page, either using <center> tag or css like explained in this article.
Greetings,
Steve
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
How can I center a report inside of your asp.net ReportViewer?
Thanks
You can switch between Interactive view and Print Preview, using the toggle button right next to the refresh button in the viewer toolbar. The Interactive view starts the layout from top left, while the Print preview will give you a glance of how the report would look when printed and therefore it would respect the page margins, so if your left and right margins are the same, it would be centered. If you wish to start with Print Preview as default view, set the ViewMode Property of the viewer to PrintPreview.
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 >
Thanks you for your short time reply; a very nice surprise :).I fully understand your suggestion, but I'm more interested to have report centered in Interactive view; it's not a big issue if this is not possible, but it would be nice for the customer.
I remember in earlier versions this was a default thing, please see attached file.
Thank you for your time and help!!!
In earlier versions we did not have interactive view and the goal of the HTML rendering was different. Now the purpose of the Interactive View is to represent the report as a logical layout that removes the strict restrictions for report pagination on the client by utilizing a simpler paging algorithm. In other words, you could have a two-page long table which to appear in a single continuous form on the client with a vertical scroll bar (logical layout); when printed, the table will print on two separate sheets of paper (print layout).
In short, there is no out of the box way to accomplish that, but can probably be done with the help of some javascript. Still we do not recommend that as it goes against the interactive view layout and in such case we suggest using the Print Preview.
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 >
I'll pass the answer to my customer; I hope he'll accept it and move forward :)
Thanks again for your assistance and have a great week!