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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Huge fonts in reports

Status
Not open for further replies.

Mike Lewis

Programmer
Jan 10, 2003
17,516
Scotland
I've just come across something I haven't seen before.

One of my user complained that, when printing or previewing a report, the fonts were much larger than expected, resulting in the right-hand chunk of text being chopped off the page. This only happened on one machine. On all other machines at the user's site, the reports previewed and printed normally.

This was happening with every printer we tried, even when printing to PDF, so it wasn't a problem with a printer driver. It only happened with my VFP reports; output from Word, Excel, etc. was normal.

I eventually tracked it down. The user had set his screen resolution quite low, and had then set the text scaling (in Display properties) to 150%. Setting the text back to 100% solved the problem.

I am posting this partly in case anyone else encounters the same problem, and partly to ask if anyone can explain this behaviour. I can't see why changing the font size in the display setting should affect printed output. But, given that it does, why should it only affect VFP reports, and not other printing or print previewing on that computer?

Mike

__________________________________
Mike Lewis (Edinburgh, Scotland)

Visual FoxPro articles, tips and downloads
 
Thanks, Dan. Now you mention them, I remember reading those earlier threads. They must have slipped my mind.

Right now, the user in question is happy with my solution (scaling the text back to 100%). But it might be a good idea to put the SetProcessDPIAware() call in anyway in case the situation arises again.

Mike

__________________________________
Mike Lewis (Edinburgh, Scotland)

Visual FoxPro articles, tips and downloads
 
VFP apps are not suited against this Windows scaling option in many aspects. And actually adding to the manifest or calling SetProcessDPIAware() helps in case you stay at 150%. I'm not yet sure how wholesome this solution is, but let alone the texts in reports and also on labels are rendered sharp again, while they seem blurry without that.

Bye, Olaf.

Olaf Doschke Software Engineering
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top