Jump to content
JasperReports Library 7.0 is now available ×

Email JasperReport in PDF format


2004 IR Help

Recommended Posts

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

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...