cancel
Showing results for 
Search instead for 
Did you mean: 

Setting the page orientation for a report

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

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

dan_cuevas
Active Participant
0 Kudos

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

ted_ueda
Employee
Employee
0 Kudos

Are you looking for ReportContainer.getPageInfo().setOrientation(Orientation orientation) method?

Sincerely,

Ted Ueda