// Set task properties
Properties props = new Properties();
props.put(APIConst.TAG_TASK_CLASS, APIConst.TASK_TO_RPT);
props.put(APIConst.TAG_LAUNCH_TYPE, String.valueOf(APIConst.IMMEDIATELY)); props.put(APIConst.TAG_CATALOG, "/SampleReports/SampleReports.cat");
props.put(APIConst.TAG_REPORT, "Corporate Overview.cls");
props.put(APIConst.TAG_TO_DISK, "true");// TO Disk
// Set the value of PDF for TO_DISK
props.put(APIConst.TAG_TO_PDF, "true"); props.put(APIConst.TAG_PDF, "Corporate Overview.cls.pdf");props.put(APIConst.TAG_REPORT_LANGUAGE, "en_US");
String today = DateFormat.getDateInstance(DateFormat.LONG, new Locale("en", "US")).format(new Date()); props.put(APIConst.TAG_PDF_DIR, "/SampleReports");
|