Hi,
I want to download grid data in Pdf format, on LinkButton click event, for that i used this code.
But every time i click on the button, my file is downloading in .xls format not in .Pdf..
any suggestions? thanks.
I want to download grid data in Pdf format, on LinkButton click event, for that i used this code.
protected void ExportToPdf_Click(object sender, EventArgs e)
{
RadGrid1.ExportSettings.ExportOnlyData = true;
RadGrid1.ExportSettings.IgnorePaging = true;
RadGrid1.ExportSettings.OpenInNewWindow = true;
RadGrid1.ExportSettings.FileName = "FileName";
RadGrid1.MasterTableView.ExportToPdf();
}
But every time i click on the button, my file is downloading in .xls format not in .Pdf..
any suggestions? thanks.