rezaee_en
یک شنبه 17 شهریور 1392, 08:56 صبح
با سلام و خسته نباشید خدمت همه اساتید محترم
من در حال تهیه نرم افزاری هستم که داده هایی را در بانک sql server ذخیره می کند و در نهایت قابلیت تهیه گزارش از این داده های را دارد
گزارش گیری را با نرم افزار stimulreport انجام داده ام نمونه کد هم مانند زیر است
.
.
.
conn.Open();
SqlDataAdapter adap = new SqlDataAdapter();
adap.SelectCommand = cmd;
DataSet dst = new DataSet();
adap.Fill(dst, "bank");
Stimulsoft.Report.StiReport rpt = new Stimulsoft.Report.StiReport();
rpt.Load(Request.PhysicalApplicationPath.ToString( )+ @"reports\report1.mrt");
rpt.RegData("connect", dst);
rpt.Show(true);
با این روش در visual studio 2008 هیچ مشکلی ندارد و لی وقتی نرم افزار را در سرور با IIS اجرا می کنم خطای زیر را می دهد
Showing a modal dialog box or form when the application is not running in UserInteractive mode is not a valid operation. Specify the ServiceNotification or DefaultDesktopOnly style to display a notification from a service application.
لطفا کمک کنید خیلی گیر هستم
من در حال تهیه نرم افزاری هستم که داده هایی را در بانک sql server ذخیره می کند و در نهایت قابلیت تهیه گزارش از این داده های را دارد
گزارش گیری را با نرم افزار stimulreport انجام داده ام نمونه کد هم مانند زیر است
.
.
.
conn.Open();
SqlDataAdapter adap = new SqlDataAdapter();
adap.SelectCommand = cmd;
DataSet dst = new DataSet();
adap.Fill(dst, "bank");
Stimulsoft.Report.StiReport rpt = new Stimulsoft.Report.StiReport();
rpt.Load(Request.PhysicalApplicationPath.ToString( )+ @"reports\report1.mrt");
rpt.RegData("connect", dst);
rpt.Show(true);
با این روش در visual studio 2008 هیچ مشکلی ندارد و لی وقتی نرم افزار را در سرور با IIS اجرا می کنم خطای زیر را می دهد
Showing a modal dialog box or form when the application is not running in UserInteractive mode is not a valid operation. Specify the ServiceNotification or DefaultDesktopOnly style to display a notification from a service application.
لطفا کمک کنید خیلی گیر هستم