Showing results for 
Search instead for 
Did you mean: 

Crystal Reports Viewer Height

Former Member
0 Kudos

I am working with crystal reports for VS2010, but when I set the height of the control to 100% and BestFitPage to false it does the following:

If I set it to a pixel value (I.e 500px) the viewer renders fine.

Any Ideas?

            <CR:CrystalReportViewer ID="myCrystalReportViewer" runat="server" 
                AutoDataBind="True" GroupTreeImagesFolderUrl="" Height="100%"  BestFitPage="False"
                 Width="100%" HasCrystalLogo="False" 
                ReuseParameterValuesOnRefresh="True" ReportSourceID="CrystalReportSource1" 
                style="position: relative;" ToolPanelWidth="200px" />
            <CR:CrystalReportSource ID="CrystalReportSource1" runat="server">
                <Report FileName="CrystalReport2.rpt">

View Entire Topic
Active Contributor
0 Kudos

I believe this is caused by it not knowing how big the page size is at the point it determines the size so it goes to the minimal size possible which is essentially just the toolbar. If you put the viewer onto another control that has a specific size available to it when it tries to render the viewer it would fill that control.