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

Report format changed when viewer is constained

8 Answers 119 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Jonathan
Top achievements
Rank 1
Jonathan asked on 03 Jun 2008, 05:28 PM
Hi,

I have a report Viewer on a aspx page that uses a master page.  the content pane on this page is constrained by its inclusion inside a table on the master page which is set to a fixed width.

My question concerns the fact that the textbox items on the report wrap when the report viewer is constrained in width, screwing up the design.  When exported to pdf everytihng lays out as it should.  It would seem more intuitive for the report viewer to layout the report with its original design and use a horizontal scroll bar. How do I enable this functionality?

8 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 04 Jun 2008, 04:30 PM
Hi Jonathan,

Actually the missing scrollbar is problem caused by the improper box model of Internet Explorer. You can try this in every other browser (Firefox, Safari, Opera) and verify that it is working correctly. There are two possible workarounds:
  • remove the doctype from your page or find a doctype that works correctly for your scenario.
  • keep the doctype but set height to your table cell containing the ReportViewer and accordingly set height to every parent along the hierarchy.
Hope these help.
Kind regards,
Steve
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
rh
Top achievements
Rank 1
answered on 27 Sep 2008, 01:17 AM
I'm not clear on how setting the height would help the horizontal scrollbar appear.

Changing the doc type for me is not possible because the doc type is set in my master page.

It seems like telerik should provide a solution for this and make the report viewer work correctly in IE rather than say it is IE's fault.
0
Chavdar
Telerik team
answered on 29 Sep 2008, 09:55 AM
Hello rh,

Try to put the ReportViewer inside a div element with style="overflow-x: scroll" and check the result. For example:

   <div style="overflow-x: scroll">
     <telerik:ReportViewer ID="ReportViewer1" runat="server" Height="450px" Width="800px" />
   </div>       


If this does not help, please open a support ticket and send us the html source of the page so that we check it and suggest any other approach.

Kind regards,
Chavdar
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
rh
Top achievements
Rank 1
answered on 29 Sep 2008, 03:21 PM
OK, I've narrowed this down. If I have the following in my master page then the report viewer doesn't display correctly. I've reproduced this in a sample and will create a support ticket so you can see it. The problem for me is that I have some older code that isn't yet ready for strict doctype so I need to leave this in there. I guess I'll have to look into creating a separate master page just for the report viewer.

<!

DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

0
Chavdar
Telerik team
answered on 30 Sep 2008, 09:17 AM
Hi rh,

We will really appreciate if you send us the sample which reproduces the issue. Thank you in advance.

Best wishes,
Chavdar
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
techno
Top achievements
Rank 1
answered on 10 Feb 2009, 04:29 AM
hi i am facing the same problem where the table width inside report viewer control is compacted.

Please suggest the solution.

thanks
0
Steve
Telerik team
answered on 10 Feb 2009, 08:56 AM
Hello techno,

Please try the suggestions from my first post in this thread and let us know how it goes.

Greetings,
Steve
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
rh
Top achievements
Rank 1
answered on 10 Feb 2009, 05:05 PM
I had to do two things.

1) Use the div around the report viewer as described above
2) Remove the doctype from my master page. I ended up having to create a separate master page just for my report viewer page to support this.
Tags
General Discussions
Asked by
Jonathan
Top achievements
Rank 1
Answers by
Steve
Telerik team
rh
Top achievements
Rank 1
Chavdar
Telerik team
techno
Top achievements
Rank 1
Share this question
or