HI, iam having trouble with the following PCl code, it works ok using copy /b pcl.txt lpt1 in dos
<esc code 27 >%-12345X@PJL DEFAULT PAPER=A4
@PJL SET SERVICEMODE=HPBOISEID
@PJL SET PAGES=13860
@PJL SET SERIALNUMBER=FRFRG12345
@PJL SET SERVICEMODE=EXIT
@PJL RESET
<esc code 27>%-12345X
but i want to write a program in c , and use inputs from the keyboard for the serial number, page count and lanugage, but using the following program in c, it doesnt work, it prints 11d or some other text.
/*
* ======================================
*/
#include <stdio.h>
main()
{
clrscr();
cprintf("HP Pcl test program\r\n"
fprintf(stdprn, "\033%-12345X@PJL"
"@PJL SET SERVICEMODE=HPBOISEID"
"@PJL SET PAGES=13860"
"@PJL SET SERIALNUMBER=FRFRG12345"
"@PJL SET SERVICEMODE=EXIT"
"@PJL RESET"
"\033%-12345X"
}
/*
* end of main()
*/
PLS anyone have any ideas why the c program doesnt work the samre way as the dos program above!??
regards mark S
<esc code 27 >%-12345X@PJL DEFAULT PAPER=A4
@PJL SET SERVICEMODE=HPBOISEID
@PJL SET PAGES=13860
@PJL SET SERIALNUMBER=FRFRG12345
@PJL SET SERVICEMODE=EXIT
@PJL RESET
<esc code 27>%-12345X
but i want to write a program in c , and use inputs from the keyboard for the serial number, page count and lanugage, but using the following program in c, it doesnt work, it prints 11d or some other text.
/*
* ======================================
*/
#include <stdio.h>
main()
{
clrscr();
cprintf("HP Pcl test program\r\n"
fprintf(stdprn, "\033%-12345X@PJL"
"@PJL SET SERVICEMODE=HPBOISEID"
"@PJL SET PAGES=13860"
"@PJL SET SERIALNUMBER=FRFRG12345"
"@PJL SET SERVICEMODE=EXIT"
"@PJL RESET"
"\033%-12345X"
}
/*
* end of main()
*/
PLS anyone have any ideas why the c program doesnt work the samre way as the dos program above!??
regards mark S