Previewform on Multidisplay with different DPI settings
Hi, we have a very crazy problem with Delphi 10.3 or 10.4 with following setup:
1. Screen with 100%
2. Screen with 125%
Mainform is started at Monitor 125%. Opening Previewform from Reportbuilder is very crazy. form is i.e. 800*500px but the area where the report is shown is only 400*250px (round about) and is showing scrollbars ....
Can you please check this asap?
1. Screen with 100%
2. Screen with 125%
Mainform is started at Monitor 125%. Opening Previewform from Reportbuilder is very crazy. form is i.e. 800*500px but the area where the report is shown is only 400*250px (round about) and is showing scrollbars ....
Can you please check this asap?
Yusuf Zorlu
MicrotronX Bilişim Ticaret ve Sanayi Ltd. Şti.
www.microtronx.org
MicrotronX Bilişim Ticaret ve Sanayi Ltd. Şti.
www.microtronx.org
Comments
MicrotronX Bilişim Ticaret ve Sanayi Ltd. Şti.
www.microtronx.org
Viewer.Top := 2;
Viewer.Left := 2;
Viewer.Height := Viewer.Parent.Height-4;
Viewer.Width := Viewer.Parent.Width-4;
Viewer.Anchors := [akLeft, akTop, akRight, akBottom];
I removed these lines and replaced with following lines:
Viewer.AlignWithMargins:=true;
Viewer.Margins.Top:=2;
Viewer.Margins.Left:=2;
Viewer.Margins.Right:=2;
Viewer.Margins.Bottom:=2;
Viewer.Align := alclient;
Now the problems are solved!
MicrotronX Bilişim Ticaret ve Sanayi Ltd. Şti.
www.microtronx.org
Please provide steps to reproduce/test this behavior. I tried setting to 125% and calling Report.Print, but the preview form shoes correctly.
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
MicrotronX Bilişim Ticaret ve Sanayi Ltd. Şti.
www.microtronx.org