0
在按鈕上單擊事件我試圖將radgrid導出爲pdf。RadGrid ExportToPdf()不工作,如何解決它?
爲此,我使用RadGrid.ExportToPdf() function
但得到"The given path's format is not supported" error
。
下面找到我的代碼:
protected void btnExportToPDF_Click(object sender, EventArgs e)
{
MattersGrid.ExportSettings.ExportOnlyData = true;
MattersGrid.ExportSettings.IgnorePaging = true;
MattersGrid.ExportSettings.OpenInNewWindow = true;
MattersGrid.ExportSettings.FileName = "MyDoc";
MattersGrid.MasterTableView.ExportToPdf();
}
這裏試試這個答案http://stackoverflow.com/questions/11012161/telerik-radgrid-export-file-name –