So I am trying to save a pdf of a webview and have it opened by the default pdf viewer on the computer. The following code does this:
cPDFfile = "invoice" + "55555fix" + ".pdf"
owv = Lianja.get("Form_View.form").webview
owv.print("","Portrait","PDF",cPDFfile)
showdocument(cPDFfile)
When I change 55555fix to a character variable, it still creates and saves the file, but no longer opens the pdf viewer.
cPDFfile = "invoice" + cEditinvno + ".pdf"
owv = Lianja.get("Form_View.form").webview
owv.print("","Portrait","PDF",cPDFfile)
showdocument(cPDFfile)
Anyone have an idea why?
Bookmarks