Hi Jignesh, Here's an outline of solution that may prove helpful: 1. Generate PDF using FOP and save it to the server's docroot through the method stated below.
2. A quick tutorial on the JavaMail API is available at: http://developer.java.sun.com/developer/onlineTraining/JavaMail/contents.html Look at the "Sending Attachments" section because you'll have to attach the PDF you generated in Step 1, to the e-mail you want to send out. Regards, Ken Jignesh Shah wrote: > > I am sorry, I didn't compose the message correctly, > What I want to do is generate this file on the hard drive and use > javamail to forward it. Since from the earlier discussions in this > "thread" it was agreed upon that a file wud have to be stored in a > repository, I wanted to see if I cud get a quick help in generating and > keeping the fiel on the hard drive. > > My apologies. > > Jignesh > > -----Original Message----- > From: J.Pietschmann [mailto:[EMAIL PROTECTED] > Sent: Wednesday, July 30, 2003 3:06 PM > To: [EMAIL PROTECTED] > Subject: Re: PDF Generation and Javamail > > Jignesh Shah wrote: > > I generate my pdf using the below code: > > I'm not really sure what your problem is. Is it really related > to the subject? Otherwise, you should have started a new thread, > choose a meaningful subject, and you could *at least* have > snipped all unrelated the "original message" stuff. Is it Outlook > which makes everybody ignoring common etiquette? > > ... > > This lets me open the pdf file dynamically. If I have to save the same > > file on the server hard drive, What should I change? How can I assign > a > > specific filename and directory location > > Try > driver.setOutputStream(new FileOutputStream("your filename"); > > I'd recommend looking into a Java book. > > J.Pietschmann > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
