Is there a way to output directly to a printer instead of a browser?

Date:23 June 2003
Product/Release:LANSA for the Web
Abstract:Is there a way through LANSA for the Web to output directly to a printer instead of a browser?
Submitted By:LANSA Services
Last Review:November 2010

Question:

We currently store images in our IFS that relate back to records stored on the AS/400. I have been asked to see if is possible to generate a report (upwards of a thousand images) that will marry up the AS/400 data with the corresponding image and print. Is there a way through LANSA for the Web to output directly to a printer instead of a browser?

Answer:

A good approach would be to write a LANSA/Web function and leverage the WEB_STATIC_PAGE BIF (Built in Function).

Basically, you'd write a LANSA/Web function to SELECT through your DB2 file of 1000 or so image file names, and load these into a browse list. Then, use the DISPLAY command to 'display' the browse list of images. When this WEB_STATIC_PAGE BIF is used, whatever is in your DISPLAY statement (including your list of images) will be sent to the new static page stored on IFS.

Your function can even be run in BATCH if you wish.

Finally, you should be able to easily print the file on IFS, without ever loading it into a browser.