When printing a text file through a Java program to a Cannon iR1018 and iR1020 the print job vainishes when it reaches the printer.
From the printer specification it says PCL is optional and UFR is standard for both the printers.
JRE version : 1.6.0_13
Could you please help as urgent what could be the root cause of this issue.
The same program works fine when I print to the Cannon iR1022 and iR1024 printer and I am getting the page printed with "HelloWorld" string.
The issue when I print to the Cannon iR1018 & iR1020 is the page not getting printed though I can see the print job is spooled out from the workstation where the print is initiated. There are no expection been thrown.
To answer your question - No. The above program is a simple java print code which prints a 'HelloWorld' string a Canon printer iR1022, iR1024.
The same program does not give any print job in a Canon printer iR1018, iR1020. And When we see the difference btw the printers :
iR1022/iR1024 - Supports PCL and UFR as standard.
iR1018/iR1020 - Only Supports UFR and not PCL.
I didn't ask about Java programs. I was asking if programs like MS Word can print to those printers properly. Because if they can't either then the problem is in your printer driver / connection, not the Java program.
Oh Sorry, with the notepad directly printing to the printer works fine. Also I tried a java program converting to PDF and that as well works and printed the HelloWorld string.
Below is the code snippet for the PDF conversion and printing :