Information générale
Catégorie:
Gestionnaire de rapports & Rapports
Titre:
Print margins using @SAY
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
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement