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

gobenn71

Members
  • Posts

    26
  • Joined

  • Last visited

gobenn71's Achievements

Explorer

Explorer (4/14)

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

Recent Badges

0

Reputation

  1. Can anyone else here help? How do i create bold fonts within a single textfield expression anyway when exporting to PDF?
  2. This looks like a good solution. Unfortunately i'm generating PDF output where the html markup seemingly doesn't work.
  3. Hi folks, In a report, i want to display 5 fields. The fields should be displayed centered in the page and as if they were forming a single connected row without any trailing or leading spaces between the field contents. To explain, not like FIELD1 FIELD2 FIELD3 FIELD4 FIELD5 but FIELD1 FIELD2 FIELD3 FIELD4 FIELD5 OK, this could be accomplished by using a single Textfield in centered layout and in its expression i add up the contents of FIELD1-FIELD5. But here is my problem : The contents of FIELD1 and FIELD5 should be displayed in bold and a bigger font size than the other fields : FIELD1 FIELD2 FIELD3 FIELD4 FIELD5 Is there a way to accomplish this? Thanks in advance... Post Edited by gobenn71 at 01/04/2011 09:47
  4. Can someone help me? I want to create a report which should display czech letters. I don't have any clue what to do, sorry. Can i use the standard pdf Times Roman font which is included in iReport? Do i have to use/buy another font? Any help appreciated...
  5. Hi all, i've got the following problem/challenge :D : In a report, i'm getting a date range with a start date and an end date as fields via a datasource. for instance : StartDate = 2009-10-01 EndDate = 2009-10-07 From those 2 valueI now want to dynamically calculate and display all the dates of the days which are included in this date range. The report should display something like : 2009-10-01: .....<some other information> 2009-10-02: .....<some other information> 2009-10-03: .....<some other information> 2009-10-04: .....<some other information> ... 2009-10-07: ..... .....<some other information> Is there any way to implement this in a JasperReport ? I'd like to add that i don't have groovy available in the production runtime environment. Post Edited by gobenn71 at 05/25/2010 12:36
  6. @pablo : Thanks alot. I tested your method to retrieve the installed fonts but it doesn't return fonts which are located in the classpath of my application. anyway, thank you.
  7. I have another question, how do i retrieve the (PDF-)fonts which are available in my application at runtime ?
  8. Hi, is there a way to register PDF fonts for Jasper Reports at runtime of an application ? Background is that our application is running 24-7 but users should be capable of deploying new reports at runtime. These reports may include fonts which are not in the classpath, so is there a possibility to register new fonts at runtime ?
  9. A solution which comes to my mind would be to pass the number of pages of the previous report as a parameter to the next report to render. Of course you then have to modify the the expression to calculate the page numbers so that it considers the value of the parameter when computing the page numbers.
  10. Thanks alot, the JRElementsVisitor does the job for subreports and images. But how do i retrieve all the text fields ? Or do i have to overwrite the visitTextField() method of the JRVisitorSupport class to obtain the font names ?
  11. Hi, in an application, i want to retrieve information about the structure of a report via the JasperReports API to do consistency checks for reports deployed by the (end-)user before starting to compile the reports . In particular, i want to - retrieve a list/set of all subreports referenced by a specfic report - retrieve a list/set of all images referenced by a specific report - retrieve a list/set of all fontes referenced by a specific report. Can someone give me a hint how to solve these problems with the JasperReports API ? The JasperDesign class doesn't seem to offer particular methods to solve these problems.
  12. I'm not sure if you did completely understand the concept of subreports yet. To talk about parameters : you use parameters in order to pass specific data from the main report to the subreport. In the dialog which pops up after clicking on 'parameters' in the subreport settings, the left column shows the parameter fields defined in your subreport. The right column shows which fields/variables and so on from your main report are bound to these parameters in the subreport. If you have a parameter XY in your subreport and it is bound to the field $F{SomeField} this means that when the reports are processed, the main report will pass the value of $F{SomeField} to the subreport in the parameter XY. Thus the value of $F{SomeField} from the main report can be accessed in the subreport via the parameter XY.
  13. No, you have to choose 'use a datasource expression'
  14. I have still the same problem. I still don't get it. Is this a bug within iReport 3.5.3 ? I have a variable which should count the occurences of a group. The definition is as follows : variable class : java.lang.Integer calculation : count Reset type : report variable expression : ($V{IndexCommodity_COUNT} != null && $V{IndexCommodity_COUNT}.intValue()==1) ? "" : null (this trick to count the occurences of a group was published in one of the iReport guide books...) initial value expression Integer.valueOf(1) I get the following error : The initial value class is not compatible with the variable's class WHY ? Post Edited by gobenn71 at 11/10/2009 07:46
  15. Did you create a datasource expression for your subreport ? In the subreport properties of your main report, look out for 'connection Type'. Choose 'use a datasource expression' there. Then create a datasource expression : ((net.sf.jasperreports.engine.data.JRXmlDataSource) $P{REPORT_DATA_SOURCE}).subDataSource(<XPATH FOR SUBREPORT>) where <XPATH FOR SUBREPORT> equals the subreport XPATH-Expression. Post Edited by gobenn71 at 11/09/2009 12:54
×
×
  • Create New...