AppletTalk.com Forum Index AppletTalk.com
Java discussions newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Send file to a path

 
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Java Language Programming
View previous topic :: View next topic  
Author Message
Meendar
Guest





PostPosted: Sun May 20, 2007 7:12 am    Post subject: Send file to a path Reply with quote



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





PostPosted: Mon May 21, 2007 7:11 am    Post subject: Re: Send file to a path Reply with quote



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
Display posts from previous:   
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Java Language Programming All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.