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

Center align Web Report Viewer

6 Answers 1216 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Oboro
Top achievements
Rank 1
Oboro asked on 24 May 2009, 06:04 AM
Am designing a report for a web application and there is a need to center (horizontally) the web report viewer. I have tried all I can but it refuses to center align. Please, any ideas how to get this done?

6 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 25 May 2009, 10:07 AM
Hi Jite,

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.
0
Michael
Top achievements
Rank 1
answered on 06 Jul 2012, 02:26 PM
Hi

How can I center a report inside of your asp.net ReportViewer?

Thanks
0
Steve
Telerik team
answered on 06 Jul 2012, 02:35 PM
Hello Dan,

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 >

0
Michael
Top achievements
Rank 1
answered on 09 Jul 2012, 07:12 AM
Hi Steve

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!!!
0
Steve
Telerik team
answered on 09 Jul 2012, 07:53 AM
Hello Dan,

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 >

0
Michael
Top achievements
Rank 1
answered on 09 Jul 2012, 08:34 AM
Thanks Steve!

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!
Tags
General Discussions
Asked by
Oboro
Top achievements
Rank 1
Answers by
Steve
Telerik team
Michael
Top achievements
Rank 1
Share this question
or