Skip to Content
0
Former Member
Mar 04, 2011 at 09:30 PM

Crystal Reports Viewer Height

139 Views

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:

http://img832.imageshack.us/img832/9262/crystalviewer.jpg

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"
                ToolbarImagesFolderUrl="" 
                 Width="100%" HasCrystalLogo="False" 
                ReuseParameterValuesOnRefresh="True" ReportSourceID="CrystalReportSource1" 
                style="position: relative;" ToolPanelWidth="200px" />
            <CR:CrystalReportSource ID="CrystalReportSource1" runat="server">
                <Report FileName="CrystalReport2.rpt">
                </Report>
            </CR:CrystalReportSource>