Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Report and Windows text scaling
Message
From
13/04/2017 06:32:51
 
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Miscellaneous
Thread ID:
01650135
Message ID:
01650139
Views:
838
>>When on Windows is set a text scaling to 125% or greater,
>>reports are drawn with that scaling factor and are therefore much larger than the page and are cut to the right and bottom.
>>
>>Exists a VFP solution ?
>>
>>Thanks
>
>1) Don't use VFP
:)
>2) Set text scaling to 100%
:)
>3) Check "Disable display scaling on high DPI settings" in exe shortcut properties on Compatibility page
This works, in the sense that VFP works with scaling 100%.

>4) Call at start application API function SetProcessDPIAware()1
>DECLARE INTEGER SetProcessDPIAware in WIN32API
>=SetProcessDPIAware()

This does not work because it is called too late VFP in the process.
When the Windows DPI context of the process / thread is created you can not change anymore.
The system APIs to manage all this there are, but not having the VFP's thread control, I doubt you can handle.
The real solution is to correct the error in the print engine VFP.

I can live with the solution 3)

Thanks

>
>MartinaJ
Previous
Reply
Map
View

Click here to load this message in the networking platform