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

anila

Members
  • Posts

    9
  • Joined

  • Last visited

anila's Achievements

Apprentice

Apprentice (3/14)

  • Week One Done
  • One Month Later
  • One Year In
  • First Post Rare
  • Conversation Starter Rare

Recent Badges

0

Reputation

  1. Thanks for your suggestions. Though i increased the JVM size i couldn't find any significant decrease in report generation time. Can any of you help me with a solution at jasper level wherein i can reduce the report filling time(when the "fillReport" method is called). Is there any way or workaround to have control on the "fillReport" method when huge data is present, so that we can reduce the report filling time? Please provide a solution (if you have any) as soon as possible. Thanks in anticipation.
  2. Our requirement is to generate a Jasper report with and without page break option and print it too. To achieve this we tried to handle “with page break” and “without page break” scenarios in a single jrxml template.For With Page Break the group tags will have “isStartNewPage” attribute set to TRUE.For Without Page Break the group tags will have “isStartNewPage” attribute set to FALSE. Below shows the <group> design for with (isStartNewPage="true") and without(isStartNewPage="false") page break scenarios. As we can't control the rendering of the group at run time we have tried at the band level by using the "<printWhenExpression><![CDATA[($P{hasPageBreak}.equals("1"))? new Boolean(true):new Boolean(false)]]></printWhenExpression>" <!-- with page break --><group name="Groupheader1" isStartNewPage="true" isReprintHeaderOnEachPage="true" > <groupExpression><![CDATA[$F{groupbaseid}]]></groupExpression> <groupHeader> <band height="0" isSplitAllowed="true" > <printWhenExpression><![CDATA[($P{hasPageBreak}.equals("1"))? new Boolean(true):new Boolean(false)]]></printWhenExpression> </band> </groupHeader> <groupFooter> <band height="0" isSplitAllowed="true" > <printWhenExpression><![CDATA[($P{hasPageBreak}.equals("1"))? new Boolean(true):new Boolean(false)]]></printWhenExpression> </band> </groupFooter> </group> <!-- without page break --> <group name="Groupheader1_nopb" isStartNewPage="false" isReprintHeaderOnEachPage="true" > <groupExpression><![CDATA[$F{groupbaseid}]]></groupExpression> <groupHeader> <band height="0" isSplitAllowed="true" > <printWhenExpression><![CDATA[($P{hasPageBreak}.equals("0"))? new Boolean(true):new Boolean(false)]]></printWhenExpression> </band> </groupHeader> <groupFooter> <band height="0" isSplitAllowed="true" > <printWhenExpression><![CDATA[($P{hasPageBreak}.equals("0"))? new Boolean(true):new Boolean(false)]]></printWhenExpression> </band> </groupFooter> </group> We are able to achieve this but with some issues like extra spacing, new page at end of the report, etc.The reason is design of one template differs from the other. Please suggest a solution to resolve the above mentioned issue wherein we can handle with and without page break cases in a single jrxml template.
  3. When IS_IGNORE_PAGINATION is set to true i get all the information on a single long page in the report. But when i print, the information is lost since only one page is being printed (since length of the paper on which the print is given isn't as long as the information viewed in the report). Can anyone provide a solution wherein i can print this single long page on multiple pages so that no information is lost. Please provide a solution ASAP. If any source code present please share it. Thanks in anticipation.
  4. I need to pass "isStartNewPage" attribute of a <group> tag dynamically. I tried following way: <group name="detaila" isStartNewPage=$V{pageBreakValue} isReprintHeaderOnEachPage="true" > where "hasPageBreak" is the parameter that I am passing. However, the .jrxml file is not compiling. it says that the value of isStartNewPage attribute must be given within " ". How do i resolve this issue?? <field name="pageBreakValue" class="java.lang.String"/> <variable name="pageBreakValue" class="java.lang.Boolean" resetType="Report" calculation="Nothing"> <variableExpression><![CDATA[$P{hasPageBreak}.equals("0") ?new Boolean(false):new Boolean(true)]]></variableExpression> </variable>
  5. I have placed "Arial.ttf" file in /library/fonts folder and now the report looks similar to that which is generated on WIndows
  6. When huge data is to be filled into the jasper report, its taking much time for the report generation. (It took 19mins to generate one of my report.) Please help me with a solution where i can optimize this filling process of the jasper report, so that reports can be generated quickly? Please provide with any source code if available.
  7. I have many reports in my project. I need to change the font that is displayed in the report. My .jrxml files contain about 20000 lines. It is difficult for me to change <font> tag for text element in all the .jrxml files. Is there a way that i can change the font of my reports without changing the .jrxml files?? I tried to use setFont() method on JasperViewer object. But it didnot work.
  8. If we assign a font say font1 to Jasper Viewer object using setFont() method and in .jrxml file we assign a different font say font2 using <font> tag for text element, which font will the jasper viewer consider while displaying the report???
  9. When printing reports from Jasper from LAN on MAC OS 10.5 Intel or PPC, the report looks correct in the jasper viewer however on paper the wrong font is being used and the output does not look ideal on paper as it is printing with the Lucida Grande 12 system font rather than are specified Ariel font. It is my current belief that this is a Java MAC OS issue that may be resolved when apple comes out with a JRE 1.6 for MAC. Can we make any custom modification to the primary jasper jar to overcome this issue?
×
×
  • Create New...