SAP Knowledge Base Article - Public

2415218 - WPF/WinForm Viewers Zoom modes @ 150% cause the CR Viewer to resize within the Windows form

Symptom

WPF/WinForm Viewers Zoom modes @ 150% cause viewer to resize within the Windows Form and is unusable in full screen mode.

Environment

Crystal Reports for Visual Studio

Reproducing the Issue

Open attached sample in and preview the report. Set the Zoom to 150% and then try to changed the Zoom using the Slider in the WPF viewer, the embedded CR viewer resizes. Seems to only be an issue between 100% to 200%. Discussed with R&D and he could replicate the issue so escalating Set for SP 20

Resolution

R&D looked into the issue and discovered the problem was some custom Viewer code to adjust the viewer size manually

  We Discovered an issue in the test app, which lead to the problem.

   If we remove the following code in the SAPTest\SAP_Tutorial\MainWindow.xaml, the issue will disappear.

        <Viewer:CrystalReportsViewer x:Name="CrystalReportsViewer1" HorizontalAlignment="Left" VerticalAlignment="Top" Loaded="CrystalReportsViewer1_Loaded"/>

Keywords

CR for VS, WPF, zoom 150% , KBA , BI-DEV-NET , BI Software Development Kits (SDKs) - .NET or Other , Problem

Product

SAP Crystal Reports, developer version for Microsoft Visual Studio

Attachments

SAPTest.7z