Gerardo Corro wrote:
> Hi itext people,
> 
> I was wondering how could I create a PDF report and send it as an email 
> attachment. Is there a way to create the report in memory and attach it 
> to an email? I mean, I would not like to create the report on disk and 
> have the email reading the file system to attach the report.
> 
> Please advice. Thanks!

You can use any OutputStream; in your case, don't use a 
FileOutputStream, use a ByteArrayOutputStream instead.
-- 
This answer is provided by 1T3XT BVBA
http://www.1t3xt.com/ - http://www.1t3xt.info

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

Reply via email to