PDA

View Full Version : printing directly with webfacing?



Guest.Visitor
12-27-2002, 07:54 AM
I don't believe Webfacing currently has support for printing. It is one of the top requirements that WF developers are hoping to add to Webfacing. Tosh.

David Abramowitz
12-27-2002, 09:34 AM
If you are using the SMTP server of your AS/400, you can do the following: Add one line to the beginning of your output consisting of HTML BODY PRE (each in brackets "<>") Add one line to the end of the output consisting of /PRE /BODY /HTML (also in brackets "<>"). Specify HOLD(*YES) on the OVRSPLF command. Use the CPYSPLF command to copy the spooled output to a physical file, then use either the CPYTOPCD, or CPYTOIMPF commands to convert the file to ASCII in the IFS. Append the .HTM suffix to the file name. Use the SNDDST command to E-Mail the file to the recipient, where it will appear as a web page within a browser. The recipient can then press the PRINT button to print the output. This works best when there are no overlayed lines, and the output is 80 bytes per line or less. Dave

Guest.Visitor
12-27-2002, 09:37 AM
I would like to know if it's possible (and how) to print directly to the the user's printer? For example if I key in an order on my webfaced application, how can i get it on my printer directly. Thanks for your help Caroline PERROMAT