on 2023 Nov 06 1:33 PM
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
Request clarification before answering.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
9 | |
8 | |
6 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.