简体   繁体   中英

How do I print with jt400?

Is it possible to print though as400 using jt400 library?

Would i need to create a spool file on the as400 and then release it to the printer?

Can anyone just point me in the right direction, there aren't many resources on google

So far I could only retrieve the list of printer connected to as400 and get their properties using com.ibm.as400.access.ISeriesPrinter class

I expect an open and write to a Printer File (PRTF) then close, with possibly one or either of a stream or record-level-access write method, just like a HLL program running local to the server, should function quite the same.
But there are specific features available from the Toolbox. Rather than web searching, although not the best results, searching the IBM i KnowledgeCenter [formerly InfoCenter] can assist; eg the following was found when searching on terms Toolbox and printer [albeit only older release docs were presented; so the links are likely to go defunct within a couple years, though I expect searching newer releases will find something similar or equivalent]:
IBM i 6.1->Programming->Java->IBM Toolbox for Java->IBM Toolbox for Java classes->Access classes->Print classes
From that link can be found there examples:
Example: Creating spooled files
Example: Creating SCS spooled files

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM