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

PDF Export

4 Answers 71 Views
Grid
This is a migrated thread and some comments may be shown as answers.
dingen
Top achievements
Rank 1
dingen asked on 24 Nov 2009, 04:51 AM
Hi

I am trying to export my RadGrid to a pdf file but at the moment I get all my 50 columns crammed into 1 page : (

What code can i use to make the export spread over a few pages?

using this now:

ResultsGrid.ExportSettings.IgnorePaging =

False

 

 

 

If ResultsGrid.SelectedItems.Count <> 0 Then

 

 

For Each item As GridDataItem In ResultsGrid.MasterTableView.Items

 

 

If Not item.Selected Then item.Visible = False

 

 

Next

 

 

End If

 

ResultsGrid.ExportSettings.OpenInNewWindow =

True

 

ResultsGrid.ExportSettings.IgnorePaging =

False

 

ResultsGrid.ExportSettings.ExportOnlyData =

True

 

 

 

ResultsGrid.MasterTableView.ExportToPdf()

 


thanks

Dirk

4 Answers, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 24 Nov 2009, 08:03 AM
Hello Dingen,

Please examine our PDF export topic:
PDF export

Best regards,
Daniel
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
dingen
Top achievements
Rank 1
answered on 24 Nov 2009, 10:53 AM
Hi Daniel

which property needs to be set for 50 columns? pagewidth? i tried it and it does not work?

Dirk
0
dingen
Top achievements
Rank 1
answered on 24 Nov 2009, 11:36 AM
Hi Daniel

Just to be clear , i want to have the columns spread over more than one page

thanks

D
0
Daniel
Telerik team
answered on 26 Nov 2009, 05:53 PM
Hello Dirk,

It seems that I misunderstood your initial question. Excuse me for that.
Unfortunately it is not possible to split the columns in two pages - only the rows can be split across the pages. In the PDF export topic you can find several suggestions on how to fit multiple columns on a single page.

Let me know if you have further questions.

Kind regards,
Daniel
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Grid
Asked by
dingen
Top achievements
Rank 1
Answers by
Daniel
Telerik team
dingen
Top achievements
Rank 1
Share this question
or