在按钮单击事件中,我尝试将radgrid导出为pdf。
为此,我使用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();
}