[英]Getting SSRS report Data in your asp.net application
I'm new to SSRS, I would like to know if it is possible to get the SSRS report data in an asp.net application in ordrer to get the value of a specific field (example: sum of assets, ...) ? 我是SSRS的新手,我想知道是否有可能在ordrer的asp.net应用程序中获取SSRS报告数据以获取特定字段的值(例如:资产总和,...)?
Is there any possibility to get the report data in json (webservice) or xml format, so that I can use c# code to get a specific column value ? 是否有可能以json(webservice)或xml格式获取报告数据,以便我可以使用C#代码获取特定的列值?
Thank's for the help 谢谢您的帮助
protected void Page_Load(object sender, EventArgs e)
{
if(!IsPostBack)
{
try
{
ReportViewer1.ProcessingMode = ProcessingMode.Remote;
ReportViewer1.ServerReport.ReportServerUrl = new Uri("http://pc499:80/ReportServer_SQLEXPRESS");
ReportViewer1.ServerReport.ReportPath = "/ChartProject/Map";
ReportViewer1.ServerReport.Refresh();
}
catch (Exception ex)
{
Response.Write(ex.ToString());
}
}
}
SSRS reports bind from a datatable. SSRS报告从数据表绑定。 Find the datatable you created for the SSRS report and do what you want with the data before or after your RefreshReport() call.
查找您为SSRS报告创建的数据表,并在调用RefreshReport()之前或之后对数据进行所需的处理。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.