Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
PCL PJL & ReportListener
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Titre:
PCL PJL & ReportListener
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01032883
Message ID:
01032883
Vues:
80
Lisa,

Is it possible in 9.0 to:

Create a print job
send PCL or PJL codes to set up the job for an output bin & stapling option

print a report in landscape mode from tray 4
print a report in portrait mode from tray 3
print a report in portrait mode from tray 2
print a report in portrait mode from tray 4

end the print job so the printer will stack & staple the job


I've tried using code like the following but no luck all reports are in landscape mode and all come from the same tray....
??? CHR(27) + [&s0C] + CHR(27) + [Y]


cPrinterCode = CHR(27)  + "%-12345X@PJL JOB" + CHR(10) + CHR(13)
??? cPrinterCode

cPrinterCode = [@PJL RDYMSG DISPLAY="Any message"] + CHR(10) + CHR(13)
??? cPrinterCode
cPrinterCode = [@PJL SET ORIENTATION=LANDSCAPE] + CHR(10) + CHR(13)
??? cPrinterCode
cPrinterCode = [@PJL SET MEDIASOURCE=TRAY3] + CHR(10) + CHR(13)
??? cPrinterCode

cPrinterCode = [@PJL ENTER LANGUAGE = PCL] + CHR(10) + CHR(13)
??? cPrinterCode

??? CHR(27) + [E]
REPORT FORM "\\nas\MIS\System Reports\Testing\Test HP Stapling\test_page4_tray4_lanscape.frx" NOPAGEEJECT   TO FILE  "\\nas\MIS\System Reports\Testing\Test HP Stapling\test_page4_tray4_lanscape.txt"
??? CHR(27) + [E]

cPrinterCode = CHR(27)  + "%-12345X"
??? cPrinterCode




cPrinterCode = CHR(27)  + "%-12345X@PJL SET ORIENTATION=PORTRAIT" + CHR(10) + CHR(13)
??? cPrinterCode
cPrinterCode = [@PJL SET MEDIASOURCE=TRAY2] + CHR(10) + CHR(13)
??? cPrinterCode

??? CHR(27) + [E]
REPORT FORM "\\nas\MIS\System Reports\Testing\Test HP Stapling\test_Page1_Tray2.frx"  NOPAGEEJECT    TO PRINTER
??? CHR(27) + [E]

cPrinterCode = CHR(27)  + "%-12345X"
??? cPrinterCode







cPrinterCode = CHR(27)  + "%-12345X@PJL SET ORIENTATION=PORTRAIT" + CHR(10) + CHR(13)
??? cPrinterCode
cPrinterCode = [@PJL SET MEDIASOURCE=TRAY3] + CHR(10) + CHR(13)
??? cPrinterCode

??? CHR(27) + [E]
REPORT FORM "\\nas\MIS\System Reports\Testing\Test HP Stapling\test_page2_tray3.frx"  NOPAGEEJECT    TO PRINTER
??? CHR(27) + [E]

cPrinterCode = CHR(27)  + "%-12345X" + CHR(10) + CHR(13)
??? cPrinterCode


cPrinterCode = CHR(27)  + [%-12345X@PJL EOJ]
??? cPrinterCode


SET PRINTER TO
Can I use the reportListener to specify trays & orientation etc & end the job as mentioned above ?

TIA

Greg Foote
Greg Foote
Software At Work, Inc.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform