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

ariyanster

Members
  • Posts

    3
  • Joined

  • Last visited

 Content Type 

Profiles

Forum

Events

Featured Visualizations

Knowledge Base

Documentation (PDF Downloads)

Blog

Documentation (Test Area)

Documentation

Dr. Jaspersoft Webinar Series

Security Advisories

Downloads

Everything posted by ariyanster

  1. I designed a report using iReport and i'm filling it in my Java application. Then I'm showing result using `JasperViewer`. The shown report is correct; but when I use JasperViewer's print button to print it; While the paper size is A5 and report size is A5 too it print the report in a A4 page! (it puts the entire A5 report in bottom left of and A4 page!) my report's config is this: And i'm showing it with this: JasperReport jasperReport = null; JasperPrint jasperPrint = null; JasperDesign jasperDesign = null; Map parameters = new HashMap(); jasperDesign = JRXmlLoader.load("/home/user1/reports/pe_report.jrxml"); jasperReport = JasperCompileManager.compileReport(jasperDesign); jasperPrint = JasperFillManager.fillReport(jasperReport, parameters, new JRBeanCollectionDataSource(data)); JasperViewer.viewReport(jasperPrint,false); What is the problem?
  2. I have a report template that has a subreport; in main report I have some parameters that should be available in subreport too. Main report parameter is defined like this: [/code]And in subreport I defined same parameter with the same name: [/code]And I provided parameters of master report for sub report like this: new HashMap($P{REPORT_PARAMETERS_MAP}) [/code]but this throws this: SEVERE: nullnet.sf.jasperreports.engine.JRRuntimeException: net.sf.jasperreports.engine.JRException: Incompatible java.lang.Integer value assigned to parameter PID in the subRPT dataset.at net.sf.jasperreports.engine.fill.JRFillSubreport.prepare(JRFillSubreport.java:711)at net.sf.jasperreports.engine.fill.JRFillElementContainer.prepareElements(JRFillElementContainer.java:329)at net.sf.jasperreports.engine.fill.JRFillBand.fill(JRFillBand.java:419)at net.sf.jasperreports.engine.fill.JRFillBand.fill(JRFillBand.java:378)at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillColumnBand(JRVerticalFiller.java:2035)at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillDetail(JRVerticalFiller.java:760)at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReportStart(JRVerticalFiller.java:270)at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport(JRVerticalFiller.java:128)at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:946)at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:845)at net.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:58)at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:417)at biorec.control.reporting$1.doInBackground(reporting.java:177) What is the problem? Thanks
  3. Hi I'm using JasperReport to create a report from database. But data are encrypted in database so I need to decrypt them in my main Java application first. So I can't use SQL as data source. How should I provide my prepared records for report? should I implement JRDataSource by myself or there is a better way? Thanks
×
×
  • Create New...