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

problem with pdf export

1 Answer 94 Views
Grid
This is a migrated thread and some comments may be shown as answers.
newbie
Top achievements
Rank 1
newbie asked on 12 Mar 2009, 01:06 AM
I am trying to export griddata to pdf.
A pdf file is generated but I am unable to open that pdf file.

It gives me an error:
Adobe reader could not open 'RadGridExport.pdf' because it is either not a supported file type or because the file has been damaged.

I searched number of forums for that but none helped.
Am i generating an invalid pdf?

This is my export settings declaration:

<

ExportSettings IgnorePaging="true" OpenInNewWindow="true" ExportOnlyData="false">

 

 

<Pdf AllowAdd="false" AllowCopy="true" AllowModify="true" AllowPrinting="true" Author="Anonymous"

 

 

Keywords="None" PageBottomMargin="1in" PageLeftMargin="1in" PageRightMargin="1in"

 

 

PageTopMargin="1in" PageTitle="Grid export document" Subject="Grid Export" Title="Grid export"

 

 

PaperSize="Letter" />

 

 

</ExportSettings>

 


.cs code:

protected

void RadGridContact_ItemCommand(object source, GridCommandEventArgs e)

 

{

if

(e.CommandName == "Export")

 

{

RadGridContact.MasterTableView.ExportToPdf();

}

}

 


Please help.

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 12 Mar 2009, 05:48 AM
Hi,

I have not encountered such an error before. But I did a search on google for the above mentioned error and found several threads where the error is discussed. You may find the complete search result here.

Thanks
Shinu.
Tags
Grid
Asked by
newbie
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or