VL-Web - download files made with Lansa Integrator

This Q&A forum allows users to post and respond to "How Do I Do ....." questions. Please do not use to report (suspected) errors - you must use your regional help desk for this. The information contained in this forum has not been validated by LANSA and, as such, LANSA cannot guarantee the accuracy of the information.
Post Reply
dvanoni
Posts: 37
Joined: Wed Dec 02, 2015 3:47 am
Location: Chiasso - Switzerland

VL-Web - download files made with Lansa Integrator

Post by dvanoni »

Hi all!

We would like to create some PDF reports using Lansa Integrator. Is it possible to get the PDF file back from a srvroutine? I mean we call the function for creating the PDF file from a SRVROUTINE and then we want to get the file back as a response in order to download it.

Is it possible? If not, what do you suggest to make it possible?

Thanks
User avatar
Stewart Marshall
Posts: 417
Joined: Thu Nov 05, 2015 5:25 pm

Re: VL-Web - download files made with Lansa Integrator

Post by Stewart Marshall »

Using the response object to download a file is documented here

http://docs.lansa.com/14/EN/lansa017/in ... 1_0545.htm

You could also show the PDF on a page and allow the user to save as required

The xDemoWebPDFViewer sample shows how this might be done.

Regards
Stewart Marshall

Independent IT Consultant
www.marshallfloyd.com.au
Post Reply