on ‎2012 Feb 08 12:58 PM
Hi,
I'm working with Rebean SDK (on BOXI 3.1 SP5) and trying to export only a report from a webi document.
I'm getting the Report by :
Reports docReports = webiDocument.getReports();
...
Report report = docReports.getItem(i);
BinaryView bview = (BinaryView) report.getView(OutputFormatType.PDF);
...
//Writing bview on a file.
But when I'm looking at the PDF at the end, I do not have all the resulton it, only result from page 1 and a part of page 2.
If I'm trying a "getView" on the webiDocument and write it on a PDF file, there is no problem, I get all the lines from the report.
Another point is when I'm getting the view from the report, the format (page size,...) of the PDF file does not seems to be conserved (contraryto the document getView).
Is there any Export Format Option or other to give?
Thanks in advance,
Request clarification before answering.
try using:
report.getView(OutputFormatType.PDF, properties);
Where properties is object of java.util.Properties and this is how you can set them:
Properties properties = new Properties();
properties.setProperty(OutputPropertiesType.XML_UNIT, "metric");
and other.
Make sure you use latest Jar files patched to the same level as server. Moreover it could be a bug, are you able to reproduce it for other webi reports also, or this is is specific to a single webi? For bug tracking you may need to create a support ticket with the SAP support.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I go back to the API ref and found a method that I've just tested
Solution :
We need to set the paginationMode on the report object :
Code:
report.setPaginationMode(PaginationMode.Listing);PaginationMode.Page --> I'm getting only one page of the report
PaginationMode.Listing --> I'm getting all the page in the right format
So the problem is solved ! icon_smile.gif
Edited by: jerome.vervier on Feb 9, 2012 1:39 PM
| User | Count |
|---|---|
| 12 | |
| 9 | |
| 7 | |
| 5 | |
| 4 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.