how to release the fast-report on IIS7
FastReport.Web.WebReport WebReport1 = new FastReport.Web.WebReport();
string mysql = "User Id=jy;port=4307;server=192.168.3.12;database=jywms_tp;password=jiayi56";
WebReport1.Report.Load("D:\\a.frx");
DataSet s=new DataSet();
;
DataTable tck = new DataTable();
DataTable tckmx = new DataTable();
ClsRWMySQLDb.FillTable(tck,"select * from tck", mysql);
ClsRWMySQLDb.FillTable(tckmx, "select * from tckmx", mysql);
s.Tables.Add(tck);
s.Tables.Add(tckmx);
WebReport1.Report.RegisterData(tck,"tck");
WebReport1.Report.RegisterData(tckmx, "tckmx");
//Thread s1 = new Thread(new ThreadStart(WebReport1.Report.Show));
//s1.SetApartmentState(ApartmentState.STA);
//s1.Start();
WebReport1.Report.Show();
Before release, operation problems.
atfer released, when the code runing that the event showing is no respose and not error.
string mysql = "User Id=jy;port=4307;server=192.168.3.12;database=jywms_tp;password=jiayi56";
WebReport1.Report.Load("D:\\a.frx");
DataSet s=new DataSet();
;
DataTable tck = new DataTable();
DataTable tckmx = new DataTable();
ClsRWMySQLDb.FillTable(tck,"select * from tck", mysql);
ClsRWMySQLDb.FillTable(tckmx, "select * from tckmx", mysql);
s.Tables.Add(tck);
s.Tables.Add(tckmx);
WebReport1.Report.RegisterData(tck,"tck");
WebReport1.Report.RegisterData(tckmx, "tckmx");
//Thread s1 = new Thread(new ThreadStart(WebReport1.Report.Show));
//s1.SetApartmentState(ApartmentState.STA);
//s1.Start();
WebReport1.Report.Show();
Before release, operation problems.
atfer released, when the code runing that the event showing is no respose and not error.