Hi,
I have problem with sum column in telerik report
In attached my report with sum row and here my code to export this report to pdf:
protected void Unnamed1_Click(object sender, EventArgs e) {
// export to pdf
if (TreeViewFilter.SelectedNodes.Count > 0) {
int reportId = Convert.ToInt32(TreeViewFilter.SelectedValue);
string fileName = string.Format("Report{0}.pdf", reportId);
string fileNameGuid = string.Format("Report{0}{1}.pdf", reportId, Guid.NewGuid());
string name = string.Format("{0}\\{1}", ConfigurationManager.AppSettings["ExportFolderPath"], fileName);
if (File.Exists(name)) {
//Set the appropriate ContentType.
Response.ClearContent();
Response.ContentType = "Application/pdf";
Response.AddHeader("content-disposition", string.Format("attachment;filename={0}", fileNameGuid));
//Write the file directly to the HTTP content output stream.
Response.WriteFile(name);
Response.End();
}
}
}
The problem is that i can see sum row in report preview but it does not appear in the exported file. Where the problem? Thanks.
I have problem with sum column in telerik report
In attached my report with sum row and here my code to export this report to pdf:
protected void Unnamed1_Click(object sender, EventArgs e) {
// export to pdf
if (TreeViewFilter.SelectedNodes.Count > 0) {
int reportId = Convert.ToInt32(TreeViewFilter.SelectedValue);
string fileName = string.Format("Report{0}.pdf", reportId);
string fileNameGuid = string.Format("Report{0}{1}.pdf", reportId, Guid.NewGuid());
string name = string.Format("{0}\\{1}", ConfigurationManager.AppSettings["ExportFolderPath"], fileName);
if (File.Exists(name)) {
//Set the appropriate ContentType.
Response.ClearContent();
Response.ContentType = "Application/pdf";
Response.AddHeader("content-disposition", string.Format("attachment;filename={0}", fileNameGuid));
//Write the file directly to the HTTP content output stream.
Response.WriteFile(name);
Response.End();
}
}
}
The problem is that i can see sum row in report preview but it does not appear in the exported file. Where the problem? Thanks.