Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Report and Windows text scaling
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Divers
Thread ID:
01650135
Message ID:
01650139
Vues:
833
>>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform