on 03-26-2015 10:24 PM
I am trying to export a report in EXCEL data-only format because I report is essentially a data only report and I don't want any formatting. How do I export the report in data-only format. Right now, it export in excel format but the output has extra blank columns.
ViewSupport viewSupport = ViewSupport.Factory.newInstance();
viewSupport.setOutputFormat(OutputFormatType.EXCEL);
viewSupport.setViewType(ViewType.BINARY);
viewSupport.setViewMode(ViewModeType.DOCUMENT);
RetrieveBinaryView retBinView = RetrieveBinaryView.Factory.newInstance();
retBinView.setViewSupport(viewSupport);
RetrieveData retrieveData = RetrieveData.Factory.newInstance();
retrieveData.setRetrieveView(retBinView);
docInfo = reportEngine.getDocumentInformation(docInfo.getDocumentReference(), null, oActions, null, retrieveData);
Hi Asif,
Which BO version are you using.
Thanks,
Prithvi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Like I mentioned before, the report is a simple tabular report with no formatting. It is essentially a data-dump of the underlying SQL command. In the designer, when I export in Excel, I see small extra blank columns between data columns. However, when I export the same report in Excel Data-Only format, I do not see the extra blank columns.
There are some very specific things you can do in the format of the report to get it to export cleanly to Excel. See the attachment on my second response on this thread for more info: http://scn.sap.com/thread/3329390
-Dell
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.