0
我正在使用Telerik Report。在渲染此报告时,我想将打印选项添加到对话框中。如何在打印telerik报告时打开打开保存对话框
有什么办法可以在对话框中添加打印选项。
{
Telerik.Reporting.Processing.ReportProcessor reportProcessor =
new Telerik.Reporting.Processing.ReportProcessor();
DTSReport DTSRpt = new DTSReport();
DTSRpt.ReportParameters["PendingId"].Value = id;
InstanceReportSource reportSource = new InstanceReportSource();
reportSource.ReportDocument = DTSRpt;
RenderingResult renderingResult =
reportProcessor.RenderReport("PDF", reportSource, null);
MemoryStream ms = new MemoryStream();
ms.Write(renderingResult.DocumentBytes, 0, renderingResult.DocumentBytes.Length);
ms.Flush();
FileContentResult result = new FileContentResult(ms.GetBuffer(), renderingResult.MimeType);
result.FileDownloadName = String.Format("DTS-{0}.pdf", id);
return result;
}
是这个网页或桌面? – pollirrata
这是一个网络应用程序.. – bala