I would like to print a form loaded within an NGClient.
I tried to (any of those solutions work):
- to use
- Code: Select all
"controller.print()"
- calling browser print by using
- Code: Select all
"plugins.WebClientUtils.executeClientSideJS('window.print();');"
- to use pdf printer:
- Code: Select all
var success = plugins.pdf_output.startMetaPrintJob()
forms.showWebBrowser_ProjectsReportsDashboard.controller.print(false,true,plugins.pdf_output.getPDFPrinter())
var pdfData = plugins.pdf_output.endMetaPrintJob()
plugins.file.writeFile("filepdf.pdf", pdfData)
Thank you