I have to count the pages printed in a hp printer and my program must be in visual basic i'm new in the pcl world and i don´t know how send the pcl commands to the chosen printer
I do it in Java. You open the file LPT1 or LPT2 (but i think your printer is installed on the first paralle port -> LPT1)
and you send byte like if you fill into a normal file
that's all
I don't know the VB syntaxe but it's like that in Java :
File f = new File("LPT1"
Stream s = new Stream(f);
s.write("hello the world"
s.write(0x0D); //CR
s.write(0x0A); // LF
s.write(0x0C); // print page
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.