Categories
- All Categories
- Oracle Analytics and AI Learning Hub
- 43 Oracle Analytics and AI Sharing Center
- 19 Oracle Analytics and AI Lounge
- 282 Oracle Analytics and AI News
- 59 Oracle Analytics and AI Videos
- 16.3K Oracle Analytics and AI Forums
- 6.4K Oracle Analytics and AI Labs
- Oracle Analytics and AI User Groups
- 108 Oracle Analytics and AI Trainings
- 20 Oracle Analytics and AI Challenge
- Find Partners
- For Partners
CSV Format
Summary
How can we generate a report in csv format using FOProcessor
Content
Hi
Currently we use BIPublisher reports using FOProcessor API. I have articles noting that we can generate report output in csv format. However, I couldn't find any details on how to do the same using FOProcessor. I am guessing we will have to do do set something in the settings but no documentation can be found on what are all the settings that are supported. We roughly use the code similar to the snippet attached. There is no CSV format type CSV defined in FOProcessor.
Doc noting csv format availability:
Any help is greatly appreciated.
Thank You
Pat Malay
Code Snippet
public static void main(String[] args)
{
FOProcessor processor = new FOProcessor();
processor.setData(args[0]); // set XML input file
processor.setTemplate(args[1]); // set XSL input file
processor.setOutput(args[2]); //set (PDF) output file
processor.setOutputFormat(FOProcessor.FORMAT_PDF);
Properties prop = new Properties();
/* PDF Security control: */
prop.put("pdf-security", "true");
/* Permissions password: */
prop.put("pdf-permissions-password", "abc");
/* Encryption level: */
prop.put("pdf-encription-level", "0");
processor.setConfig(prop);
// Start processing
try
{
processor.generate();
}
catch (XDOException e)
{
e.printStackTrace();
System.exit(1);
}
System.exit(0);
}
Answers
-
Pat,
I am not sure if csv is supported, but please see the documentation for Excel Support using
FORMAT_EXCEL oR FORMAT_XLSX
Hope this helps.
--YG
0