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

Export RadChart to PDF

1 Answer 72 Views
Chart
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Lucie
Top achievements
Rank 1
Lucie asked on 22 Aug 2012, 12:34 PM

I’d like to change page size and page orientation for export RadChart to PDF. Is it possible?

In example for export to PDF is conversion to PNG and then export to PDF document. Is there possibility to export vector graphic directly to PDF?

 Regards

1 Answer, 1 is accepted

Sort by
0
Bartholomeo Rocca
Top achievements
Rank 1
answered on 27 Aug 2012, 08:48 AM
Hello Jana,

You can customize the page size as explained here but I do not think it is possible to change the page orientation:
RadDocument document = new RadDocument();
document.DefaultPageLayoutSettings.Height = 1200;
document.DefaultPageLayoutSettings.Width = 800;
document.SectionDefaultPageMargin = new Telerik.Windows.Documents.Layout.Padding(30, 30, 0, 0);
document.LayoutMode = DocumentLayoutMode.Paged;
 
this.CreateChartDocumentPart(document);
this.CreateGridDocumentPart(document);
 
return document;


Also, as far as I know RadChart does not support exporting to vector format so it would not be possible to achieve the desired effect when exporting to PDF either.


Greetings,
Bart.
Tags
Chart
Asked by
Lucie
Top achievements
Rank 1
Answers by
Bartholomeo Rocca
Top achievements
Rank 1
Share this question
or