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

PDF Page Size

2 Answers 41 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Appu
Top achievements
Rank 1
Appu asked on 07 Jul 2009, 09:35 AM
Hi
How can i set legal size in landscape mode (1/4” margins for most readability) for my PDF exporting file


Appu


2 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 1
answered on 07 Jul 2009, 09:49 AM
Hello Appu,

You can try out the following code to get a lanscsape orientation on exporting to pdf.
cs:
  protected void Button1_Click(object sender, EventArgs e) 
    {        
        RadGrid1.ExportSettings.ExportOnlyData = true
        RadGrid1.ExportSettings.OpenInNewWindow = true
        RadGrid1.ExportSettings.IgnorePaging = true
        // to get lanscape orientation 
        RadGrid1.ExportSettings.Pdf.PageHeight = Unit.Parse("162mm"); 
        RadGrid1.ExportSettings.Pdf.PageWidth = Unit.Parse("600mm"); 
        RadGrid1.MasterTableView.ExportToPdf(); 
    } 

-Princy.
0
Bruno
Top achievements
Rank 2
answered on 07 Jul 2009, 10:48 AM
Definitely 600x162 is an interesting format. However I'm not sure whether it is a kitchen roll or something else. Maybe you mean 162 × 229 that is C5 ISO?
Tags
Grid
Asked by
Appu
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 1
Bruno
Top achievements
Rank 2
Share this question
or