Any way to print yet?

Please do not use to report errors- use your regional help desk.
Please mark posts as being for RPG or RDMLX (LANSA) developer.
To subscribe by email, display this forum, scroll to the end and select ‘Subscribe Forum’.
Post Reply
stevec
Posts: 138
Joined: Thu Aug 23, 2012 6:45 am

Any way to print yet?

Post by stevec »

I have not asked for a few years. Would like ability to print directly to a printer. This is for deliveries to print an invoice.

Showing a pdf with navigation bar and having user click print every time (I assume this works) may get us by temporarily.
tsupartono
Posts: 289
Joined: Wed Apr 18, 2012 10:21 am

Re: Any way to print yet?

Post by tsupartono »

LongRange has the ability to send HTML output to printer directly.
On iOS, the printer must be Air-Print capable.

Have a look at the printing example in the lansademo schema, under Programming Examples >> Use Case Examples >> Printing (source code LREX0112)

If you can't find this example, most likely you have an older version of the demo material, let us know and we'll send you the updated material.

Give this a go and let us know if this would satisfy your printing requirements, any suggestions are welcome.
Attachments
Capture.PNG
Capture.PNG (150.13 KiB) Viewed 3579 times
stevec
Posts: 138
Joined: Thu Aug 23, 2012 6:45 am

Re: Any way to print yet?

Post by stevec »

I do have that use case example.

What about a pdf? We generate an invoice and create a pdf on the fly (xsl-fo merging xsl with xml). In our normal application we send it directly to printer as binary file (most newer printers understand it).

I would like to send pdf (have full path on IFS) to tablet printer. Is this possible?

I am assuming not, in which case my only option will be to display it as pdf and let user use navigation bar print icon to print.
tsupartono
Posts: 289
Joined: Wed Apr 18, 2012 10:21 am

Re: Any way to print yet?

Post by tsupartono »

Yes, unfortunately displaying the PDF in a Web View and then get the end-user to print it would be the way to go.

Or, you could possibly also generate HTML content (instead of XSL-FO) on the server by modifying the XSL?
Post Reply