Jump to content
We've recently updated our Privacy Statement, available here ×

dolly_11

Members
  • Posts

    18
  • Joined

  • Last visited

dolly_11's Achievements

Apprentice

Apprentice (3/14)

  • Week One Done
  • One Month Later
  • One Year In
  • First Post Rare
  • Collaborator Rare

Recent Badges

0

Reputation

  1. Hi, sorry for the misunderstanding......... sorry..i'm not able to attach the file as its size is more.hence i'm sending the blank PDF report through mail to u'r id teodord@users.sourceforge.net Thanks, dolly Post edited by: dolly_11, at: 2007/04/26 08:39 Post edited by: dolly_11, at: 2007/04/26 08:41 Post edited by: dolly_11, at: 2007/04/26 08:45
  2. Hi teodord, Here I'm attaching that JRXML file again. Thanks, dolly [file name=CHIP_XP24000-3fcc7cb22aef7760d867deca85e6b04a.xml size=104798]http://www.jasperforge.org/components/com_joomlaboard/uploaded/files/CHIP_XP24000-3fcc7cb22aef7760d867deca85e6b04a.xml[/file]
  3. Hi, The PDF report which is generated from the JRXML file which i have attached to this thread is of 928KB.I'm able to generate the report and save it on the disk.But when i open it using Acrobat it is showing empty (blank) report with out any content in the report. Thanks, dolly
  4. Hi, Both are related but they are not the same issues.This issue is related to the complete report getting blank pdf document..whereas in the other issue about "logo not getting dislayed ........",i'm getting complete report generated but only the logo is not visible.But for that issue i identified the problem that it is not able to find the path for the image of my Logo.But i'm using the same JRXML for HTML & for PDF .But it takes the path for HTML but for PDF it is throwing the error path not found.Why is it so its not working for only PDF?Wht can i do to get the image....... And even plzz tell me abt this issue also about report being generated but not able to download as PDF.even though the file size is 982KB Thanks alot........for u'r help Teodord as atleast i'm trying to find the problem and even need u'r help Thanks, dolly
  5. Hi, here is my JRXML attached.Plz check it and let me know what i can do? [file name=CHIP_XP24000.xml size=104798]http://www.jasperforge.org/components/com_joomlaboard/uploaded/files/CHIP_XP24000.xml[/file]
  6. Hi teodord, it did'nt work.I had used the below code instead of the previous mentioned code. JasperPrint jasperPrint = fillReport(sourceFile, parameters); ServletOutputStream out1 = response.getOutputStream(); try { // create a bytearrayoutputstream object ByteArrayOutputStream baos =new ByteArrayOutputStream(); //set the content type for the response as pdf response.setContentType("application/pdf"); //fill the outputstream object baos with jPrint object JasperExportManager.exportReportToPdfStream(jasperPrint,baos); //set the content size for the output file (pdf) response.setContentLength(baos.size()); //write the exported outputstream to the servlet outputstream baos.writeTo(out1); out1.close(); } But it did'nt work.......this problem occurs even when i'm saving the report on to the disk.It does'nt happen with other reports for which i'm using the same code to generate the reports in PDF.But the content or size of the other reports that are getting generated is less when that is compared with the report which i'm facing this issue.So i feel that it is a problem related to page size.So plz tell me wht can i do to add new page inorder to get the complete content of the page.'coz currenlty the PDF report shows only one page and that too blank page without any content.So i feel that the data in my report is exceeding more then one page......And even the report is getting generated and its size is 977 KB.May be bcoz of this i'm not able to view the report.But the size of other reports which i can view with complete info is 92KB only.....Is this can be a problem..wht should i do to solve this thanks, dolly Post edited by: dolly_11, at: 2007/04/19 04:31
  7. hi, Below is my <image> element code from jrxml file: <image scaleImage="Clip" onErrorType="Icon" isLazy="true"> <reportElement x="0" y="0" width="40" height="50"/> <graphicElement stretchType="NoStretch" pen="None" fill="Solid" /> <imageExpression class="java.lang.String">$P{ImagePath}</imageExpression> </image> As u suggested i have used onErrorType="Error" but it did'nt work..... Thanks, dolly
  8. Hi, I'm generating the reports using JAVA/servlets.I have been generating many reports in both PDF & HTML.But i never got this sought of problem.Actually i'm using the same jrxml file for both PDF & HTML reports that are to be generated.But in HTML the report is being displayed completely but in PDF just a blank PDF report is generated without any images.Actually i'm using JFreecharts in my reports.I suspect that the contents that are to be displayed are exceeding the page in PDF report.How to add new page if the content exceeds the existing page???..Here is my sample code below......... //dynamically display the report on browser public static void generateRespondPDFReport(String sourceFile, HashMap parameters, String destFileName, HttpServletRequest request, HttpServletResponse response) throws Exception{ JasperPrint jasperPrint = fillReport(sourceFile, parameters); try { JRPdfExporter exporter = new JRPdfExporter(); exporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint); exporter.setParameter(JRExporterParameter.OUTPUT_STREAM,response.getOutputStream()); exporter.exportReport(); } catch(Exception e) { } Plz help me.. Thanks, dolly
  9. Hi Teodord, I mean the image is getting displayed but instead of the logo it is displaying a strange image (it is displaying some square sought of image with red,green and blue colors inside it).And even the font is coming as bold if it is dynamically generated in browser.But it is displaying the logo correctly in HTML format and even in a PDF report that is being saved on a disk .But I'm getting this image problem only when i want to dynamically generate the PDF report on the browser.The image which i want to display is a GIF image.Can u plzz analyize whtz the problem.... Thanks, dolly Post edited by: dolly_11, at: 2007/04/18 03:29
  10. Hi, I'm using the same jrxml file for both HTML & PDF reports.But when i generate the HTML report the report is generated completely but the PDF report is showing blank white page without any Report.Is there any difference between the page settings for HTML & PDF.I mean the content in the report is not fitting in PDF or what?? I 'm not sure but doubting????.Plzzzzzzzz wht can i do to solve this issue.........When the report is generated in HTML then why it is not generating in PDF format.....What i need to do for this....... Regards, dolly
  11. Hi all, Can any one help me out of this issue.I directly displaying the HTML & PDF reports on browser.But i'am getting a problem while displaying the logo on the header portion of Report.The logo's are displayed properly in HTML report but in PDF report it is not displaying the image correctly.Why is it so? I'am using same .jrxml file for both PDF & HTML reports.......Plzzzzz help me out of this problem.I'm posting this second time as i did'nt get any reply.......... Plz give me reply as soon as possible regards, dolly
  12. Hi, I'm able to generate PDF & HTML reports.But in HTML i'm able to get the complete reoprt but in PDF format the left left portion of the report did'nt fit in the page.Can anyone plz tell me how to fit my entire report in PDF format.I'm able to get in HTML but not in PDF.What are the tags that i need to set in xml file to set the properties for generating the PDF report.I mean properties like font,page size and so on... Plz can any one send me a sample xml file for PDF report Thanks, dolly
  13. Hi, Actually i' am able to save and generate the HTML & PDF reports successfully.But when i want to view the reports directly in the browser without saving it i'm able to view both PDF and HTML reports.But the problem is i want to get even the logo to be displayed on the top of the report.But it is getting displayed only in HTML format but not in the PDF format.Why is it so? My sample code is as below: // for HTML report JRHtmlExporter exporter = new JRHtmlExporter(); request.getSession().setAttribute(ImageServlet.DEFAULT_JASPER_PRINT_SESSION_ATTRIBUTE, jasperPrint); exporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint); exporter.setParameter(JRExporterParameter.OUTPUT_WRITER, out); exporter.setParameter(JRHtmlExporterParameter.IMAGES_URI, "image?image="); exporter.exportReport(); And for PDF format is as below: //Code for PDF format Map imagesMap = new HashMap(); JRPdfExporter exporter = new JRPdfExporter(); exporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint); exporter.setParameter(JRHtmlExporterParameter.IMAGES_MAP, imagesMap); exporter.setParameter(JRHtmlExporterParameter.IMAGES_URI, "image?image="); exporter.setParameter(JRExporterParameter.OUTPUT_STREAM,response.getOutputStream()); exporter.exportReport(); When i'm using the above code i'm able to view the reports in both HTML and PDF format.But the logo is getting displayed only in HTML report but in PDF report I'm getting a small rectangle sought of image instead of the logo.Why is it so? Plzz help me out of this problem....... Thanks, dolly
  14. Hi, Actually i' am able to save and generate the HTML & PDF reports successfully.But when i want to view the reports directly in the browser without saving it i'm able to view both PDF and HTML reports.But the problem is i want to get even the logo to be displayed on the top of the report.But it is getting displayed only in HTML format but not in the PDF format.Why is it so? My sample code is as below: // for HTML report JRHtmlExporter exporter = new JRHtmlExporter(); request.getSession().setAttribute(ImageServlet.DEFAULT_JASPER_PRINT_SESSION_ATTRIBUTE, jasperPrint); exporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint); exporter.setParameter(JRExporterParameter.OUTPUT_WRITER, out); exporter.setParameter(JRHtmlExporterParameter.IMAGES_URI, "image?image="); exporter.exportReport(); And for PDF format is as below: //Code for PDF format Map imagesMap = new HashMap(); JRPdfExporter exporter = new JRPdfExporter(); exporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint); exporter.setParameter(JRHtmlExporterParameter.IMAGES_MAP, imagesMap); exporter.setParameter(JRHtmlExporterParameter.IMAGES_URI, "image?image="); exporter.setParameter(JRExporterParameter.OUTPUT_STREAM,response.getOutputStream()); exporter.exportReport(); When i'm using the above code i'm able to view the reports in both HTML and PDF format.But the logo is getting displayed only in HTML report but in PDF report I'm getting a small rectangle sought of image instead of the logo.Why is it so? Plzz help me out of this problem....... Thanks, dolly
  15. Hi, Can any one plzzzzzzzzz help me out of this problem? I'm able to display my company logo on the haeder part of the HTML report but i'm not able to do the same thing in PDF report.I was using IMAGE_URI attribute and setting that parameter to the location where the image is located and so it is working for HTML.But how to do it PDF.Below is the sample code: //for PDF format report public static void generateRespondPDFReport(String sourceFile, HashMap parameters,String destFileName, HttpServletRequest request,HttpServletResponse response) throws Exception { JasperPrint jasperPrint = fillReport(sourceFile, parameters); //instantiate an object as ServletOutputStream ServletOutputStream out1 = response.getOutputStream(); try { // create a bytearrayoutputstream object ByteArrayOutputStream baos =new ByteArrayOutputStream(); //set the content type for the response as pdf response.setContentType("application/pdf"); //fill the outputstream object baos with jPrint object JasperExportManager.exportReportToPdfStream(jasperPrint,baos); //set the content size for the output file (pdf) response.setContentLength(baos.size()); //write the exported outputstream to the servlet outputstream baos.writeTo(out1); } catch (JRException e) { e.printStackTrace(); } //And code for HTML is below JRHtmlExporter exporter = new JRHtmlExporter(); request.getSession().setAttribute(ImageServlet.DEFAULT_JASPER_PRINT_SESSION_ATTRIBUTE, jasperPrint); exporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint); exporter.setParameter(JRExporterParameter.OUTPUT_WRITER, out); exporter.setParameter(JRHtmlExporterParameter.IMAGES_URI, "image?image="); exporter.exportReport(); So plz tell me how to make the logo displayed in header part of PDF report as incase of HTML thanks in advance regards, dolly
×
×
  • Create New...