[RPG]Printing PDF in webview

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
MegumiSawada
Posts: 268
Joined: Tue Feb 19, 2013 5:18 pm

[RPG]Printing PDF in webview

Post by MegumiSawada »

Hi,

A web view is embedded in a form view,and pdf is displayed in that web view.The target pdf is in Landscape.
When ShowNavigationToolBar is set to True, Print option will be shown.

When selecting print option on NavigationToolBar in web view, the pdf is printed in portrait orientation.
When showing the same pdf in Safari and printing it, the pdf is printed in Landscape Mode.
Printed from Safari
Printed from Safari
Safari.png (65.53 KiB) Viewed 3763 times
Printed from LongRange
Printed from LongRange
LR.png (31.28 KiB) Viewed 3763 times
Is there any way to control the orientation in printing pdf from LongRange web view?

Best Regards,
Megumi Sawada
MarkDuignan
Posts: 346
Joined: Wed Apr 18, 2012 10:33 am

Re: [RPG]Printing PDF in webview

Post by MarkDuignan »

We think that the iOS printing module supports different orientation settings.
However we need to think of how to best control the orientation.
We will update this question with a more precise answer later.
MarkDuignan
Posts: 346
Joined: Wed Apr 18, 2012 10:33 am

Re: [RPG]Printing PDF in webview

Post by MarkDuignan »

This looks like it can be controlled.

Do you want an option to do this programmatically?
MegumiSawada
Posts: 268
Joined: Tue Feb 19, 2013 5:18 pm

Re: [RPG]Printing PDF in webview

Post by MegumiSawada »

Hi Mark,

Sorry for late reply.

We have no preferred way.
Either programmatically or not, it would be ok for us as long as we can control the orientation.

TIA

Megumi
MarkDuignan
Posts: 346
Joined: Wed Apr 18, 2012 10:33 am

Re: [RPG]Printing PDF in webview

Post by MarkDuignan »

A property to control the orientation will be included in the next scheduled LongRange release.
This will be for iOS only. Android printing orientation is normally controlled by the manufacturer's software.
Post Reply