 |
AppletTalk.com Java discussions newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Meendar Guest
|
Posted: Sun May 20, 2007 7:12 am Post subject: Send file to a path |
|
|
Hi,
I am using jasper reports for reporting and i am sending the file as
attachment to the client, please see the below code for more detail,
I just need to save in a particular folder in client location, how can
it be possible.
response.setContentType("application/pdf");
response.addHeader("Content-Disposition","attachment;
filename=StaffRemReport" +".pdf");
exporter = new JRPdfExporter();
exporter.setParameter(JRPdfExporterParameter.JASPER_PRINT,jasperPrint);
exporter.setParameter(JRPdfExporterParameter.OUTPUT_STREAM,response.getOutputStream()
Thanks in Advance; |
|
| Back to top |
|
 |
Meendar Guest
|
Posted: Mon May 21, 2007 7:11 am Post subject: Re: Send file to a path |
|
|
On May 20, 7:06 pm, Lew <l...@nospam.lewscanon.com> wrote:
| Quote: | Andrew Thompson wrote:
Meendar wrote:
..
I am using jasper reports for reporting and i am sending the file as
attachment to the client, ...
I just need to save in a particular folder in client location, how can
it be possible.
Is that a question? Note the addition of '?' marks
my words as a question.
It is not practical if you are sending the file as an
attachment, the user gets to choose where, and
even if, they will download it.
For more control on the client side, you might allow
access to the documents via a trusted applet or web
start application, and use that to save the PDF to a
specific location.
Why do you feel the need to force the user to save a
PDF in a particular place?
For that matter, what assurance do you have that the target directory even
exists on a user system? Or can exist?
--
Lew- Hide quoted text -
- Show quoted text -
|
Since file is the report , it is the customer's requirements to make
it a specific folder and save all the reports to the folder.
However, thanks to all for the useful suggestions! |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|