salmah
چهارشنبه 21 خرداد 1393, 00:00 صبح
با سلام من از این کد برای نمایش گزارشم استفاده می کنم
protected void Button1_Click(object sender, EventArgs e)
{
string cnc = ConfigurationManager.ConnectionStrings["shbtConnectionString"].ToString();
string serverlocation = HttpContext.Current.Server.MapPath(string.Empty);
StiReport mystireports = new StiReport();
mystireports.Dictionary.Databases.Add(new Stimulsoft.Report.Dictionary.StiSqlDatabase("Connection", cnc));
mystireports.Load(serverlocation + "\\Report\\Report_for_kar.mrt");
mystireports.Dictionary.Variables["cp"].Value = TextBox1.Text;
StiWebViewer1.Report = mystireports;
}
واین ارور مربوط به خط7 گرفته میشه
اشکال از چیه
Could not find a part of the path 'D:\WebSite\shbt\Report\Report_for_kar.mrt'.
واین warningرانشون میده
120078
protected void Button1_Click(object sender, EventArgs e)
{
string cnc = ConfigurationManager.ConnectionStrings["shbtConnectionString"].ToString();
string serverlocation = HttpContext.Current.Server.MapPath(string.Empty);
StiReport mystireports = new StiReport();
mystireports.Dictionary.Databases.Add(new Stimulsoft.Report.Dictionary.StiSqlDatabase("Connection", cnc));
mystireports.Load(serverlocation + "\\Report\\Report_for_kar.mrt");
mystireports.Dictionary.Variables["cp"].Value = TextBox1.Text;
StiWebViewer1.Report = mystireports;
}
واین ارور مربوط به خط7 گرفته میشه
اشکال از چیه
Could not find a part of the path 'D:\WebSite\shbt\Report\Report_for_kar.mrt'.
واین warningرانشون میده
120078