Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Print out and Screen Zoom Faktor 3

Christoph_B

Programmer
Jun 17, 2024
3
DE
Hi all,
I have a problem with the screen scale value in Windows and the printer output scale. Some of my users are using a screen scale of 125%. In this case, the output of a report of an Foxpro applicastion is also scaled to 125% and the output doesn't fit to the paper size.
Is there an option to create the print out independent of this screen scale factor?

KR
Christoph
 

Attachments

  • Window.png
    Window.png
    28.3 KB · Views: 6
Hi Chris,

I faced this issue but was able to solve by windows High DPI settings. You can set "High DPI Scaling Override" feature. Right click on your program icon and click properties and then select "Change High DPI Settings" and tick "Override high DPI scaling behavior. Scaling performed by Application.

See below screenshot. This should resolve your problem.

1732624116411.png
 
We discussed dpi awareness a lot in recent weeks and months and the problem I have with this exe property setting is that it doesn't copy when you copy the exe elsewhere, which makes me think it also won't get into a setup you do for an EXE with that property.

MS mentions dpiawareness can be put into an exe manifest and you can easily embed a manifest differing from the standard VFP executable manifest by creating a projectname.manifest file in the project directory and do a build. See https://learn.microsoft.com/en-us/windows/win32/sbscs/application-manifests?#dpiAwareness

There's deeper discussion about this at an older thread https://www.tek-tips.com/threads/dpi-awareness-manager-questions.1821313/

I'd always recommend using atlopes dpiawareness manager at https://github.com/atlopes/DPIAwareManager.
And, yes, this does not only affect screen display, that also affects printing.
 
Hi Chriss,

It seems, it runs well with the settings in the Windows resolution...
But I would like to test also your proposal. Do you have a code example with the dpi awareness manager for using a report?

Thx in advance
Christoph
 

Part and Inventory Search

Sponsor

Back
Top