-
×InformationNeed Windows 11 help?Check documents on compatibility, FAQs, upgrade information and available fixes.
Windows 11 Support Center. -
-
×InformationNeed Windows 11 help?Check documents on compatibility, FAQs, upgrade information and available fixes.
Windows 11 Support Center. -
- HP Community
- Archived Topics
- Printers Archive
- How to use PJL SET command?

Create an account on the HP Community to personalize your profile and ask a question

08-06-2013 07:59 AM
HI all,
I am using the PJL commands in one of my DOT net application.
The idea is we are using xps files and first we are converting these files into PCL file using the HP 1320n laserjet pcl 5 driver.
The converted PCL file contains the PJL command like below
%-12345X@PJL JOB NAME="C:\Users\sshinde\Desktop\New folder\SamplePrint.xps_first_320c6f430-c257-4f52-9d8e-7b0dfc432044.xps"
@PJL SET STRINGCODESET=UTF8
@PJL COMMENT "Symtrax XPS Driver (61.53.25.9); Windows 8 Enterprise N 6.2.9200.1; Unidrv 0.3.9200.16451"
@PJL COMMENT "Username: sshinde; App Filename: C:\Users\sshinde\Desktop\New folder\SamplePrint.xps_first_320c6f430-c257-4f; 8-6-2013"
@PJL DMINFO ASCIIHEX="0400040101020D101001153230313330383036313334363136"
@PJL SET HOLD=OFF
@PJL SET USERNAME="sshinde"
@PJL SET JOBNAME="C:\Users\sshinde\Desktop\New folder\SamplePrint.xps_first_320c6f430-c257-4f52-9d8e-7b0dfc432044.xps"
@PJL SET QTY=4
@PJL SET PROCESSINGTYPE="STAPLING"
@PJL SET PROCESSINGOPTION="NONE"
@PJL SET PROCESSINGBOUNDARY=MOPY
@PJL SET RESOLUTION=600
@PJL ENTER LANGUAGE=PCL
---pcl data here---
i used to convert these file and send the data in binary format to the printer.Its works well.
But i want to set some advanced printer option like DUPLEX is on ORIENTATION etc.
but if i modify this file then printer will print these file as it is instead of original document.
i have tried SET command before send these bytes data but the SET command is not applied on the printer.
One of the technical manual provided by HP, i found that SET requires one of the reset condition llike JOB command or RESET,printer restart.
so how i can SET advanced Printer option?
If i use SET command before and after sending byte data it doesnt work.i want each document should be printed with different options set by user.
which is only possible with help of SET command.
So can you please tell me the exact solution how to use the SET command?
Just let me know any other information is required.
this is very urgent,i got stuck to these probelms over week.
08-07-2013 08:25 AM - edited 08-07-2013 08:26 AM
Hi sagar_253,
Refer to the links below which should assist you.
Printer Job Language Technical Reference Manual
Say Thanks by clicking the Kudos Star in the post that helped you.
Please mark the post that solves your problem as "Accepted Solution"
