yamini Posted June 6, 2007 Share Posted June 6, 2007 Hi Teodor, I have a jasper file which have one gif image and exporting it to html, pdf, xls, and rtf format through servlet. The servlet also has pagination functionality.The image is getting displayed in html format but didnt in xls, pdf, and rtf format. One more thing is that when i m exporting report to rtf format, browser takes lot of time to open the rtf format. The report has 42 pages and it is a tabular report. What is the problem. Help me to sort out this issue as early as possible. Thanks in advance. Aditya Link to comment Share on other sites More sharing options...
swood Posted June 6, 2007 Share Posted June 6, 2007 Is the problem with JasperServer? RTF files generated by JasperReports are much larger than PDFs. That is the cause of the slopw speed. ShermanJasperSoft Link to comment Share on other sites More sharing options...
yamini Posted June 6, 2007 Author Share Posted June 6, 2007 No, I am not using jasper server. The report is filled and exported using jasper report api in a servlet. But the xls file is not taking so much time. One more thing I noticed that RTF file has a size of 11 MB as compared to 963Kb XLS file for the same report. What about the images ? It is not gettting displayed in RTF, XLS, PDF format. Thanks, Aditya Link to comment Share on other sites More sharing options...
swood Posted June 6, 2007 Share Posted June 6, 2007 I don't know about that. Have you looked on the JasperReports forum? ShermanJasperSoft Link to comment Share on other sites More sharing options...
yamini Posted June 6, 2007 Author Share Posted June 6, 2007 Ya, i have searched the forum. What I found in forum is that in XLS images are not there because og poi library does not support it. I am using latest version of poi library and itext library. If poi doesn't support the images then is there any way to have images in XLS and RTF format. Thanks, Aditya Link to comment Share on other sites More sharing options...
yamini Posted June 8, 2007 Author Share Posted June 8, 2007 Is there anyone to help me. How can I have images(gif/jpeg) on RTF,pdf and XLS format when exporting through servlet. please help me to sort out this issue as early as possible. Thanks Aditya Link to comment Share on other sites More sharing options...
albundy Posted June 20, 2007 Share Posted June 20, 2007 Use JExcelAPI to export Excel worksheets containing images. We've tried adding image support to POI 3.0 but because of lack of time haven't ever got to find out why it didn't work. JXL on the other hand works flawlessly, and as far as I can remember Jasper Server uses JExcelAPI to export to Excel.link - jexcelapi.sourceforge.net Link to comment Share on other sites More sharing options...
swood Posted June 22, 2007 Share Posted June 22, 2007 That's right - JasperServer uses the JExcel library. ShermanJasperSoft Link to comment Share on other sites More sharing options...
yamini Posted June 25, 2007 Author Share Posted June 25, 2007 Thanks, Now the images getting rendered in all the exporting format (rtf, pdf and xls) when I am giving absoliyte path. But now the problem is when I am giving relative path to an image it does not works. Actually the image is stored in my web application folder and I dont want to give absolute path. Relative path working is fine when exporting to HTML but not for PDF, XLS, RTF. I am attaching the jrxml file. Please provide the solution so that the images get rendered. Thanks Aditya [file name=VoiceSession.jrxml size=34112]http://www.jasperforge.org/components/com_joomlaboard/uploaded/files/VoiceSession.jrxml[/file] Link to comment Share on other sites More sharing options...
yamini Posted June 25, 2007 Author Share Posted June 25, 2007 Thanks, Now the images getting rendered in all the exporting format (rtf, pdf and xls) when I am giving absoliyte path. But now the problem is when I am giving relative path to an image it does not works. Actually the image is stored in my web application folder and I dont want to give absolute path. Relative path working is fine when exporting to HTML but not for PDF, XLS, RTF. I am attaching the jrxml file. Please provide the solution so that the images get rendered. Thanks Aditya [file name=VoiceSession-a3d9a9746787d17c03697f86ae94cec1.jrxml size=34112]http://www.jasperforge.org/components/com_joomlaboard/uploaded/files/VoiceSession-a3d9a9746787d17c03697f86ae94cec1.jrxml[/file] Link to comment Share on other sites More sharing options...
istvan.oosterlinck Posted January 24, 2008 Share Posted January 24, 2008 I have a similar problem with displaying images in a pdf.When using an absolute path, the images are displayed correctly in the pdf, but not when using a relative path. With the relative path, some don't get rendered, other just look black. Loading the pdf in Acrobat Reader also takes up much time. However, when using iReport, and creating the pdf that way, everything seems to work, although i'm using the same resource bundle. Have you found a solution to your problem? If so, plz post it here. Thanks Istvan Link to comment Share on other sites More sharing options...
shankarpanda003 Posted September 7, 2012 Share Posted September 7, 2012 swoodWrote:I Have a created a report which has my company logo and deployed it to jasper server as well,,but when i am exporting that report to xls,csv format,,,the image is not displaying in dat csv and xsl file. That's right - JasperServer uses the JExcel library. Sherman JasperSoft 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