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

mreis

Members
  • Posts

    31
  • 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 mreis

  1. hi, does jasperreports support letter-spacing [1] - we would need something similar to xsl:fo's letter-spacing attribute [2] ... kind regards & many thanks markus [1] http://en.wikipedia.org/wiki/Letter-spacing [2] http://www.w3.org/TR/xsl/#letter-spacing
  2. I filed a bug for that - please vote for it -> http://jasperforge.org/plugins/mantis/view.php?id=5368
  3. Under Extras -> Options -> iReport -> JasperReport Properties (tab) one can add, modify, and remove jasperreports properties or restore their "default" values. I thought that these entries were taken from ireport/modules/ext/jasperreports-<version>.jar, but when I modifed the default.jasperreports.properties directly in this jar, restarted iReport, and checked Extras -> Options -> iReport -> JasperReport Properties (tab) I couldn't find my changes. Could you please tell me where iReport takes these entries from and where/how changes are stored. We'd like to use the same default.jasperreports.properties in iReport as well as in our batch jobs ... kind regards & many thanks markus
  4. mreis

    pdf fonts

    Matt - after quite some research - I fully agree with you that we should avoid using the pdfFontName property for every <font> definition (using a different font for the fontName and pdfFontName property seems completely wrong). On the one hand pdfFontName is a deprecated property and should thus be avoided, on the other hand a fontName (with corresponding fonts in the jasper font extension jar) overrides the pdfFontName anyway. using a font extension jar should further eliminate all my cross-platform problems. one last negative aspect is that I couldn't eliminate the Helvetica font from the pdf - this topic can be found here: http://jasperforge.org/plugins/espforum/view.php?group_id=102&forumid=103&topicid=74379&topid=89864 I think I should file a bug for this ... regards, markus
  5. I've searched the bug tracker for a corresponding bug, but couldn't find one. Is this already fixed in JasperReports and if yes from which version on (I use 3.7.4 and the bug still exists)?
  6. mreis

    pdf fonts

    Our reports contain text elements defining a font using <font fontName="Arial" size="12" isBold="false" isItalic="false" pdfFontName="Helvetica-Bold" isPdfEmbedded="false"/> We defined the pdfFontName attribute for every <font> tag (using either Helvetica or Helvetica-Bold as the value). Due to the fact that our JVM (IBM V9) doesn't define a mapping for Arial, I get the following warning: "Font 'Arial' is not available to the JVM." Nevertheless the pdf report is successfully rendered - the fonts that this pdf contains are Helvetica and Helvetica-Bold (as expected). Then I created a fonts-extension jar including some metadata and the arial*.ttf font files. Now JasperReports finds Arial and doesn't bring out the warning .So far everything works as expected. The resulting PDF however now contains the following fonts: ArialMT and Helvetica. My question is why (in the second case with the fonts-extension.jar) the resulting PDF doesn't contain Helvetica and Helvetica-Bold as its fonts (but instead ArialMT and Helvetica)? I'd like to find a way to eliminate the warning, and also get a PDF that contains Helvetica and Helvetica-Bold. kind regards & many thanks, markus
  7. mreis

    システム構成

    OK, so the problem was actually in jasperreports rather than in ireport -> http://jasperforge.org/scm/viewvc.php/tags/jr-3-5-3/jasperreports/src/net/sf/jasperreports/engine/xml/JRXmlConstants.java?root=jasperreports&view=log (rev. 2973) giulio, could you double-check with lucianc and then close this bug?
  8. mreis

    システム構成

    hmmm ... couldn't find any getAlignmentMap methods in 3.6.0 ... cdeal, could you please point us/me to the class(es)/method(s) where the problem was fixed? many thanks, Markus
  9. mreis

    システム構成

    Giulio - are there any relevant/related changes from 3.5.2 to 3.6.0 that may fix this problem or is this rather a "mere guess" (based on the experencies reported by lcourtin on 10/15/2009 12:46 in mantis item 3789)? We actually wanted to wait until the "Winter 2009" release of JasperReports (http://jasperforge.org/projects/jasperreports/tracker/roadmap) and the corresponding iReport release for our next upgrade, but probably we can use 3.6.0 in our test environment in parallel in the mean time ... cheeers, Markus
  10. mreis

    システム構成

    and it also happens with java 1.6.0_07 .... ... so I really begin to doubt that this is a general java bug/problem. probably it's somehow related to the netbeans infrastructure/environment ...
  11. Hi, we're currently evaluating iReport 3.5.2 with the goal to migrate from iReport 2.0.5 to iReport 3.5.2. A lot of our problems (e.g. barcode integration, compile button, etc.) have already been solved from 3.5.1 to 3.5.2. Nevertheless there's still one major problem with the preview mode/tab. When we switch from Designer or XML to Preview the application becomes quite slow (i.e. doesn't respond quickly if you click on an UI item). I already tried to increase the initial and max heap size, but without any effect (the application only uses around 50 MB of memory). Is there any chance to improve this situation? Is this a known problem and will this be addressed in the next release? many thanks & kind regards, Markus
  12. Hi, is there some kind of built-in "parameter" that represents an absolute (or relative) file path to the current jasper report that could be used in report expression (e.g. in order to reference sub-reports for on-the-fly compilation)? kind regards & many thanks, Markus
  13. Hi, we'd like to use the JRPrintServiceExporter functionality in order to directly print a jasper report on a network printer. Following the corresponding sample code everything works out fine, except for some parts/texts with special fonts that are obviously not known to the printer (by default). When we produce a PDF from the report everything works fine and the PDF can be printed correctly. Is there a way to tell the JRPrintServiceExporter to somehow "embed"/use the fonts that are embedded in the PDF version of the report or is it possible to produce PDF and then print it (using javax.print or similar)? many thanks & kind regards, Markus Code:<staticText> <reportElement .../> <box> <topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> <leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> <bottomPen lineWidth="0.0" lineColor="#000000"/> <rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> </box> <textElement textAlignment="Left" verticalAlignment="Top" rotation="None" lineSpacing="Single"> <font fontName="GI16-Medium" pdfFontName="GI16Med.ttf" size="30" isBold="false" isItalic="true" isUnderline="false" isPdfEmbedded ="true" pdfEncoding ="Cp1252" isStrikeThrough="false" /> </textElement> <text><![CDATA[bausparvertrag]]></text></staticText>
  14. Hi, I already tried "solution one" which is really simple and pragmatic and works great - unfortunately it is limited to one image/logo per master report ... The second solution sounds very interesting, although there's the overhead costs in writing our own custom query executor. Still I think, that this may be a good solution and should help in other problem areas as well. Are there any other examples of custom query executors except from those already included in the jasperreports distribution? Anyway - many thanks ... I think I have now a clear picture how caching works with blobs fetched from db and further I'll now investigate how query executors work and which benefits we can get from writing our own. many thanks & kind regards, Markus
  15. Hi, OK. The next question would then be - How can we use image blobs in our reports using the caching mechanism? Do we need to use subreports which only contain the image based on a query that returns exactly one result (e.g.: SELECT image_blob FROM my_image_blob_table WHERE image_blob_id=1)? Given the requirement that caching for image blobs must work, can those subreports only be embedded in header or footer or could they also be embedded in the detail section? Using image blobs from db is crucial for us, since we use the same reports in different environments on different servers and platforms, but all accessing the same database. If we'd use/embed images from the file system or via the classpath we'd have to duplicate the images which leads to a maintenance nightmare. kind regards & many thanks, Markus
  16. Hi, attached you can find two versions of the same jasper report - one defines a logo (fetched from a db blob) in the page header and the other one defines the same logo in the detail section. In both cases the resulting pdf (6 pages) doesn't cache the logo. Hope this helps in answering the question. kind regards & many thanks, Markus
  17. Giulio, we also missed the compile button - it's great news to hear that you'll this function in the next ireport version (I assume 3.5.2) ... BTW: could you also add some kind of bulk compilation function (á la 'Massive Compiler' in iReport "classic")? many thanks & kind regards, Markus
  18. How long will it take until 3.5.2? Are there any (other) major drawbacks compared to iReport 3.0.0 "classic"? kind regards, Markus
  19. Hi, we've been working with iReport "classic" from JasperReports 1.x on ... ... now it seems that iReport "classic" becomes some kind of deprecated and iReport NB seems to be the future. Should we switch to iReport NB and are there any drawbacks when migrating to the iReport NB (e.g. barcode lib, etc.)? kind regards & many thanks, Markus
  20. Hi, we reference images in our jasper reports from database (stored in a blob column). Some of those images appear in the header and footer section of the report and are repeated/equal on every page of the resulting pdf. So we tried to enable the isUsingCache flag on the image, but without any luck (the image is still duplicated and the size of the resulting pdf unnecassarily huge). Reading through "The definitive guide to JasperReports" on Caching Images (page 117/118, chap. 10) it says that caching is possible for java.io.InputStream. The images in question are always the same on every rendered pdf page. And here some snippets from the .jrxml file: <queryString><![CDATA[sELECT wblb_blob logo FROM t_web_blob, t_stati where wblb_id = 6]]></queryString> <field name="LOGO" class="java.io.InputStream"/> <image scaleImage="FillFrame" isLazy="true" isUsingCache="true" ... > <reportElement mode="Opaque" x="369" y="19" width="199" height="83" forecolor="#000000" backcolor="#FFFFFF" key="logo"/> <box><topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> <leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> <bottomPen lineWidth="0.0" lineColor="#000000"/> <rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> </box> <graphicElement stretchType="NoStretch" fill="Solid" /> <imageExpression class="java.io.InputStream"><![CDATA[$F{LOGO}]]></imageExpression> </image> Is it possible to enable/use caching for this kind of images? kind regards & many thanks, Markus
  21. We have the following problem: We want to "group" two text fields so that the second text field begins directly beneath the first text field. The first text field contains text fetched from database and my differ significantly in length. Example: ------TEXTBLOCK1------- Dynanmic Blablba (may be 1 line or n lines long) ------TEXTBLOCK1------- ------TEXTBLOCK2------- follows TEXTBLOCK1 "immediately" ------TEXTBLOCK2------- How can we do that? many thanks & kind regards, Markus
  22. yes this works (except that I had to replace the double quotes for the style attribute values by single quotes): Code:"First Font Size : <style isBold='true' fontName='Times-Bold' size='28' pdfFontName='Times-Bold.ttf'>"+$F{Dummy2}+"</style>"+" Second Font Size : <style isBold='true' fontName='Courier-Bold' size='14' pdfFontName='Courier-Bold.ttf'>"+$F{Dummy1}+"</style>"
  23. Hi, we want to define a text field: This text field contains data/text fetched via a database queries - some of those "text bricks" should be formatted with font1 others with font2 and in different font sizes and weights. Example: "Dear Mr. Potter Harry, we'd like to inform you that your address 1234 Rokfort, Street 2 is no longer valid and would like ask you to inform us about your new address." The name of our client ("Mr. Harry Potter") and his address ("1234 Rokfort, Street 2") is a string fetched dynamically from a database. The length of both strings can differ significantly between clients. Further we'd like to use another font (and size and weight) for the client's name and address. Is this possible and if yes, how would we best do that (in a single text field)? many thanks & kind regards, Markus
×
×
  • Create New...