× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



I am looking into printing more than plain text with Java on the AS/400
(after successfully getting spooled files as PCL) and I have found that if
/QIBM/ProdData/Java400/ext/ibmjps.jar is present on the class path, the Java
Printing System correctly reports back flavors and attributes for the
printer defined on the AS/400. So far so good.



(The documentation for this is the IBMSYstems Magazine article -
<http://www.ibmsystemsmag.com/ibmi/march06/technicalcorner/7239p1.aspx>
http://www.ibmsystemsmag.com/ibmi/march06/technicalcorner/7239p1.aspx)



Based on
<http://www.ibm.com/developerworks/forums/thread.jspa?messageID=14259706>
http://www.ibm.com/developerworks/forums/thread.jspa?messageID=14259706 I
understand that it is necessary for the printer to have the flavors



application/x-java-jvm-local-objectref; class="java.awt.print.Pageable"

application/x-java-jvm-local-objectref; class="java.awt.print.Printable"



It appears that this only is the case for the HP LaserJet we have which also
have the PCL flavor, and that all others only support the
application/vnd.ibm.scs (which means SCS) and application/vnd.ibm.modcap
(which I don?t know what is). This makes sense according to the ?which
flavors are provided? as we do not have Infoprint available, and that
Pageable/Printable is set because the _device_ reports it, not the AS/400
printing system.



I understand that SCS is a line printer protocol, and to get full device
independent graphics we need AFPDS.



So the question is, can AFPDS spooled files be created from Java? Through
the printing system? Without Interform?







(In a perfect world we would be able to create AS/400 overlays easily
through Java. Anyone? J)



Thanks for any pointers



/Thorbjørn










As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.