Jump to content

johnbor

Members
  • Posts

    4
  • Joined

  • Last visited

 Content Type 

Forum

Downloads

Featured Visualizations

Knowledge Base

Documentation (PDF Downloads)

Blog

Documentation (Test Area)

Documentation

Dr. Jaspersoft Webinar Series

Security Advisories

Events

Profiles

Everything posted by johnbor

  1. Yes, you're definitely right - tried one static field without frames ( pdf,html too ), it works, but I need frames, and "complex" structure ( fields in frames ) You can see in the attached file - it's kind of a messy thing, after export. I'll try to fix the overlapping, tnx the idea! Have a nice day!
  2. Hi, when i run the attached code, i've got an empty odt file, it contains just the borders of frames, but even the static texts don't appear, and the page numbers are not in the good format ( actual page/all page -> actual page ). Why is that? If I try it in pdf - works fine( report compile OK and the program runs without error ). The build path contains : - IText 2.1.0.jar, POI-3.2-final.jar, jasperreports-3.7.0.jar. Thx in advance! -J Code:InputStream input = new FileInputStream(new File("d:/temp/report.jrxml"));JasperDesign design = JRXmlLoader.load(input);JasperReport report = JasperCompileManager.compileReport(design);JasperPrint print = JasperFillManager.fillReport(report, additionalProp, new RosieObjects(vvv1));// JasperExportManager.exportReportToPdfStream(print, os);JRAbstractExporter exporter = getJasperExporter(ExportFormat.ODT);exporter.setParameter(JRExporterParameter.JASPER_PRINT, print);OutputStream output = new FileOutputStream(new File("d:/temp/catalog." + ExportFormat.ODT.name()));exporter.setParameter(JRExporterParameter.OUTPUT_STREAM, output);exporter.exportReport();output.close();
  3. Thx! I thought about that solution, i'll try it. Have a nice day!
  4. Hi, I would like to use subreport inside another subreport. So the idea is that: Master report -> Subreport1 -> Subreport2. And i would like to see that in the end: - PC Store1 --- Address: USA, Baltimore --- Telephone number: xxxxx --- Softvers: ( Subreport1 ) -----Description: Good stuff -----Details: Very good stuff -----Caution: Not very good stuff -----Types: ( Subreport2 ) -------OS: Windows -------Game: COD,WOW, etc. - PC Store2 --- Address: ITA, Rome --- Telephone number: xxxxxx --- Softvers: ( Subreport1 ) -----Description: xxxx -----Details:xxxx -----Notion:xxxxx -----Types: ( Subreport2 ) -------OS: Linux The problem is that I don't find the appropriate data modell in Java. I tried to use the JRBeanCollectionDataSource way and the store and type data is ok, but i can't give the right data for subreport2. Can anyone has experience in this area of Jasperreports ( 3.6.1 )??
×
×
  • Create New...