cancel
Showing results for 
Search instead for 
Did you mean: 

Windows.Forms.CrystalReportViewer: Text exceeds right margin when Windows text scaling is > 100%

se_edv
Member
0 Kudos

We are using CrystalDecisions.Windows.Forms.CrystalReportViewer in a Windows forms application. Reports are displayed correctly as long as the Windows 10 text scaling is set to 100%. But when we are changing the Windows 10 text scaling value to values > 100%, the Report text is also scaled and then exceeding the right margin.

DLLs used:

CrystalDecisions.CrystalReports.Engine.dll

CrystalDecisions.Windows.Forms.DLL

CrystalDecisions.Shared.DLL

CrystalDecisions.ReportSourceDLL

All of Version 13.0.32.4286

.NET Version is 4.8

Example for Windows text scaling = 125%: The report text is also scaled, and therefore it is exceeding the right margin:

Example for Windows text scaling = 100%: The preview presentation is correct:

We tried changing the value of the AutoScaleMode property of both the Windows forms control and the CrystalReportViewer control to Dpi, Font, Inherit and None, but without success.
Do you have a helpful idea?

Thanks,

Jan

Accepted Solutions (1)

Accepted Solutions (1)

DonWilliams
Active Contributor
0 Kudos

Hi Jan,

That would be normal behaviour, the width of the page is based on the Page size.

So you would need to link the page frame to the scale or autosize.

My main test app has the Viewer embedded in the WinForm so not sure what will happen if I change it.

Check this to see if that autoscales the frame:

Don

Answers (0)