Export with page landscape orientation?

4 posts, 1 answers
  1. Michele Denison
    Michele Denison avatar
    8 posts
    Member since:
    Oct 2009

    Posted 13 Oct 2011 Link to this post

    Am exporting data from a RadGridView to MS Word, am using the code like in the sample. I was wondering if there is a way to change the page orientation so that the document is landscape when it is created.

    Thanks
  2. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 13 Oct 2011 Link to this post

    Hi Michele Denison,

    You may set the Landscape/Portraite option like this:

    RadDocument document = this.RadRichTextBox1.Document;
    document.SectionDefaultPageOrientation = PageOrientation.Landscape;

    I hope that this answers your question. 

    Greetings,
    Didie
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  3. DevCraft banner
  4. Michele Denison
    Michele Denison avatar
    8 posts
    Member since:
    Oct 2009

    Posted 13 Oct 2011 Link to this post

    Hi Didie

    I not using the radDocument,, am using the example whereby u guys used the ElementExporting event on the gridview. Ive follow the example under GridView -> Word,Excell, Csv Export in the demo.
    Is there a way to change the orientation using that method?

    cheers
  5. Answer
    Rossen Hristov
    Admin
    Rossen Hristov avatar
    2478 posts

    Posted 13 Oct 2011 Link to this post

    Hello Michele Denison,

    This method exports the data as pure HTML and therefore you cannot embed metadata such as orientation in it.

    Kind regards,
    Ross
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Back to Top