在按钮单击事件中,我试图将 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();
}