Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Print margins using @SAY
Message
From
16/07/2002 15:34:46
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Title:
Print margins using @SAY
Miscellaneous
Thread ID:
00679319
Message ID:
00679319
Views:
69
I have a legacy app that prints report documents at banks. Being legacy, it uses @SAY commands to position characters. Within the last year or so, there have arisen a smattering of clients with certain printers that will yield incorrect top and side margins for the @SAY documents, though the newer DO REPORT documents remain functional (as well as Microsoft Word, etc). I've finally narrowed this down to recent versions of specific printer drivers, for exapmle newer HP Laserjet 4000 and 4si drivers (older drivers still work). Logically, as time progresses, clients are more frequently using the newer drivers from HP and then the margins fail. I have distilled a 20 line prg that duplicates the error, as follows:

------------BEGIN SAMPLE

PRINTJOB

SET DEVICE TO PRINTER

??? ""

p_line = 17
p_margin = 8.0000
p_width = 80
m.p_font = "Courier New"
m.p_point = 10.00

@ p_line,p_margin SAY ;
REPLICATE('_',p_width) ;
FONT m.p_font,m.p_point

EJECT

ENDPRINTJOB

SET DEVICE TO SCREEN
SET PRINTER TO

----------END SAMPLE

This should print a single line 3" from the top of the page unless you have one of these unhappy drivers.

Has anyone had experience with this or know a workaround/solution? Any information about this is greatly appreciated!

Thank you,

Zack Gainsforth
Rekon Technologies
zackg@rekon.com
626-577-4350
Next
Reply
Map
View

Click here to load this message in the networking platform