Categories
- All Categories
- 121 Oracle Analytics News
- 21 Oracle Analytics Videos
- 14.4K Oracle Analytics Forums
- 5.5K Oracle Analytics Idea Labs
- Oracle Analytics User Groups
- 47 Oracle Analytics Trainings
- 7 Oracle Analytics Data Visualizations Challenge
- 4 Oracle Analytics Career
- 8 Oracle Analytics Industry
- Find Partners
- For Partners
Welcome to the Oracle Analytics Community: Please complete your User Profile and upload your Profile Picture
CSV Format

Pat Malay - Oracle EPM-Oracle
Rank 2 - Community Beginner
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); }
Tagged:
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