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

abhimanyu.prasad

Members
  • Posts

    15
  • Joined

  • Last visited

Community Answers

  1. abhimanyu.prasad's post in Problems with loading data to PDF/HTML from XML was marked as the answer   
    Hi llokk2007,
    Modify your code flow to something like below:
    JasperDesign jasperDesign = JRXmlLoader.load(sourceFileName);JasperReport jasperReport = JasperCompileManager.compileReport(jasperDesign);JRXmlDataSource xmlDataSource = new JRXmlDataSource(inputStream, jasperReport.getQuery().getText());JasperPrint jasperPrint = JasperFillManager.fillReport(jasperReport, parameters, xmlDataSource);JasperExportManager.exportReportToPdfFile(jasperPrint, resultpath);[/code]If you are good with your jrxml, then this will definitely do it for you. Let me know if you still face the same issue.
  2. abhimanyu.prasad's post in Embedding image in JRXML template was marked as the answer   
    Hey thanks a lot, Ben. Actually, I had tried with the double quotes, but I was always evaluating it under <variableexpression>. The same thing worked if we do the same inside <initialValueExpression>:
    <variable name="encImage" class="java.lang.String"> <initialValueExpression><![CDATA["iVBORw0KGgoAAAANSUhEUgAAASwAAAEsCAMAA…"]]></variable>[/code]The thing striked as soon as I saw your reply.  
    Regards,
    Abhimanyu
×
×
  • Create New...