Hi guys
Converting Lianja/VFP app to a js web app and have a couple of questions re webviews
In the Lianja/vfp version we use a webview section that calls a Lianja server page .rsp
We then issue :
cTmpnam = "somefilename.pdf"
oWebView = Lianja.getElementByID("pageOrder.sectionwebview")
oWebView.print("","Portrait","PDF",cTmpnam,"A4",0, 1920,1080)
showdocument("File:///"+cTmpnam)
which creates and then displays a pdf file. As the file is saved on the local hard drive we can then email it.
Questions :
1) In a js web app, can we use the same .rsp file or do we need to convert it to a .jssp?
2) are we right to be using a webview section, rather than a webview gadget on a form section?
3) In js, we are trying to call the identical :
var cTmpnam = "somefilename.pdf";
oWebView = Lianja.getElementByID("pageOrder.sectionwebview");
oWebView.print("","Portrait","PDF",cTmpnam,"A4",0, 1920,1080);
showdocument("File:///"+cTmpnam);
which works fine on desktop but output is blank when tested in web when printed or saved to pdf but does not create a PDF file
3) As browsers are not allowed to save a file to the local hard drive programatically (sandboxing?), presumeably we would have to save it manually each time. how can we email the resultant file when it is created?
Thanks in advance
SpringBox
Bookmarks