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

autosize report viewer

1 Answer 437 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
SHIRIN
Top achievements
Rank 1
SHIRIN asked on 27 Sep 2012, 12:44 PM
Hello,

We are using aspnet report viewer.
However we have some difficulties to auto size the viewer to fit content of the browser when it is resized by end user.
I can successfully auto size on the width using CSS and width = 100% but not the height.
Is there anyway to auto size the viewer height and width to fit content of the browser?

Here is the code:

    <form id="ReportManagement" runat="server" style="width: 100%">
    <div id="content" >
        <telerik:ReportViewer ID="ReportManagementViewer" runat="server"    
             Width="100%" ViewMode="PrintPreview"  Height="690px"
             ParametersAreaVisible="False" ShowParametersButton="False"
            ShowDocumentMapButton="False" ShowPrintPreviewButton="False" 
            ZoomPercent="200" ShowZoomSelect="False" ShowHistoryButtons="False">
        </telerik:ReportViewer>
    </div>   
    </form>

Width of the viewer can resize to fit the with of the browser, but it doesn't work for the height.
Thanks for your help
Regards

Joël

1 Answer, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 29 Sep 2012, 04:46 PM
Hello Joël,

Please refer to the following article: How do I set 100% height to the Web Report Viewer.

Regards,
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 >

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