Tuesday, February 14, 2012

Does the webforms Report Viewer Control have a maximum width?

SSRS 2005
I have set the width of the Report Viewer Control in my page like this:
<rsweb:ReportViewer ... Width="100%" ... </rsweb:ReportViewer>
Which does what I want...it resizes the width of the control as the page
(browser) is made wider. However I noticed that on a high resolution display,
once the Report Viewer Control gets to a width of about 960 pixels, it no
longer widens as the page is made wider. It stays static at about 960 pixels
wide.
1. Was the control developed this way for a specific reason?
2. Am I doing something wrong?
3. Is there a way to have the control be as wide as the page is?
--
Chris, SSSIHello Chris,
Glad to see you again. How are you doing?
As for the webform ReportViewer widith property, it does support "100%"
relative size which can make the reportviewer control dynamically resize to
fit its parent container's width.
For your case ,you found that the reportViewer control stop stretching when
the width reach the 960px, I think it is likely a environment or project
specify issue. I've tested the webform reportViewer control on a machine
with 1280X1024 screen size and the reportViewer can correctly stretch to
the maximum wnidows size(in browser).
I think you can test in some other page or project with a simple page and
reportViewer control to see whether this problem occur among all the
conditions. Here is my test reportViewer's template:
====================<rsweb:ReportViewer ID="ReportViewer1" runat="server" Font-Names="Verdana"
Font-Size="8pt"
Height="400px" ProcessingMode="Remote" Width="100%">
<ServerReport ReportPath="/ReportProj1/GroupReport" />
</rsweb:ReportViewer>
====================
I think you can check the following things on your local side:
1. check whether you've any code in the page that will modify/limit the
width of the reportviewer control
2. Whether you can statically set the ReportViewr control's width to a
value maxmum to 960px , like Width="1100px"
3. You can also try programmtically set the "100%" width to see whether it
works, e.g.:
=========protected void Page_Load(object sender, EventArgs e)
{
ReportViewer1.Width = Unit.Percentage(100);
}
===========
Please feel free to let me know if you got any new finding or any thing
else we can help.
Sincerely,
Steven Cheng
Microsoft MSDN Online Support Lead
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.
Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.|||Hi Chris,
How are you doing on this issue, have you got any new progress or does the
information in my last reply helps you some?
If there is anything else we can help, please feel free to post here.
Sincerely,
Steven Cheng
Microsoft MSDN Online Support Lead
This posting is provided "AS IS" with no warranties, and confers no rights.|||Steven,
Thank for your quick reply to my post.
I have not had a chance to try your suggestions yet.
I will post back as soon as I know more.
--
Chris, SSSI
"Steven Cheng[MSFT]" wrote:
> Hi Chris,
> How are you doing on this issue, have you got any new progress or does the
> information in my last reply helps you some?
> If there is anything else we can help, please feel free to post here.
> Sincerely,
> Steven Cheng
> Microsoft MSDN Online Support Lead
>
> This posting is provided "AS IS" with no warranties, and confers no rights.
>|||Thank for your reply Chris,
Please feel free to let me know when you need any further helps.
Sincerely,
Steven Cheng
Microsoft MSDN Online Support Lead
This posting is provided "AS IS" with no warranties, and confers no rights.|||Hi Steve,
I created a simple page as you suggested and the Report Viewer Control does
size beyond 960 px wide. I tested on a display with 1600x1200 resolution.
The app uses a master page created by someone else, so I have to look deeper
into the code to see if someone set something with a width limit that is
causing my problem.
Thanks!
-- Chris
--
Chris, SSSI
"Steven Cheng[MSFT]" wrote:
> Thank for your reply Chris,
> Please feel free to let me know when you need any further helps.
> Sincerely,
> Steven Cheng
> Microsoft MSDN Online Support Lead
>
> This posting is provided "AS IS" with no warranties, and confers no rights.
>|||Hi Chris,
Glad that you've got some progress.
Please feel free to let me know if you finally figure out the problem.
Sincerely,
Steven Cheng
Microsoft MSDN Online Support Lead
This posting is provided "AS IS" with no warranties, and confers no rights.

No comments:

Post a Comment