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

Demo version help

1 Answer 15 Views
Getting started with ASP.NET
This is a migrated thread and some comments may be shown as answers.
Rob
Top achievements
Rank 1
Rob asked on 14 Dec 2011, 09:27 PM
I just dowloaded the trail version Telerik. I was able to create a RadGrid and export it to Excel, Now I'm exporting it to PDF can I change the page size (landscape) and font size in the button click event I have below if so how? Thanks

 

Protected Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
        For Each item As GridDataItem In RadGrid1.Items
            item.Style("background-color") = "#FFFFFF"
        Next
 
        RadGrid1.MasterTableView.BorderStyle = BorderStyle.None
        Dim fileName As String = "myExceltest.pdf"
 
        RadGrid1.MasterTableView.ExportToPdf()
 
    End Sub

 

 

 

1 Answer, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 16 Dec 2011, 01:00 PM
Hello Rob,

You can change the page orientation by specifying the page width and height manually. The default font could be set via the DefaultFontFamily property.
For more information, please visit the following page:
PDF export

Best regards,
Daniel
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Tags
Getting started with ASP.NET
Asked by
Rob
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Share this question
or