I am having issue converting a webi report to pdf from java SDK. I know the location where the .wid file is and then I am not able to proceed further as I am not able convert to pdf and move to created file to a location.
I am doing all the stuff. The report also runs successfully. When I scheduled the report the report is generated in .wid format. I need to convert this to a pdf before I send it as a email or ftp it to a different location.
Please could you help me in understanding how to get this report into a pdf.
Thank you for the information. I am able to successfully schedule the report and also the report has completed with status of success in pdf format. Know I am having a new issue.
How do I know the location of this report output. I know it should be saved to the default server location. But where is this default server location specified. If there is no default location specified in the server configuration where is this report stored. Please any help will be appreciated.
Do you want to post your code as I am curious to see how you have done it.
With regards to the default location, I’m not sure I would have though that it would go to a MyBusinessObjects directory somewhere on the server.
To change this, you can specify what that location is and in the documents I mentioned on the SAP Help website, there is information on that, however this is also where I am having difficulty as the code doesn’t seem to work.
for (Iterator it = scheduleInfo.getDependencies().iterator(); it.hasNext(); )
{
scheduleInfo.getDependencies().remove(it.next());
}
// Run the report once.
scheduleInfo.setType(CeScheduleType.ONCE);
// Run it right now.
scheduleInfo.setRightNow(true);
// Retrieve the IWebiFormatOptions object and specify the format.
webiDoc.getWebiFormatOptions().setFormat(format);
// Tell the CMS to schedule the report.
infoStore.schedule (webiDocs);
// Get a handle to the files object
IFiles iFiles = webiDoc.getFiles();
System.out.println("Location of the Wid file" + WebiDoc.getFiles().getFRSPathURL() );