Hi
I am using Radgrid which has the option to export pdf. I am using commanditem template having linkbutton control.
When i click the button i hav to export the existing grid data to PDF file. But once after i click the link button the pdf file opens but it lokked like blank sheet.
if (e.Item is GridCommandItem)
{
if (e.CommandName == "lnkExportPDF")
{
RadGrid1.ExportSettings.ExportOnlyData = true;
RadGrid1.ExportSettings.IgnorePaging = true;
RadGrid1.ExportSettings.OpenInNewWindow = true;
RadGrid1.ExportSettings.Pdf.Title = "Billing Report";
RadGrid1.ExportSettings.Pdf.PageLeftMargin=Unit.Pixel(10);
RadGrid1.ExportSettings.Pdf.PageRightMargin = Unit.Pixel(10);
RadGrid1.ExportSettings.Pdf.PageWidth = Unit.Pixel(3500);
this.RadGrid1.MasterTableView.ExportToPdf();
}
}
But the Export pdf works with ordinary button placed outside of radgrid.It shows complete data in the PDF file. But it doesnt work when i have created the link button as CommandItemTemplate.
Plz direact me as soon as possible
Regards,
Appu
I am using Radgrid which has the option to export pdf. I am using commanditem template having linkbutton control.
When i click the button i hav to export the existing grid data to PDF file. But once after i click the link button the pdf file opens but it lokked like blank sheet.
if (e.Item is GridCommandItem)
{
if (e.CommandName == "lnkExportPDF")
{
RadGrid1.ExportSettings.ExportOnlyData = true;
RadGrid1.ExportSettings.IgnorePaging = true;
RadGrid1.ExportSettings.OpenInNewWindow = true;
RadGrid1.ExportSettings.Pdf.Title = "Billing Report";
RadGrid1.ExportSettings.Pdf.PageLeftMargin=Unit.Pixel(10);
RadGrid1.ExportSettings.Pdf.PageRightMargin = Unit.Pixel(10);
RadGrid1.ExportSettings.Pdf.PageWidth = Unit.Pixel(3500);
this.RadGrid1.MasterTableView.ExportToPdf();
}
}
But the Export pdf works with ordinary button placed outside of radgrid.It shows complete data in the PDF file. But it doesnt work when i have created the link button as CommandItemTemplate.
Plz direact me as soon as possible
Regards,
Appu