This is a migrated thread and some comments may be shown as answers.

Export with page landscape orientation?

3 Answers 212 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Michele Denison
Top achievements
Rank 1
Michele Denison asked on 13 Oct 2011, 08:27 AM
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

3 Answers, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 13 Oct 2011, 11:09 AM
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 >>

0
Michele Denison
Top achievements
Rank 1
answered on 13 Oct 2011, 12:47 PM
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
0
Accepted
Rossen Hristov
Telerik team
answered on 13 Oct 2011, 12:53 PM
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 >>

Tags
GridView
Asked by
Michele Denison
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Michele Denison
Top achievements
Rank 1
Rossen Hristov
Telerik team
Share this question
or