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:
.cs code:
Please help.
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.