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: 132
Joined: Wed Aug 22, 2012 3:45 pm

Is there way to print?

Post by stevec » Fri May 09, 2014 1:30 pm

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 » Sun May 11, 2014 7:53 pm

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: 132
Joined: Wed Aug 22, 2012 3:45 pm

Re: Is there way to print?

Post by stevec » Mon May 12, 2014 3:31 pm

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: Tue Apr 17, 2012 7:21 pm

Re: Is there way to print?

Post by tsupartono » Tue May 13, 2014 6:31 pm

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

stevec
Posts: 132
Joined: Wed Aug 22, 2012 3:45 pm

Re: Is there way to print?

Post by stevec » Fri Jul 19, 2019 8:31 am

Any android pdf advances yet?

jasonzhou
Posts: 116
Joined: Tue Jan 10, 2017 11:26 pm

Re: Is there way to print?

Post by jasonzhou » Mon Jul 22, 2019 8:12 pm

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

stevec
Posts: 132
Joined: Wed Aug 22, 2012 3:45 pm

Re: Is there way to print?

Post by stevec » Tue Jul 23, 2019 1:48 pm

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

jasonzhou
Posts: 116
Joined: Tue Jan 10, 2017 11:26 pm

Re: Is there way to print?

Post by jasonzhou » Sun Jul 28, 2019 8:28 pm

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: 132
Joined: Wed Aug 22, 2012 3:45 pm

Re: Is there way to print?

Post by stevec » Tue Jul 30, 2019 4:23 pm

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: 116
Joined: Tue Jan 10, 2017 11:26 pm

Re: Is there way to print?

Post by jasonzhou » Tue Jul 30, 2019 7:03 pm

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