2004 IR Help Posted August 22, 2006 Share Posted August 22, 2006 By: Dhananjay - jaypro78 Email JasperReport in PDF format 2005-08-08 23:52 Hi, I need to send an JasperReport in pdf format via email. I'm using servlets for this. To achieve this I --create an object of JasperPrint (jPrint). -- called JasperExportManager.exportReportToPdf(jPrint). Code: byte b[]=JasperExportManager.exportReportToPdf(jPrint); -- Then used JavaMail API to send the email. I've set the content type to "application/pdf". but I'm getting following exception : javax.activation.UnsupportedDataTypeException: no object DCH for MIME type application/pdf Do u ppl have any idea? Is there any method available in JasperReport which will directely send the report via email? Please advise. Thanks & Regards Dhananjay Singh Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now