generating jasper report without the browser save dialog

Forum to discuss the new web client version of Servoy.

generating jasper report without the browser save dialog

Postby derk.hulshof » Fri Jul 21, 2017 10:59 am

Hi all,

I have an application in which I create a jasper report using
var _bytes = plugins.jasperPluginRMI.runReport(_server, _report, null, 'pdf', _params, _locale ); (using runReport for the file bytes returned)

In my code the variable _bytes is used to create JSFile on the filesystem. That all works fine.

Now running this code in the browser. The browser opens the download options dialog for saving or displaying the report pdf.
What I want is creating the report file without the browser save dialog appearing. ( I do not want to change the browser settings )

Cant find a method in the jasperPluginRMI what is only creating the report pdf and returns me the bytes of the file.

Anyone got an idea?

Thanks in advance
Derk
derk.hulshof
 
Posts: 108
Joined: Tue Dec 03, 2013 9:18 am
Location: Netherlands

Re: generating jasper report without the browser save dialog

Postby Harjo » Thu Jul 27, 2017 12:33 pm

I believe, not using a JSFIle is the solution, but out of my head just write the bytes to with writeFile.

I'm not sure, but there was somewhere on the wiki a list, which commands are triggering a download window in the web and which not...
Harjo Kompagnie
ServoyCamp
Servoy Certified Developer
Servoy Valued Professional
SAN Developer
Harjo
 
Posts: 4321
Joined: Fri Apr 25, 2003 11:42 pm
Location: DEN HAM OV, The Netherlands

Re: generating jasper report without the browser save dialog

Postby chaitanyas » Mon Oct 02, 2017 2:17 am

Hi,

Is there a solution for this ?

In my case, we are not creating a jsfile instead we are creating an email attachment and still we are getting file save dialog. Please share if there is any alternative or fix for this issue.
chaitanyas
 
Posts: 101
Joined: Tue Jul 26, 2011 8:28 am

Re: generating jasper report without the browser save dialog

Postby chaitanyas » Sun Oct 08, 2017 6:24 am

Hi All,

Any suggestions please.
chaitanyas
 
Posts: 101
Joined: Tue Jul 26, 2011 8:28 am


Return to Servoy NGClient

Who is online

Users browsing this forum: No registered users and 5 guests