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

cfiles

Members
  • Posts

    9
  • Joined

  • Last visited

 Content Type 

Profiles

Forum

Events

Featured Visualizations

Knowledge Base

Documentation (PDF Downloads)

Blog

Documentation (Test Area)

Documentation

Dr. Jaspersoft Webinar Series

Security Advisories

Downloads

Everything posted by cfiles

  1. I see. All you need to do is put a text field with $V{PAGE_NUMBER} as the expression and add $V{PAGE_NUMBER} >= 6 to the Print When Expression on the text field. That should make it only print the page number on page 6 and above.
  2. Are the fonts in studio and JRS the same? I have seen similar issues and it is because the fonts were different.
  3. I do not think that is possible. Could you move the subreport query into the main report as the main query then use the current main query as a sub data set of the main report? You could also write a scriplet to load the CSV data. If you go this route, write the scriplet and execute the "load CSV" method during the report's init phase.
  4. You can also use PHP and the cURL extension to wrap the URL and save the output to a file. Something like: <?php $fp = fopen ('/tmp/my-jasper-pdf.pdf', 'w+');$url = "http://url_to_the_jasper_report"; $ch = curl_init($url);curl_setopt($ch, CURLOPT_TIMEOUT, 50);curl_setopt($ch, CURLOPT_FILE, $fp);curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);$data = curl_exec($ch);curl_close($ch);?>[/code]The API is a better option, but if you need something quick and diry this should work.
  5. To get the current page number you can use $V{PAGE_NUMBER}. To start at page 6 and count up put the following in the expression of a text field. $V{PAGE_NUMBER} + 6[/code]It should be that simple unless I am missing something.
  6. I will give 5.5.2 a try when I get time to switch out my environment. I am sure it will be way more elegant than the solution I found. Thanks!
  7. I ended up solving it and it was not where the fonts were installed, but it was related. Once the font jar that ships with Jasper/iReport (jasperreports-fonts-4.5.0.jar) was loaded, no other font jar (or the internal iReport font manager) could be loaded. I am not sure if it is because there cannot be two jasperreports_extension.properties or just a weird race condition within the JVM. At any rate, I was able to just remove that file and add my own font jar to the classpath. It is not a clean solution, but it works.
  8. I have tried several tutorials on how to get fonts embedded within PDFs generated by Jasper reports. The tutorials I have used includes the one from the documentation (http://community.jaspersoft.com/wiki/ireport-fonts). No matter what I try I cannot get the font (Times New Roman) to display in the PDF preview. To simplify things I installed a fresh copy of iReports and added the font as the documentation explains. Then I created a simple report with a single field using the new font. The internal preview looks like it should, the PDF export does not. I ensured the "Embed this font in the PDF document" was checked. I also exported the font to a jar and added it to the classpath. None of these attempts have worked. I have attached two screenshots. The first shows my font settings. The second shows the internal preview and a PDF preview. It also shows the font information dialog from the PDF viewer - my font is not in the list. Any help would be appreciated. My setup: OS: Ubuntu (latest) iReport: 5.5.0 with bundled JVM Font: Times New Roman (TrueType directly from Microsoft)
×
×
  • Create New...