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

Screen Resolution and Printer settings... 1

Status
Not open for further replies.

GriffMG

Programmer
Mar 4, 2002
6,305
FR
Just spent a happy few minutes on Skype with a customer who was only getting the top left 75% of his prints in a VFP app
that works perfectly well on my machine and on other ones in his office.

Didn't matter which printer driver we used, PDF, PCL, PS or whatever, he just kept getting the print clipped.

Turned out to be a screen resolution thing - the user has a massive screen, but not that good eyesight, so it was (roughly) 2460x something but key was the scaling
which was set to 150%.

Has anyone else seen this - is there a way to get VFP to display correctly under these circumstances?

We set the scaling back to 100% and it was perfect (if the user had been 17 and didn't need glasses like mine).

I have the following in the report settings:

DRIVER=WINSPOOL
ORIENTATION=1
PAPERSIZE=9
DEFAULTSOURCE=7
PRINTQUALITY=600
YRESOLUTION=600
TTOPTION=1


Regards

Griff
Keep [Smile]ing

There are 10 kinds of people in the world, those who understand binary and those who don't.

I'm trying to cut down on the use of shrieks (exclamation marks), I'm told they are !good for you.
 
May be this will help
thread184-1798781
Edgar

Edgar
Integrated Bar Code Systems, Inc.
 
Spot on, at least at first glance. Thank you, testing it now.

Regards

Griff
Keep [Smile]ing

There are 10 kinds of people in the world, those who understand binary and those who don't.

I'm trying to cut down on the use of shrieks (exclamation marks), I'm told they are !good for you.
 
Just for clarity, this is all I needed to add right at the beginning of the main program - before any display was interacted with (deliberately)

Code:
DECLARE INTEGER SetProcessDPIAware IN WIN32API
SetProcessDPIAware()

I claim no credit, but I'm jolly chuffed that Tek-Tips and Edgar helped my out of a bind.

Regards

Griff
Keep [Smile]ing

There are 10 kinds of people in the world, those who understand binary and those who don't.

I'm trying to cut down on the use of shrieks (exclamation marks), I'm told they are !good for you.
 
Hi
Please have a look at thread184-1798781
hth
MarK
 
Hi Griff,
Yup, have the same issue. Scaling in Windows seems to impact the printed output as well. Altops had the solution when I asked this a couple weeks back (that's the link to the thread just above this reply.)

So yeah, it's more than repeatable, but only bites you if its's scaled. The annoying thing I found was, I had 4 monitors connected to the same PC, but only ONE of them scaled, not the one the app was sitting in , and it still does it. ><


Best Regards,
Scott
MSc ISM, MIET, MASHRAE, CDCP, CDCS, CDCE, CTDC, CTIA, ATS

"I try to be nice, but sometimes my mouth doesn't cooperate.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top