on 10-07-2008 12:12 PM
Hi
Currently, in infoview I have observed that we can set the page orientation for a report in a webi document , i.e. whether the report is to be viewed in landscape mode or portrait mode.
Currently, in the BO SDK, I have come across the classes like Orientation, but am not able to figure out how to use them.
Can you please paste some code snippet, how to use this class for setting the orientation of the document.
Thanks in advance,
Shruti
Hi Ted,
Yes, I am lookin for the method, which works as you have specified.
But, my problem is that the ReportContainer can be used only when I create a new report in the document.
Now, if there is a report already present in a document, then how I can get the ReportContainer object for the existing report in the document.
Thanks A lot,
Shruti
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Shruti,
To retrieve the Reportcontainer for an existing report on a WebI document, you can do the following:
ReportStructure oReportStructure = oDocumentInstance.getStructure();
ReportContainer oReportContainer = (ReportContainer) oReportStructure.getReportElement(0);
Hope this helps.
Regards,
Dan
Are you looking for ReportContainer.getPageInfo().setOrientation(Orientation orientation) method?
Sincerely,
Ted Ueda
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.