返回首页

您好,
在此之前,原谅,因为我的语言。
我如何设置我的应用程序,用户可以自定义的报告,然后打印出来,或将其保存到其他formats.for例如改变字段的位置?字体?颜色?等等

回答

评论会员:Prasanth小号 时间:2012/02/06
链接



{A1}]
评论会员:GanesanSenthilvel 时间:2012/02/06
。NET应用程序开发人员,我敢肯定,你的后台是SQL。因此,解决您的问题陈述,是的SSRS(SQL Server报表服务)。为了渲染的报告,您将使用的ReportViewer

//the report classes are in the namespace: Microsoft.Reporting.WebForms

Collection<ReportParameter> paramList = new Collection<ReportParameter>();

string reportPath = ApplicationInfo.ScorecardReportPath;

paramList.Add(new ReportParameter("UID", "5"));

 

ReportViewer1.ProcessingMode = ProcessingMode.Remote;

ReportViewer1.ServerReport.ReportServerUrl = new Uri("http://servername/ReportServer");

ReportViewer1.ServerReport.ReportPath = reportPath;

ReportViewer1.ServerReport.SetParameters(paramList);

ReportViewer1.ServerReport.Refresh();