×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Huge fonts in reports

Huge fonts in reports

Huge fonts in reports

(OP)
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

RE: Huge fonts in reports

(OP)
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

RE: Huge fonts in reports

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
https://www.doschke.name

RE: Huge fonts in reports

(OP)
That's good to know. Thanks, Olaf. I'll experiment with this, and let you know if I learn anything interesting.

Mike

__________________________________
Mike Lewis (Edinburgh, Scotland)

Visual FoxPro articles, tips and downloads

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close