eva/3 Application BuilderDeveloping Additional eva/3 ComponentsUser CommandsExamples for Tasks of an CommandExamples for report commands 

Creating a PDF file

Before generating a PDF File, the iText library must be added to the classpath. This library can be downloaded from http://sourceforge.net/projects/itext Calling the class method generatePDFFile(String name, File pdfFile) of the ReportManager generate the the PDF File. The parameter "name" is the project relative path of the report file. The report will be inserted into the file which is defined in the "file" parameter.

Example:

File file = null;
try {
    file = new File ("D:\\Beispiel.pdf");
    file.createNewFile();
} catch (RuntimeException e) {
    e.printStackTrace();
} catch (IOException e) {
    e.printStackTrace();
}
try {
    ReportManager.generatePDFFile(
        "Bericht//Test1.report",file);
} catch (IOException e1) {
    e1.printStackTrace();
}