cancel
Showing results for 
Search instead for 
Did you mean: 

Crystal Reports Viewer Height

Former Member
0 Kudos
220

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>

View Entire Topic
Adam_Stone
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.