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

robertsv

Members
  • Posts

    19
  • Joined

  • Last visited

robertsv'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. yes i have tried - it makes the font smaller but doesn't solve the problem.
  2. Hello :) in order to show text which doesn't fit in the textField - I set isStretchWithOverflow="true". Exporting to excel - this solves the problem only partially (the row height is increased, but not enough). If I understand correctly - there is no real solution for this problem?!
  3. Hello :) I have problem with borders - in exported excel file there is no cell borders. The reason is - in exported excel file the border color is white but is should be "no color". How can I change this in report file (jrxml)?
  4. Hello :) I have a problem running Jasperreports on Websphere 6.0.0.1 (Linux). In windows there is no such problem. By certain amount of the data blank lines are generated. I tried to embed a font into a PDF document. If I check the document properties it looks that font is successfully embedded. But anyway the blank lines are generated! What could be the problem? Any ideas, solutions? This is how I embed a font into a PDF document: 1)add propertie isPdfEmbedded ="true" to font tag and remove the property pdfFontName, fontName is "SansSerif". Code: <textElement textAlignment="Left"> <font fontName="SansSerif" size="8" isBold="true" isPdfEmbedded ="true"/> </textElement> 2)in Java code: Code:[code] // font map: java font -> pdf font Map fontMap = new HashMap(); // normal font fontMap.put(new FontKey("SansSerif", false, false), new PdfFont(fontFile, "Cp1252", true, false, false)); // bold font fontMap.put(new FontKey("SansSerif", true, false), new PdfFont(fontFile.toString(), "Cp1252", true, true, false)); // italic font fontMap.put(new FontKey("SansSerif", false, true), new pdfFont(fontFile.toString(), "Cp1252", true, false, true)); // bold and italic fontMap.put(new FontKey("SansSerif", true, true), new PdfFont(fontFile.toString(), "Cp1252", true, true, true)); exporter.setParameter(JRExporterParameter.FONT_MAP, fontMap); exporter.exportReport();
  5. Thx, I embed font into PDF but it did't really help. If someone have interest, this is how font can be embedded a PDF document: Code: // fontFile is path to font // font map: logical font -> physical font Map fontMap = new HashMap(); // normal font fontMap.put(new FontKey("SansSerif", false, false), new PdfFont(fontFile, "Cp1252", true, false, false)); // bold font fontMap.put(new FontKey("SansSerif", true, false), new PdfFont( fontFile, "Cp1252", true, true, false)); // italic font fontMap.put(new FontKey("SansSerif", false, true), new PdfFont( fontFile, "Cp1252", true, false, true)); // bold and italic fontMap.put(new FontKey("SansSerif", true, true), new PdfFont( fontFile, "Cp1252", true, true, true)); exporter.setParameter(JRExporterParameter.FONT_MAP, fontMap);
  6. Hello :) I have a problem: on linux (Websphere server) AWT font (SansSerif) isn't matching PDF font (Helvetica). On windows (JBoss server) there is no such problem - obviously fonts are matching. Question: cann I just copy SanSerif font file form Windows to Linux? And Should be done some configuration for linux JRE?
  7. Hello, I solved my problem. I have a master report which contains many subreports (each subreport was in own group header). In order to get that each subreport is started on a new page - I set isTitleNewPage="true" for each subreport and most likely this was causing blank pages. Solution: I set isTitleNewPage="false" for each subreport and added page break to every subreport's group (to reach that each subreport is started on a new page) and -> there is no blank pages.
  8. Hello :) I have report with some subreports. After one subreport (subreport1) there is one empty page generated. Not always the blank page is generated, it depends (it looks so) on how many rows are in the last "normal" page. If the last page is completely filled, then most likely the blank page will appear. I allready checked: there is no empty space between band-bottom and the last element. What could be the solution? Any ideas?! [file name=subreport1.xml size=25197]http://www.jasperforge.org/components/com_joomlaboard/uploaded/files/subreport1.xml[/file]
  9. Hi, :) no, not really. Of course I can set the value of the minHeightToStartNewPage quite huge, but this is not what I want. I set for some group minHeightToStartNewPage="X"! In which case the header of this group will be printed in the next page? a)if the remaining vertical space of the current page is < X b)if the remaining vertical space of the current page - band height of group header is < X
  10. hello, similar problem: http://www.jasperforge.org/index.php?option=com_joomlaboard&func=view&id=34240&catid=8
  11. hello, probably you have different configurations on your computers (different versions of java, installed fonts, version of jasperreports) and this could be a problem
  12. Hello :) I have three groups and I want that: if the group "Country" is started then there should be enough space to start "City" group and if the "City" group is started there should be enough space to start "Block of city" group and if the "Block of city" group is started there should be enough space at least for the first line of detail section. In worst case (if remaining vertical space ir minimal) the generated report should look like this: Some Country Some City Some Block of city first line of detail section ---- end of page ---- What values for minHeightToStartNewPage of each group I should set? Are those minHeightToStartNewPage values listed below correct? Example: Code: <group name="Country -" minHeightToStartNewPage="78" > <groupExpression><![CDATA[$F{country}]]></groupExpression> <groupHeader> <band height="22" isSplitAllowed="true" > ... </groupHeader> <groupFooter> <band height="0" isSplitAllowed="false" > ... </groupFooter> </group> <group name="City -" minHeightToStartNewPage="56" > <groupExpression><![CDATA[$F{city}]]></groupExpression> <groupHeader> <band height="22" isSplitAllowed="true" > ... </groupHeader> <groupFooter> <band height="0" isSplitAllowed="false" > ... </groupFooter> </group> <group name="Block of city -" minHeightToStartNewPage="34" > <groupExpression><![CDATA[$F{block}]]></groupExpression> <groupHeader> <band height="22" isSplitAllowed="true" > ... </groupHeader> <groupFooter> <band height="0" isSplitAllowed="false" > ... </groupFooter> </group> <detail> <band height="12" isSplitAllowed="true" > ...
  13. Hello :) problem with pdfFontName and fontName: Right now pdfFontName is Helvetica and fontName is SansSerif. SansSerif is available in the JVM of linux server - I checked this. But anyway there is problem with stretching of fields - if application is running in linux webserver. In windows - everything is ok.
×
×
  • Create New...