ooober Posted July 31, 2008 Share Posted July 31, 2008 Hi i m using jaspersever 2.0.1. I made a report and schedules the report. My client requirment is to mail him html report as email body . Is their any way how to achive this. I also download the jasperserver source code so that i can customized jasperserver, but still not get any success in order to import the source code in ecllipse. Link to comment Share on other sites More sharing options...
swood Posted August 1, 2008 Share Posted August 1, 2008 You would have to change the JasperServer code to do the embedding of the content in the email.On building in Eclipse: we use Maven. Eclipse Maven support has been lacking in the past, but I gather may have improved. I use NetBeans, which is great with Maven. ShermanJaspersoft Link to comment Share on other sites More sharing options...
ooober Posted August 5, 2008 Author Share Posted August 5, 2008 HiThank for quick reponce and guidance.I customized the jasperserver code for sending the report as email body.But one problem remain is images are not showing in email body.I check the link http://www.jspwiki.org/wiki/EmailReportAsHTMLAndPDFits says that" When attaching images to the email it doesn't appear to be possible to determine the image type from Jasper. The sample code uses 'image/gif' for all image types. Even when wrong this appears to work in at least outlook. If your concerned about this limiation then either make certain that all of your images are gif's or lobby the jasper developers to provide and api which exposes the image types ".Is their any way around for showing image in email body.ThanksBest Regards.Hasham.Habib Link to comment Share on other sites More sharing options...
lucianc Posted August 5, 2008 Share Posted August 5, 2008 I'm not able to access www.jspwiki.org (the server might be down), so I can't see the exact code used to compose the report HTML email.In any case, it is possible to determine the type of a report image by using JRTypeSniffer.getImageMimeType(). This works for GIF, JPEG, PNG and TIFF images.Regards,Lucian Link to comment Share on other sites More sharing options...
ooober Posted August 6, 2008 Author Share Posted August 6, 2008 The source code for send html report as email body is Link to comment Share on other sites More sharing options...
bnye Posted September 24, 2009 Share Posted September 24, 2009 Were able to get this done in JasperServer? This would greatly interest me.Sincerely,bnye Link to comment Share on other sites More sharing options...
aezaz.ahmed_1 Posted March 20, 2014 Share Posted March 20, 2014 Hi, I have a requirement to send scheduled report as part of email body when job schedule happen. Could anyone have any idea as i found only this conversation related to by requirement and it is very old conversation but still hoping some will help me out on this, kindly help!! Regards Link to comment Share on other sites More sharing options...
aezaz.ahmed_1 Posted March 20, 2014 Share Posted March 20, 2014 Hi Could you please share any idea or the smaple source code for send html report as email body 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