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

willemdankier

Members
  • Posts

    7
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

willemdankier's Achievements

Rookie

Rookie (2/14)

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

Recent Badges

0

Reputation

  1. I would like to export pdf's with fonts that can be bold or italic. That does not work out-of-the-box. I have done some experimenting with font extensions, but that solution is too static. We develop a huge web app with a Java middletier. That generated the reports using the Jasper java classes. Reports are designed in Jaspersoft Studio (by us and our app users) and are stored (jrxml and compiled version) in the database. Users of our app can add, remove and replace reports with our front-end. So they can design there own invoice layouts, which is great. But using font extentions, we can only provide a static number of fonts with our current version. It takes too much time to request a new font, implement it, test it, implement it in the production version and update our customer. Everytime we update our customer, we have to bring the app server (Wildfly/jboss) down so that whole company needs to pause. Is there a way to work more dynamic with fonts on a production environment? We can (and do) parse the jrxml vor various reasons, so we are able to create a list of fonts and styles in runtime. Any thoughts are appreciated! If you need more info, please ask!
  2. Hi all, I'can not see how to download the new JasperReports Library version 6. The green "Download" button on the page https://community.jaspersoft.com/download next to "JasperReports® Library" send me to https://community.jaspersoft.com/project/jasperreports-library/releases And the green "Download JasperReports® Library" send me back to the page https://community.jaspersoft.com/download and the loop goes on... I wanted to download the package to see if the releasenotes where hidden in there. But maybe someone can hint me to the place where I can find the release notes. We are currently using Library 5.6 but in a month we are going to release a new version of our own software and maybe we can bundle it wit Library 6.0. But before we do that we want to read about the things that were changed and updated. Why is a download feature hidden and why are there no releasenotes visible. Those are the first tings that people are looking for. Is there a reason for this, does someone not want Japser 6 to be downloaded? Anything to be afraid of? Thanks for your help!
  3. How do I determine the version of the Japser Reports Library being used? Let me explain why I want this. We use iReport to build jrxml files. We save these files in the database along with a compiled version of the report. We compile the report with the Japser Java Library. Over time we use newer Japser Library versions, but there may be compiled reports in the database, that were compiled with older versions of Jasper. I would like to compare the version current runtime Jasper Libarary with the version that is used to compile a existing report. And when that differs, I want the software to recompile te report. If I can not determine the version of a compiled report, than I would like to save the Japser version at the moment of compilation, so I can compare that. So, is there any way to determine the currently used Japser Library version and, if possible, the version of a compiled report? Thanks in advance for your valuable time! Willem
  4. Hi all, I'm busy getting my software to talk to the webservice of JasperServer. I would like to run a simple report, but it does not work, and I tried a lot! Using the default user/password on a test install of JasperServer 5.2 (Cummunity Edition) on a Windows 2008 Server using the default setting of a 64 bit Windows installer Here is wat I do: 1. I log in with a GET request on http://130.62.11.248:8080/jasperserver/rest/login?j_username=jasperadmin&j_password=jasperadmin I got a 200 result with a cookie in the headers and I remember that for future use. 2. I ask for a list of reports with a GET request (with the previously received cookie in the headers) on http://130.62.11.248:8080/jasperserver/rest/resources/reports?type=reportUnit&recursive=1 I got a 200 result with a wonderfull xml in the body, containing a list of resourceDescriptors with reports. I fill a list with the name, label, description and uriString, so I can select one to run. 3. I select a very simple report. This reports contains only 3 fields. No parameters, vars, images or anything like that. When I log in to JasperServer with my browser (with the same credentials), the reports runs fine. Its one page which contains about 20 records. according to the previously received xml, the uriString of this report is /reports/Kassas. 4. The easiest way to get a pdf of that report using the webservice should be a rest_v2 call. So I do a GET request (with the cookie set in the headers) on http://130.62.11.248:8080/jasperserver/rest_v2/report/reports/Kassas.pdf Now I get a 404 Not Found reponse. And that is where I need some help. I played with the extension (for format selection), an alternative resource path, which gave me a 'resource not found' error. The user has an admin role. I am out of options. Please tell me what I do wrong. I got two days left before my manager wants to decide if we continue with JasperServer. Thank you for your valuable time!
  5. Hi baggypants, thank for your answer. I tried a simpler version first: ( $V{currentPage}.equals(new BigDecimal(1)) ? new Boolean("False") : new Boolean("True") ) I placed it in the print-when expression of my sum-value-field wich is placed in the headercolumn. I want to hide that field on page one. But it did not work. Since currentPage is an Integer, I changed the code to: ( $V{currentPage}.equals(new Integer(1)) ? new Boolean("False") : new Boolean("True") ) This result was a hidden field on page 1. Yeah! But it was also hidden on page 2. :(It was visible though on the last two pages of by 4-paged test document.To test this expression I made a new textfield in the columnheader with the above code as expression and the evaluation time to "Now" (just like the sum value field in the column header). I also copied this field to the detail band. It seems that the result of the expression is updated per row. But in the columnheader of page 2, this value is not updated.An result pfd result is included.I can't help thinking about the amout of time it cost me to get someting as basic and simple as this done in iReport...Before I release my frustration ;-) on my anyting I'll try cbarlow3's answer.
  6. Hi All. I hope some of you can help a newbie: I struggle a lot with variables within iReport. To me it seems they work very complicated and after a week I still can't figure out they really work. So I need some tips from anyone. It took me in the first place a long time figure out how to put a pagenumber and a pagecount in one textfield to align the whole string. This is done by adding two variables: <variable name="pages" class="java.lang.Integer" incrementType="Page"> <variableExpression><![CDATA[$V{PAGE_NUMBER}]]></variableExpression> <initialValueExpression><![CDATA[]]></initialValueExpression> </variable> <variable name="currentPage" class="java.lang.Integer" resetType="Page" incrementType="Page"> <variableExpression><![CDATA[$V{PAGE_NUMBER}]]></variableExpression> <initialValueExpression><![CDATA[$V{PAGE_NUMBER}]]></initialValueExpression> </variable> then make a text field in the pageheader: <textField evaluationTime="Auto"> <reportElement x="435" y="0" width="110" height="20"/> <textElement textAlignment="Right"/> <textFieldExpression class="java.lang.String"><![CDATA["Page "+$V{currentPage}+" of "+$V{pages}]]></textFieldExpression> </textField> If someone has a better solution, you're welcome to respond :)The previous example could help illustrating my way of (not) understanding iReport variables. But if there is no other way, than that's fine for now. My current problem is a real show stopper though: I want a sum in the column header and a sum in the column footer. That's fine. But the challenge is to hide the headersum on the first page and the footersum on the last page. It looks like when i create variables, the react different when the are used in de expression of a textfield then when they are only used in de print-when-expression. I can't figure out how to use a variable in the print-when-expression of a text field like $V{currentPage}==${pages} that seems to need a different evaluation time then the expression of the value to be printed like a sum of a number like $V{transportValueSum} I hope someone can help me. We are evaluation different reporting products to use in a near-future software product. This seems to be a show stopper for iReport to us (for now).
×
×
  • Create New...