Jump to content
Changes to the Jaspersoft community edition download ×

Missing Data in PDF/HTML Reports in IE


Recommended Posts

By: Subhashini Sekar - ss161213

Missing Data in PDF/HTML Reports in IE

2006-06-30 02:32

Hi

 

I have used iReport tool to generate reports.

I am using IE version 6.0 and Adobe Reader version 6.0. for the reports.

Also to generate the reports itext-1.4. and jasperreports-1.2.0. are used.

 

Now i am facing a problem with reports(both in HTML and PDF reports).When the reports are displayed certain datas(even static text) are missing in the reports.

 

Below is the code i use for generating the reports from the .jrxml file

----------------------------------------------------------------------------------------------------

For PDF reports

 

String strFileName = <<full path of jrxml file>>

File sourceFile = new File(strFileName);

 

InputStream input = new FileInputStream(sourceFile);

JasperDesign design = JRXmlLoader.load(input);

JasperReport jasperReport = JasperCompileManager.compileReport(design);

 

JasperPrint jasperPrint = JasperFillManager.fillReport(report, parameters, conn);

//parameters is the Map thro which all the

//parameters to the report are passed.

//conn is the connection object.

 

byte[] pdfasbytes = JasperExportManager.exportReportToPdf(jasperPrint);

 

/* Then these pdf bytes are written into a file and the file is opened thro RequestDispatcher*/

----------------------------------------------------------------------------------------------------

For HTML Reports from the JasperPrint object

 

File file = new File(strSubReportPath);

JRExporter exporter = new JRHtmlExporter();

Map imagesMap = new HashMap();

req.getSession().setAttribute("IMAGES_MAP", imagesMap);

exporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);

exporter.setParameter(JRHtmlExporterParameter.IMAGES_MAP, imagesMap);

exporter.setParameter(JRHtmlExporterParameter.IMAGES_URI, "images\");

exporter.setParameter(JRHtmlExporterParameter.IS_USING_IMAGES_TO_ALIGN,Boolean.FALSE);

exporter.setParameter(JRHtmlExporterParameter.OUTPUT_FILE_NAME,file.toString());

exporter.exportReport();

 

/* Then these output file is opened thro RequestDispatcher*/

----------------------------------------------------------------------------------------------------

In both the reports certain data / title is missing when the report is displayed in the browser.

 

Please suggest if anything could be done to display all the data in the reports.

 

Thanks in Advance.

Archana.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

By: vertebreaker - vertebreaker

RE: Missing Data in PDF/HTML Reports in IE

2006-06-30 15:20

Hello, i´m loosing elements when the report has too many elements, but in Excel and HTML.

See the post on 23-06-2006.

 

 

By: Subhashini Sekar - ss161213

RE: Missing Data in PDF/HTML Reports in IE

2006-07-02 21:59

Hi Again,

 

But this missing elements problem i am facing only with the IE Browser.When i view the same report(from the same jrxml file) through a Mozila Browser all contents are displayed properly.So i dont think this is a problem with the number of elements.So should some settings be changed in IE or any change to be made in the code.Please give some suggestions.

 

Thanks in Advance

Archana

 

 

 

By: vertebreaker - vertebreaker

RE: Missing Data in PDF/HTML Reports in IE

2006-07-05 06:29

I'm using IE 6.0, and Adobe Reader 7.0.

I really don´t have suggestions.

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...