1 ضمیمه
The type or namespace name 'StiReport' could not be found (are you missing a using directive or an a
سلام
من قبلا چند تا گزارش در یکی از برنامه هام ساخته بودم و به درستی گزارش میگرفتم
ولی الان پروژه web application هست
dll ها را به پروژه اضافه کردم
ضمیمه 129999
و از کد زیر برای نمایش گزارش استفاده می کنم ,وبا ارور بالا مواجه شدم
string cnc = ConfigurationManager.ConnectionStrings["busConnectionString1"].ConnectionString;
string ServerLocation = HttpContext.Current.Server.MapPath(string.Empty);
StiReport mysti = new StiReport();
mysti.Dictionary.Databases.Add(new Stimulsoft.Report.Dictionary.StiSqlDatabase("Conne ction", cnc));
mysti.Load(ServerLocation + "\\report\\hreport.mrt");
mysti.Dictionary.Variables["idr"].Value = Request.QueryString["idr"];
StiWebViewer1.Report = mysti;
StiWebViewer1.DataBind();
نقل قول: The type or namespace name 'StiReport' could not be found (are you missing a using directiv
البته هنگام فعال کردن using های مربوطه، اشتباها StiReport را Generate کردم
نقل قول: The type or namespace name 'StiReport' could not be found (are you missing a using directiv
نقل قول:
نوشته شده توسط
salmah
البته هنگام فعال کردن using های مربوطه، اشتباها StiReport را Generate کردم
کسی نمیدونه چه جور اون جنریت را پاک کنم . فکر می کنم اشکال از اون باشه چون گزارش را تویه پروژه جدید امتحان کردم مشکلی نداشت
نقل قول: The type or namespace name 'StiReport' could not be found (are you missing a using directiv
اگه روی لوکال درسته روی هاست مشکل داره باید پروژه درست پابلیش کنید
نقل قول: The type or namespace name 'StiReport' could not be found (are you missing a using directiv
//
مشکلم حل شد
دوتاکار انجام دادم 1- دات نت فریم ورک را 4.0 قرار دادم
2- dll ها را توی پوشه bin هم کپی کردم