or
txtTitle.Style.Color = System.Drawing.Color.FromArgb(154, 51, 102)
txtTitle.Style.Font.Size = Telerik.Reporting.Drawing.Unit.Point(18)
txtTitle.Style.Font.Bold = True
void ExportToPDF(Telerik.Reporting.Report reportToExport) |
{ |
ReportProcessor reportProcessor = new ReportProcessor(); |
RenderingResult result = reportProcessor.RenderReport("PDF", reportToExport, null); |
string fileName = result.DocumentName + ".pdf"; |
Response.Clear(); |
Response.ContentType = result.MimeType; |
Response.Cache.SetCacheability(HttpCacheability.Private); |
Response.Expires = -1; |
Response.Buffer = true; |
Response.AddHeader("Content-Disposition", |
string.Format("{0};FileName=\"{1}\"", |
"attachment", |
fileName)); |
Response.BinaryWrite(result.DocumentBytes); |
Response.End(); |
} |
<telerik:ReportViewer Report="{Binding Report}"
Grid.Column="1"/>