Is there way to print?

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: 133
Joined: Thu Aug 23, 2012 6:45 am

Is there way to print?

Post by stevec » Sat May 10, 2014 4:30 am

Specifically, I would like ability to print the pdf I am showing in set_webview.

Paul

Re: Is there way to print?

Post by Paul » Mon May 12, 2014 10:53 am

If the Web View is set to display the navigation tool bar, this will present a print option on the tool bar.

Example:

Code: Select all

#Com_Owner.Set_WebView Name(PDFVIEWER) Layout_Col(1) Layout_Row(7) Url(#PDFFile) Show_Navigation(True)
General Note about PDF files:

Android devices cannot display .pdf files in a webview, but if a pdf viewer is installed they can download them and the file can then be displayed by the PDF viewer. See shipped RDMLX example LREX0056 (RPG example is EXAM0056) for a demonstration of handling PDF files on Android devices.

stevec
Posts: 133
Joined: Thu Aug 23, 2012 6:45 am

Re: Is there way to print?

Post by stevec » Tue May 13, 2014 6:31 am

Thanks that works great.

WiIl there be any headway coming on Android PDF viewing native within longrange?

We do not want the user to have to leave our app.

tsupartono
Posts: 289
Joined: Wed Apr 18, 2012 10:21 am

Re: Is there way to print?

Post by tsupartono » Wed May 14, 2014 9:31 am

Not at the moment, but we will put this into consideration.

stevec
Posts: 133
Joined: Thu Aug 23, 2012 6:45 am

Re: Is there way to print?

Post by stevec » Fri Jul 19, 2019 11:31 pm

Any android pdf advances yet?

jasonzhou
Posts: 122
Joined: Wed Jan 11, 2017 3:26 pm

Re: Is there way to print?

Post by jasonzhou » Tue Jul 23, 2019 11:12 am

PDF is still not supported by Android webview, so Android users need to use PDF viewer to view PDF.

stevec
Posts: 133
Joined: Thu Aug 23, 2012 6:45 am

Re: Is there way to print?

Post by stevec » Wed Jul 24, 2019 4:48 am

Is this something Lansa can enhance? This is a real downer for out customers with android devices signing documents (pdf's).

jasonzhou
Posts: 122
Joined: Wed Jan 11, 2017 3:26 pm

Re: Is there way to print?

Post by jasonzhou » Mon Jul 29, 2019 11:28 am

Sorry for the inconvenience. It's quite difficult to enhance the system webview to have PDF support. So a common way on Android system is to open pdf in another app.

stevec
Posts: 133
Joined: Thu Aug 23, 2012 6:45 am

Re: Is there way to print?

Post by stevec » Wed Jul 31, 2019 7:23 am

we are signing legal documents. Because you can't make this happen on android (like iphone) we are forced to give customer message that it is not supporeted on android and sign a blank page ...

Can you enhance this to make it work?

jasonzhou
Posts: 122
Joined: Wed Jan 11, 2017 3:26 pm

Re: Is there way to print?

Post by jasonzhou » Wed Jul 31, 2019 10:03 am

Is the PDF document readable? If yes, probably you can try some third party services, like Google Docs api, to display an online PDF. It looks like

Code: Select all

http://drive.google.com/viewerng/viewer?embedded=true&url=YOUR PDF URL
Please do a research thoroughly see if there are any charges or usage limitations (like bandwidth limit). We make no guarantee for any issues related to 3rd party service.

Thanks

Post Reply