generating jasper report without the browser save dialog

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

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…

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.

Hi All,

Any suggestions please.