Symptom
- CRVS2010 DHTML viewer extends outside the right edge of VS2010 Master Page
Environment
- VS2010
- CRVS2010
Reproducing the Issue
- Create a new web project in VS2010
- Add the CR viewer to the Master Page
- Add one line of code so that a report is displayed in the viewer (use saved data report):
CrystalReportViewer1.ReportSource = <path to report>
- Run the project
- The viewer will spill over the right side boundary of the Master Page
Cause
- The master page shown by default when creating a new web site project uses the .page class in a style sheet
- The width in the @page css element is set to a value (960 px) which is smaller than the default width of the Crystal Reports viewer
Resolution
- Do not allow the viewer to AutoSize
- Modify the style sheet width definition
- Use tables
Keywords
KBA , BI-DEV-NET , BI Software Development Kits (SDKs) - .NET or Other , Problem
Product
SAP Crystal Reports, developer version for Microsoft Visual Studio