Skip to Content
author's profile photo Former Member
Former Member

Setting the page orientation for a report

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

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Posted on Oct 07, 2008 at 02:47 PM

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

    Sincerely,

    Ted Ueda

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 08, 2008 at 07:12 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

    • 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

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.