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

Hauptlorenz

Members
  • Posts

    6
  • Joined

  • Last visited

Hauptlorenz'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. Hello Alexander, since you suggested to have 2 textfields, this does not help me very much (I'm comming from an crystal reports background). Thanks for your time and help. Frank
  2. Hello, I've gone the way with the "auto"-feature. This was also the way I thought on myself (variables) but I did not find an evaluation param on the variables. Would this not be the better way? The other way, I haven't really understood. You mean, I can order Textfields in a table-like order without specifying coords but paddings between the elements? How? Best regards, Frank PS: I'm using JasperReports since yesterday and it's running through a PHP WebPortal in the background via a Shell/Java-Bridge. Works very well!
  3. But how do I manage that the second field is directly next to the first one? It should look like "Page 1 / 2" and not like "Page 1 / 2" with reserved space. Greetings, Fran
  4. Hello out there, I have one text field, containing this: "Page "+$V{PAGE_NUMBER}+" / + $V{PAGE_NUMBER} (I want to use one growing field) For the second part I need evaluation time "report" and the first one must be "now". How can I do this for generating normal output like "Page 1 / 2" "Page 2 / 2" aso. Thank you very much. Frank
  5. Hi Teodor, yes, this -D option does work. Has this any other "bad" effects? Thank you very much, Frank
  6. Hello out there, I generated a nice report with iReport and now I want to use a litte java program to generate reports in "batch" on a linux server. I coded this little piece of snippet: import net.sf.jasperreports.engine.*; import java.util.HashMap; public class runReport { public static void main(String[] args) { JasperReport jasperReport; JasperPrint jasperPrint; try { jasperReport = JasperCompileManager.compileReport( "../hrmodul/Jobs.jrxml"); jasperPrint = JasperFillManager.fillReport( jasperReport, new HashMap(), new JREmptyDataSource()); JasperExportManager.exportReportToPdfFile( jasperPrint, "../hrmodul/simple_report.pdf"); } catch (JRException e) { e.printStackTrace(); } } } And there is the problem, it throws me an exception in line with the FillManager: Exception in thread "main" java.lang.InternalError: Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable. at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method) at sun.awt.X11GraphicsEnvironment.<clinit>(X11GraphicsEnvironment.java:175) at java.lang.Class.forName1(Native Method) at java.lang.Class.forName(Class.java:180) at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:91) at net.sf.jasperreports.engine.util.JRGraphEnvInitializer.initializeGraphEnv(JRGraphEnvInitializer.java:58) and so on... What is this? I don't want to SHOW the report. Many thanks. Frank
×
×
  • Create New...