string connstring = ConfigurationManager.ConnectionStrings["SqlConnectionString"].ToString() + ";Provider=SQLNCLI.1";
FastReport.TfrxReportClass report = new FastReport.TfrxReportClass();
report.LoadReportFromFile(AppDomain.CurrentDomain.BaseDirectory + "Report\\" + value);
report.SetVariable("Connstring", "'" + connstring + "'");
report.SetVariable("ID", id);
report.SetVariable("ufd1", "'" + SqlHelper.GetLinkName(CurrentUser.UserID, company) + "UFD1'");
report.SetVariable("cufd", "'" + SqlHelper.GetLinkName(CurrentUser.UserID, company) + "CUFD'");
report.PrepareReport(true);
report.PrintOptions.ShowDialog = false;
report.ShowReport();
report.PrintReport();在vs中调试时可以打印预览出来,发布出去后就没反应了,也预览不了。
注:发布在自己电脑上测试的,有安装fastreport。
把VS附加到IIS的进程调试没有任何异常,只是走完了没有反应。
iis里面是匿名账户,
权限差的远了
http://www.stimulsoft.com/ReportsWeb.aspx