Jump to content
Changes to the Jaspersoft community edition download ×

shivenderd

Members
  • Posts

    17
  • Joined

  • Last visited

shivenderd's Achievements

Apprentice

Apprentice (3/14)

  • Week One Done
  • One Month Later
  • One Year In
  • First Post Rare
  • Collaborator Rare

Recent Badges

0

Reputation

  1. Hi, We use jasper 1.3.3. Our reports contain expressions like $R{key} and $p{paramname} etc.. everything was working fine until we added -Dfile.encoding=UTF-8 to the java arguments. We observed that if we use -Dfile.encoding=UTF-8 parameter to the java arguments, we see that jasper reports are showing some balnk fields where we have entries of $R{key} and $P{key}. This happens always on windows 2003 and solaris but I obeserved it is working fine in windows XP. It is happening for only few entries but not for every entry. When we remove the encoding parameter in java arguments. Everything is working fine. Any thoughts? Thanks, Shivender
  2. I used javalogical font name sanseries in the JRXML and used the same logic to replace the pdfencoding and pdffontname, It is working fine now. I used to have other fontName in jrxml and I think awtfont to PDF font mapping used default font in solaris for fieldlength calculations. I think that caused the truncation issue.
  3. Hi, I see a problem with the textfield display. We do the following operations: 1 - We have a textfield in the jrxml that has isStretchWithOverflow="true" attribute set. 2 -Generate the JasperPrint instance by calling JasperFillManager.fillReport() method 3 - Replace the PDFFontname and encoding by calling individual methods on the fields: ((JRTemplateText)text.getTemplate()).setPdfFontName() 4 - We return the jasperprint instance to JRViewer and the same is used by the PDFexporter. If we have japanese charecters, at step-3 we set the pdffont name to HeiseiKakuGo-W5 and pdfencoding to UniJIS-UCS2-H. When we execute this in Windows environment, it is working fine and displaying the japanese charecters in both JRViewer and also in the Exported PDF. When we execute this in Solaris Japanese locale OS, it is truncating text both in JRViewer and exported PDF. if I give extra line breaks at end of the text, then the text is displayed completley. I am sure it must be the font metrics problem when the report is being generated. Can you suggest any way to solve this problem? We would like to see the consistent behavior in both solaris and windows environment
  4. Hi, I see a problem similar to this. We do the following operations: 1 - We have a textfield in the jrxml that has isStretchWithOverflow="true" attribute set. 2 -Generate the JasperPrint instance by calling JasperFillManager.fillReport() method 3 - Replace the PDFFontname and encoding by calling individual methods on the fields: ((JRTemplateText)text.getTemplate()).setPdfFontName() 4 - We return the jasperprint instance to JRViewer and the same is used by the PDFexporter. If we have japanese charecters, at step-3 we set the pdffont name to HeiseiKakuGo-W5 and pdfencoding to UniJIS-UCS2-H.When we execute this in Windows environment, it is working fine and displaying the japanese charecters in both JRViewer and also in the Exported PDF. When we execute this in Solaris Japanese locale OS, it is truncating text both in JRViewer and exported PDF. if I give extra line breaks at end of the text, then the text is displayed completley. I am sure it must be the font metrics problem when the report is being generated. Can you suggest any way to solve this problem? We would like to see the consistent behavior in both solaris and windows environment
  5. I do have the same problem with Japaneese charecters. I tried in different ways like explicitly setting fontmap ettc.. nothing worked for me. -Shivender
  6. Hi all, I got problems in PDF export with Japaneese charecters. When I use the HTML/RTF/XLS export it is working properly. I use the following font element for my textfield : <font pdffontname="Helvetica-Bold" isBold="true" pdfencoding="UTF-8" ispdfembedded="false"/> I use jasper reports 1.3.3 version and iText 1.3.1 and I have iTextAsian.jar in my classpath. Did I miss anything? Why it is not working for PDF alone? Please suggest -Shivender
  7. Thanks for the help. It was solved. There is some empty place within the band in the subreport. I mean the report element in that subgraph did not occupy the entire band. I made the report element height equal to the band height then it started working properly. Thanks again Regards, Shivender
  8. Hi Lucian, I don't see any empty space in the JRxml file. Please see the above Jrxml file and please asist me on this. Thanks, Shivender
  9. Hi lucianc, Thanks for the reply. Please see the JRXML template below(starting from detail section): <detail> <band height="20" isSplitAllowed="true" > <textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" > <reportElement mode="Opaque" x="32" y="0" width="478" height="20" key="textField" positionType="Float" isRemoveLineWhenBlank="true"/> <box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/> <textElement verticalAlignment="Middle"> <font reportFont="Helvetica_Normal" size="8"/> </textElement> <textFieldExpression class="java.lang.String"><![CDATA[$F{legendText}]]></textFieldExpression> </textField> <image isUsingCache="true" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" > <reportElement mode="Opaque" x="6" y="1" width="22" height="16" forecolor="#CCCCCC" key="image" positionType="Float" isRemoveLineWhenBlank="true"/> <box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/> <graphicElement stretchType="NoStretch"/> <imageExpression class="java.awt.Image"><![CDATA[$F{legendIcon}]]></imageExpression> </image> </band> </detail> <columnFooter> <band height="0" isSplitAllowed="true" > </band> </columnFooter> <pageFooter> <band height="0" isSplitAllowed="true" > </band> </pageFooter> <summary> <band height="0" isSplitAllowed="true" > </band> </summary> </jasperReport> Post edited by: shivenderd, at: 2008/06/10 08:30
  10. Hi lucianc, Please let me know if you have any suggestions on this. Thanks, Shivender
  11. Hi all, We use jasper report 1.3.3 version. We have a main report and it contains multiple subreports. We use one legend subreport that display the legend items. The problem: 1) if we have 8 legend entries, it is displaying the 7 entries in the first page and 1 entry in the second page. 2) If we have 7 legend entries, it is displaying the 7 entries in the first page and a blank second page. 3) If we have 6 legend entries, it is displaying all entries in a single page and no blank page is generated. I suspected it is the problem with the font size so I have decreased the fontsize of the legend text entry from 10 to 8 ( I did not change the band height of this detail section). After changing the legend text font size: 1) If we have 7 legend entries, it has showed all entries in the single page. But, we have a textfield in the main report that displays the title of the report before the graph and legend subreport, if we don't give any value for that(it has isRemoveLineWhenBlank="true" poperty). 1)If we have 8 legend entries(without any title), it is displaying 8 entries in the single page and a blank second page. Hope you understand what I explained here. Is there any one who solved this kind of problem? Is there any solution that you can suggest to me?? Thanks in advance. Thanks, Shivender
  12. Hi, I face the same problem too. Does any one have solution for this? Please update?
  13. I believe I found the solution for my problem. It is like this: The actual size of the image file is 515 X 287 and We have following statements in JRHtmlExporter: int imageWidth = image.getWidth() - image.getLeftPadding() - image.getRightPadding(); int imageHeight = image.getHeight() - image.getTopPadding() - image.getBottomPadding(); The caluculated width and height values are used in HTML <img> tag for width and height. This shrinks the actual image size... Solution: I have given padding values to zero in the corrosponding <style> tag in JRXML file as I don't want to change the JRHtmlExporter content. any comments?? Thanks, Shivender
  14. Hey, I am facing this problem. I did not understand the solution can anybody explain me this? Thanks, Shiv
  15. I tried with jdt-compiler-3.1.1.jar available at <jasperhome>/lib but the result was the same. Please suggest. Thanks, Shivender
×
×
  • Create New...