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

idilchennai

Members
  • Posts

    10
  • Joined

  • Last visited

 Content Type 

Profiles

Forum

Events

Featured Visualizations

Knowledge Base

Documentation (PDF Downloads)

Blog

Documentation (Test Area)

Documentation

Dr. Jaspersoft Webinar Series

Downloads

Everything posted by idilchennai

  1. Hi EveryBody, I am have a master report (main.jrxml), inside the pageheader band, i have a subreport (sub.jrxml which has only static fields). I am using JREmptyDataSource (All the things are static field). While running master report it cannot print the subreport (only print the content in master report) Code JasperReport subreport = (JasperReport)JasperCompileManager.compileReport("E:\JasperTest\sub.jrxml"); HashMap Parameter = new HashMap(); Parameter.put("subreport",subreport); jasperReport = JasperCompileManager.compileReport( "E:\JasperTest\main.jrxml"); jasperPrint = JasperFillManager.fillReport(jasperReport, Parameter, new JREmptyDataSource()); JasperExportManager.exportReportToPdfFile( jasperPrint, "E:\JasperTest\sub-report-test.pdf"); Main.jrxml <parameter name="subreport" isForPrompting="true" class="net.sf.jasperreports.engine.JasperReport"/> <pageHeader> <band height="300" isSplitAllowed="true" > <subreport isUsingCache="true"> <reportElement x="5" y="74" width="525" height="74" forecolor="#3333FF" backcolor="#00CC00" key="subreport-1" isRemoveLineWhenBlank="true" isPrintInFirstWholeBand="true" isPrintWhenDetailOverflows="true"/> <subreportExpression class="net.sf.jasperreports.engine.JasperReport"> <![CDATA[$P{subreport}]]></subreportExpression> </subreport> </band> </pageHeader> sub.jrxml <pageHeader> <band height="80" isSplitAllowed="true" > <staticText> <reportElement x="95" y="24" width="355" height="35" key="staticText-1"/> <box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/> <textElement> <font/> </textElement> <text><![CDATA[This is the sub report ]]></text> </staticText> </band> </pageHeader> Please Help me (very urgent).. Thank you
  2. Hi everybody, How to make text alignment in a text field (dynamically alignment input (right, left, center) from java) Please help me very urgent.
  3. Hi All, I have few text fields in details band for which styled text is enabled. So i can use <style> tag to apply styles for text. Text field values are retrieved from scriplet class. Using <style> tag i can apply other styles like font-size,face,isBold ... But I could not apply alignment using <style> tag dynamically. Pl help
  4. Hi All, I have few text fields in details band for which styled text is enabled. So i can use <style> tag to apply styles for text. Text field values are retrieved from scriplet class. Using <style> tag i can apply other styles like font-size,face,isBold ... But I could not apply alignment using <style> tag dynamically. Pl help
  5. Hi All, I have few text fields in details band for which styled text is enabled. So i can use <style> tag to apply styles for text. Text field values are retrieved from scriplet class. Using <style> tag i can apply other styles like font-size,face,isBold ... But I could not apply alignment using <style> tag dynamically. Pl help
  6. Hi everybody How to handle ampersand '&' in the Text Field (value is passed from datasource). Text Field isStyledText property is set to TRUE Help me
  7. Sorry I can map values to this text field from java which is name &/OR NO. <style size="9" isBold="false" >name &/OR NO</style> WARNING: Invalid styled text.oracle.xml.parser.v2.XMLParseException: Expected name instead of /. I think the problem is in '&'. how to Print '&' symbol? Please help me
  8. Hi I am having a text field in the ireport design and set isStyledText property to TRUE <textElement textAlignment="Left" verticalAlignment="Top" isStyledText="true"> <font/> </textElement> I can map some values to this text field from java which contains some special characters like '/'. It will throw a warning WARNING: Invalid styled text.oracle.xml.parser.v2.XMLParseException: Expected name instead of /. and print pdf like <style size="9" isBold="false" >name/no</style> How to solve this problem? Please help me
  9. I am having a text field in the details band its height is 19 and details band height is 23. If i map two or more lines of text to that text field . I print only the first line, second and next lines will be omitted. How can i fix this problem Please help me.
×
×
  • Create New...