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

gobenn71

Members
  • Posts

    26
  • 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 gobenn71

  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
  16. I have the same problem ! I upgraded from iReport 3.5.3 and an xml report which runs fine in 3.5.3 shows the same problem in iReport 3.6.1 gabrieleir Wrote: I upgraded from iReport 3.6.0 to 3.6.1, imported my XML report datasource and opened a jrxml report created and working with version 3.6.0. But when I try to preview it in 3.6.1 I get the following error: Error filling print... java.lang.NoClassDefFoundError: org/apache/xpath/CachedXPathAPI java.lang.ClassNotFoundException: org.apache.xpath.CachedXPathAPI java.lang.NoClassDefFoundError: org/apache/xpath/CachedXPathAPI at net.sf.jasperreports.engine.util.xml.XalanXPathExecuter.<init>(XalanXPathExecuter.java:45) at net.sf.jasperreports.engine.util.xml.XalanXPathExecuterFactory.getXPathExecuter(XalanXPathExecuterFactory.java:39) at net.sf.jasperreports.engine.util.xml.JRXPathExecuterUtils.getXPathExecuter(JRXPathExecuterUtils.java:85) at net.sf.jasperreports.engine.data.JRXmlDataSource.<init>(JRXmlDataSource.java:172) at net.sf.jasperreports.engine.data.JRXmlDataSource.<init>(JRXmlDataSource.java:218) at com.jaspersoft.ireport.designer.connection.JRXMLDataSourceConnection.getJRDataSource(JRXMLDataSourceConnection.java:196) at com.jaspersoft.ireport.designer.IReportConnection.getJRDataSource(IReportConnection.java:71) at com.jaspersoft.ireport.designer.compiler.IReportCompiler.run(IReportCompiler.java:887) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:572) at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:997) Caused by: java.lang.ClassNotFoundException: org.apache.xpath.CachedXPathAPI at java.net.URLClassLoader$1.run(URLClassLoader.java:217) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:205) at java.lang.ClassLoader.loadClass(ClassLoader.java:323) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294) at java.lang.ClassLoader.loadClass(ClassLoader.java:268) at org.netbeans.ProxyClassLoader.loadClass(ProxyClassLoader.java:252) at java.lang.ClassLoader.loadClass(ClassLoader.java:268) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:336) ... 10 more Print not filled. Try to use an EmptyDataSource... Any suggestion? Thanks, Gabriele
  17. But why does iReport then say 'the inital value class is not compatible with the variable's class', when i put "" or new String("") into the initial value expression of a variable which creates a String ? Is this possibly a bug in iReport 3.5.3 ? Post Edited by gobenn71 at 11/09/2009 12:28
  18. Hi all, although i'm not new to JasperReports and iReport, i still don't understand the concept of the initial variable expression ! Can someone explain to me, why i always get an error like 'the inital value calss is not compatible with the variable's class', when i put the variable expression into the initial value expression ? my variable expression is generating a string and the variable has the type string. I simply don't get what the concept behind the initial value expression is, can someone explain it to me ?
  19. Hi all, I´ve got the following problem : we are building a couple of reports on XML data. The XML schema defines a date type and a datetime type. Of course within the report, we would like to access both date and datetime types as java.util.Date. In the XML datasource, i´m able only to set a single date format pattern, therefore parsing the xml always causes errors since the dates (without time) are not regarded as a valid date with our format string. Since it is not possible to have an optional part within a java date format pattern , is there an elegant way to tackle this problem so that both the date and datetime types could be handled as java.util.Date within the report ? Currently i switched the fields displaying the date types to string to get rid of the parsing problem but this is not the ideal solution since i have to access year, month and day within the report for date types, so i have to do a lot of conversions which i wouldn´t have to do if i could access the dates as java.util.Date as well... Post Edited by gobenn71 at 08/25/2009 14:00
  20. Hi, i'm trying to create a variable ( Variable Class : String ) which depending on the value of a field creates an output string (the report runs with a xml datasource..). I have 2 problems : 1. the variable expression works fine but only in the detail band. If i put my variable into the title ( where it normally should be located...), the value of the variable is always "null". What do i have to do to get my variable running in the title band ? 2. what is the variable initial expression ? I first tried to insert my variable expression into the initial expression as well but it always produced error 'The initial value class is not compatibel with the variable's class : ...'. This error even occurs when i try to return "test" as initial expression. The documentation is rather thin here, can someone elaborate on the meaning/use of the initial expression ?
  21. Thanks, i already discovered this possibility. But isn't there a dialog like in iReport 3.0.0 classic where i have an overview over all existing groups and where i can manipulate group expressions and so on .. ?
  22. Hi all, i was using iReport 3.0.0 classic for a long period of time. Now i switched to 3.5.2 nb and i'm currently missing a lot of features. Surely they are available but where ? To my real question : In iReport classic there was a 'report groups' button which opened the group dialog for a specifc report. The dialog listed all available groups and the user was able to manipulate the group expressions of existing groups, add new or delete existing groups and so on. Where do i find this feature in iReport nb 3.5.2. I've searched a lot but i wasn't able to find a similar dialog...
  23. Found a solution to my problem. Seems that i wasn't passing the datasource in the right way to the subreport . In the subreport settings, i set the datasource to ((net.sf-.jasperreports.engine.data.JRXmlDataSource) $P{REPORT_DATA_SOURCE}).dataSource("/TradeData/TimeIntervals/TimeInterval") and everything works now.
  24. Hi all, I've got a problem with a report built with iReports 3.0.0 upon an xml datasource. My XML file contains trade data and has some basic information (e.g. Buyer, Seller, Currency, Amount etc..) and some repeatable interval subsections which contain specific data on certain trades ( date from., date to and so on...). I created a (main-)report to display the general trade data and a (sub-)report which displays the trade intervals as a table. Both reports use XPath expressions to define a record node, of course the pathes are different. ( e.g. main report "TradeData", 2nd (sub-)report "\TradeDataTimeIntervalsTimeInterval" ...). When run alone, both reports are doing fine. I then tried to incorporate the report displaying the interval data into the main report but then, the sub report is always empty. It never shows any data, only the static text headers of the table ( when i set the 'whenNoDataType' property to "AllSectionsNoDetail"). I suppose that i have a problem with my Datasource, in fact can anyone explain how to set up a sub report datasource-wise when it should use the same datasource as the main report but a different XPath-Expression ?
  25. Let me add that if i switch the 'whenNoDataType ' property of the subreport to 'AllSectionsNoDetail' , i can see the headers containing static text in the main report so the problem is not related to formatting problems or a misplaced subreport or something like that. It must be connected to the XML Datasource .
×
×
  • Create New...