/** * i-net software provides programming examples for illustration only, without warranty * either expressed or implied, including, but not limited to, the implied warranties * of merchantability and/or fitness for a particular purpose. This programming example * assumes that you are familiar with the programming language being demonstrated and * the tools used to create and debug procedures. i-net software support professionals * can help explain the functionality of a particular procedure, but they will not modify * these examples to provide added functionality or construct procedures to meet your * specific needs. * * Copyright © 1999-2025 i-net software GmbH, Berlin, Germany. **/ package rdc; import com.inet.report.Engine; import com.inet.report.RDC; /** * This class explains how to create a new empty report using API. */ public class NewReportSample extends RDCSample { /** * Creates a new engine for a new report. After that it is possible to add elements to the report template. * @param exportFmt the output format (e.g. Engine.EXPORT_PDF) * @return the new engine for the report */ @Override public Engine createAndFillEngine( String exportFmt ) { try { //create a new Engine Engine eng = RDC.createEmptyEngine( exportFmt ); //fill the engine here return eng; } catch( Throwable e ) { e.printStackTrace(); System.exit( 1 ); return null; } } /** * Main method of this sample * @param args arguments not used */ public static void main( String[] args ) { new NewReportSample().initUI(); } }