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!

Foxypreviewer Report Layout Preview Cut off 1

Status
Not open for further replies.

Ashish Agrawal

Programmer
Jul 10, 2021
3
IN
i have facing an problem on report preview or output on some On windows10 OS. using foxypreviewer report doesn't show in proper layout i means that if the report designed in Portrait A4 Layout than preview cuts the half portion of report. any clue how to solve this. the problem only shows some of the windows 10 OS system
 
On the machines where this is happening, have the users set the font size to more than 100 percent (in Control Panel / Personalise)? If so, it sounds like the same problem I had about a year ago.

If that's the case, the solution is to execute the following code before you preview or print a report (you only need to do it once):

Code:
DECLARE INTEGER SetProcessDPIAware IN WIN32API
SetProcessDPIAware()

But check to see if there are any unwanted side effects. If so, remove the above code and advise users not to scale their fonts more than 100 percent.

Mike



__________________________________
Mike Lewis (Edinburgh, Scotland)

Visual FoxPro articles, tips and downloads
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top