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’.
I am trying various methods of creating PDF documents for printing/emailing from within LongRange. I am making and AJAX call and have a PDF generated in a cloud service which is encoded in the HTTP response. If I make the call with a synchronous form, the PDF is opened in the current webview...what I would like to do instead is take the raw response data and use the LocalFiles class to write the PDF file and then use the UI class to open the saved document. This would allow for the PDF to be shared/printed using the native handler.
Is there something I am missing to be able to create the binary PDF file? Sample code is below:
We can also add a native function to download a remote file and save it to the local file system, which would eliminate any cross domain issues and performance issue related to base-64 encoding for large PDF files. If you'd like the enhancement, please log a request with LANSA Support.