Hi There,
I'm having problems trying to export to PDF.
I have a Radgrid with a MasterTableView with about 20+ columns and I have been it fit on the screen having a horizontal scrollbar to view all columns. Each column has a width in px, I want to be able to convert the whole grid to PDF and have it fit onto one page. I've reduced the text hoping it would fit mroe data but hasn't changed it one bit.
Can somebody help me!
I'm having problems trying to export to PDF.
I have a Radgrid with a MasterTableView with about 20+ columns and I have been it fit on the screen having a horizontal scrollbar to view all columns. Each column has a width in px, I want to be able to convert the whole grid to PDF and have it fit onto one page. I've reduced the text hoping it would fit mroe data but hasn't changed it one bit.
Can somebody help me!
6 Answers, 1 is accepted
0
Hello Lily,
You can set the page orientation to landscape to avoid the unwanted behavior:
Export to Microsoft Excel/Word/PDF/CSV
Kind regards,
Daniel
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
You can set the page orientation to landscape to avoid the unwanted behavior:
Export to Microsoft Excel/Word/PDF/CSV
Kind regards,
Daniel
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0

LiZ0r
Top achievements
Rank 1
answered on 21 Apr 2009, 07:20 AM
Thanks for the reply....
I have already set it to landscape originally and I have removed the margins from the left and right also so all of the data goes to the end of the page, but still I have columns missing and some columns are overlapping other ones...
I have already set it to landscape originally and I have removed the margins from the left and right also so all of the data goes to the end of the page, but still I have columns missing and some columns are overlapping other ones...
0
Hello Lily,
You can combine page orientation (landscape), page size (A4, A3... or custom size), small characters (font size) and a narrow font (such as Arial Narrow).
I'm afraid that there is no way to adjust them automatically. Let us know whether this helps.
Best regards,
Daniel
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
You can combine page orientation (landscape), page size (A4, A3... or custom size), small characters (font size) and a narrow font (such as Arial Narrow).
I'm afraid that there is no way to adjust them automatically. Let us know whether this helps.
Best regards,
Daniel
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0

LiZ0r
Top achievements
Rank 1
answered on 21 Apr 2009, 11:05 PM
Thanks Daniel,
I have tried to reduce everything smaller and I think it's the columns that is the problem.
Even if I shrink down the text size and font, the column width is too big.
Is there any way to change the size of the column when exporting to print without having to change it on the front end?
I have tried to reduce everything smaller and I think it's the columns that is the problem.
Even if I shrink down the text size and font, the column width is too big.
Is there any way to change the size of the column when exporting to print without having to change it on the front end?
0
Accepted
Hello Lily,
Please test the following code-snippet:
Best regards,
Daniel
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Please test the following code-snippet:
protected void Button1_Click(object sender, EventArgs e) |
{ |
RadGrid1.ExportSettings.IgnorePaging = true; |
foreach (GridColumn col in RadGrid1.MasterTableView.RenderColumns) |
col.HeaderStyle.Width = Unit.Pixel(20); |
RadGrid1.MasterTableView.ExportToPdf(); |
} |
Best regards,
Daniel
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0

LiZ0r
Top achievements
Rank 1
answered on 24 Apr 2009, 02:08 AM
That worked!
Thanks so much!
Thanks so much!