Hello
I tried to export the Radgrid data, but the exported PDF was not in the proper format. The columns and the items are not aligned properly.
Can you please tell me any sample application for the same? Or do I need to change my settings while exporting it to the excel?
They are seen like following..
Column1 Column2
row1col1Data row1col1Data
row2col2Data row2col2Data
Below is my sample code for your reference:
Me.grdview.ExportSettings.OpenInNewWindow = True
Me.grdview.ExportSettings.ExportOnlyData = True
Me.grdview.ExportSettings.IgnorePaging = True
Me.grdview.ExportSettings.FileName ="sampleData"
grdview.MasterTableView.ExportToPdf()
Regards,
Vinit
I tried to export the Radgrid data, but the exported PDF was not in the proper format. The columns and the items are not aligned properly.
Can you please tell me any sample application for the same? Or do I need to change my settings while exporting it to the excel?
They are seen like following..
Column1 Column2
row1col1Data row1col1Data
row2col2Data row2col2Data
Below is my sample code for your reference:
Me.grdview.ExportSettings.OpenInNewWindow = True
Me.grdview.ExportSettings.ExportOnlyData = True
Me.grdview.ExportSettings.IgnorePaging = True
Me.grdview.ExportSettings.FileName ="sampleData"
grdview.MasterTableView.ExportToPdf()
Regards,
Vinit
5 Answers, 1 is accepted
0

Shinu
Top achievements
Rank 2
answered on 17 Jul 2008, 06:59 AM
Hi Vinit,
Go through the following KB article and see whether it helps.
Exporting styles in PDF
Thanks
Shinu.
Go through the following KB article and see whether it helps.
Exporting styles in PDF
Thanks
Shinu.
0

vinit
Top achievements
Rank 1
answered on 17 Jul 2008, 01:37 PM
Hello Shinu,
Thanks for your reply.
The solution works great. Thanks !
But if the data in the columns are more than the column width, then I wrap the text to the next line.
Also on the page I am having the rad drop downs. I am not able to select them after the ExportToPDF was done.
Regards,
Vinit
Thanks for your reply.
The solution works great. Thanks !
But if the data in the columns are more than the column width, then I wrap the text to the next line.
Also on the page I am having the rad drop downs. I am not able to select them after the ExportToPDF was done.
Regards,
Vinit
0

Shinu
Top achievements
Rank 2
answered on 18 Jul 2008, 06:02 AM
Hi Vinit,
I am not sure whether the following KB article will guide you. Just have a look and see if it helps.
Filtering Menu fails to display after Export from AJAXified Grid
Thanks
Shinu.
I am not sure whether the following KB article will guide you. Just have a look and see if it helps.
Filtering Menu fails to display after Export from AJAXified Grid
Thanks
Shinu.
0

vinit
Top achievements
Rank 1
answered on 18 Jul 2008, 06:30 AM
Hello Shinu
Thanks for your reply.
This is not related the problem which I have mentioned over here.
I have two issues after the Export To PDF functionality works.
These are ...
1. I am not able to select the dropdowns on the page.
2. In the PDF, if the column data is long , then this data was displayed in the next column and because of this, the PDF is not seen properly.
Does any one came across such issue.
Regards,
Vinit
Thanks for your reply.
This is not related the problem which I have mentioned over here.
I have two issues after the Export To PDF functionality works.
These are ...
1. I am not able to select the dropdowns on the page.
2. In the PDF, if the column data is long , then this data was displayed in the next column and because of this, the PDF is not seen properly.
Does any one came across such issue.
Regards,
Vinit
0
Hi vinit,
In case you export the grid to PDF by disabling the ajax as discussed in the KB article pointed by Shinu, you will need to use the workaround discussed there (applicable for RadComboBox or other navigation controls) in order to make it operational again.
Concerning the exported document formatting:
In order to customize the look and feel of the PDF document, tweak with the PDF export options listed under the Description tab of the relevant online example of RadGrid:
http://www.telerik.com/DEMOS/ASPNET/Prometheus/Grid/Examples/GeneralFeatures/PdfExport/DefaultCS.aspx
Best regards,
Stephen
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
In case you export the grid to PDF by disabling the ajax as discussed in the KB article pointed by Shinu, you will need to use the workaround discussed there (applicable for RadComboBox or other navigation controls) in order to make it operational again.
Concerning the exported document formatting:
In order to customize the look and feel of the PDF document, tweak with the PDF export options listed under the Description tab of the relevant online example of RadGrid:
http://www.telerik.com/DEMOS/ASPNET/Prometheus/Grid/Examples/GeneralFeatures/PdfExport/DefaultCS.aspx
Best regards,
Stephen
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center