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

slavicekpavel

Members
  • Posts

    2
  • Joined

  • Last visited

slavicekpavel's Achievements

Newbie

Newbie (1/14)

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

Recent Badges

0

Reputation

  1. Hello, I have a question. I am a beginner in jasper and I have to know if is difference in performance between defining an image in a template static or dynamicaly via parameter. For example I can define the image in template like this: 1) setting parameter URL url = this.getClass().getClassLoader().getResource("pdf/my_image.tif");parameters.put("logo", url);[/code]declaration in a template <parameter name="logo" class="java.net.URL"> <defaultValueExpression><![CDATA[]]></defaultValueExpression></parameter>[/code] usage in a report/template <image> <reportElement x="100" y="30" width="135" height="30"/> <imageExpression><![CDATA[$P{logo}]]></imageExpression></image>[/code] 2) defines the path in the template <imageExpression class="java.lang.String"> <![CDATA[$P{REPORTS_DIR} + "/images/logo.jpg"]]></imageExpression>[/code]Is needed compiling the template repeatedly (see 1)? Is difference between 1 and 2 in performance? Thank you in advance Pavel Slavicek
  2. I used iReport 4.0.1 to design and generate report file. isIgnorePagination="true" does not work for PDF format. I used the example from this page: http://www.developer.com/java/getting-started-with-jasperreport.html Then I tried two possibilities. 1 - set isIgnorePagination="true" in template 2 - set the parameter IS_IGNORE_PAGINATION = true any of those possibilities does not work for data which are on the 2 pages. Below is the example if I tried print more items than is possible print on the one page. It works only if I set for example 4 items. I also need ignoring pagination for subreports... but I can not move if does not work the primitive an example. Please help! I really need "Ignore Pagination" report in PDF format! Thanks!
×
×
  • Create New...