能通过名称找到StimulsoftReports.Net报表连接吗

作者:mayz    来源:慧都控件网    浏览:Loading...      日期:2012-10-18

问题描述:

能通过名称找到StimulsoftReports.Net报表连接吗

问题解答:

您好!要实现通过名称找到报表连接,请参考以下代码:
[C#]

SqlConnection connection = null;

foreach (Stimulsoft.Report.Dictionary.StiData data in this.DataStore)
{
  if (data.Name == "Connection")
  {
    connection = data.Data as SqlConnection;
    break;
  }
}
此方法适用于
Stimulsoft Reports.Net
Stimulsoft Reports.Web
Stimulsoft Reports.Wpf
Stimulsoft Reports.Ultimate
这四种报表

 

Tag标签:.NET报表 Web报表 wpf报表 Stimulsoft Reports.Net 

本站文章除注明转载外,均为本站原创或翻译
欢迎任何形式的转载,但请务必注明出处,尊重他人劳动成果
转载请注明:文章转载自:Stimulsoft中文网 [http://www.Stimulsoft.cn/]
本文地址: http://www.Stimulsoft.cn/Resources/FAQ/114.html

上一篇: Stimulsoft Reports.Net报表的WinFormsDesigner当前文件

下一篇: 如何检索StimulsoftReports.Net报表中未使用的列