本文介绍了Crystal Report Printing问题和错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 我在IIS水晶报告中配置了我的网站显示了一些错误。 当我从第一页搜索报告时从第一页打印。 i安装了visual studio 2010 ... SAP Crystal报告版本Visual Studio 2010, 用于.NET Framework 4的SAP Crystal报表运行时引擎(32位) --------------- 错误10未知服务器标签'CR:CrystalReportViewer'。 C:\inetpub\wwwroot\Mreport\aspnet_client\system_web\4_0_30319\crystalreportviewers13\preview.aspx 132 ----- ---------- 错误4无法加载文件或程序集'CrystalDecisions.Web,Version = 12.0.2000.0,Culture = neutral,PublicKeyToken = 692fbea5521e1304'或其依赖项之一。该系统找不到指定的文件。 C:\inetpub\wwwroot\Mreport\aspnet_client\system_web\4_0_30319\crystalreportviewers13\preview.aspx 5 ----- ----------- 错误7无法加载文件或程序集'CrystalDecisions.ReportSource,Version = 12.0.2000.0,Culture = neutral, PublicKeyToken = 692fbea5521e1304'或其依赖项之一。该系统找不到指定的文件。 C:\inetpub \ www.root \ Mreport \ aspnet_client\system_web \4_0_30319 \crystalreportviewers13 \preview.aspx 8 ----- ------------- 错误8无法加载文件或程序集'CrystalDecisions.ReportAppServer.XmlSerialize,Version = 12.0.2000.0, Culture = neutral,PublicKeyToken = 692fbea5521e1304'或其中一个依赖项。系统找不到指定的文件.- C:\inetpub \wwwroot \ Mreport \ aspnet_client \ system_web \4_0_30319 \crystalreportviewers13 \ preview.aspx 9 ------------------- 错误9无法加载文件或程序集'CrystalDecisions。 ReportAppServer.ObjectFactory,Version = 12.0.2000.0,Culture = neutral,PublicKeyToken = 692fbea5521e1304'或其依赖项之一。该系统找不到指定的文件。 C:\inetpub \ www.root \ Mreport \ aspnet_client\system_web \4_0_30319 \crystalreportviewers13 \ preview.aspx 10 ----- ---------- 错误5无法加载文件或程序集'CrystalDecisions.ReportAppServer.Controllers,Version = 12.0.2000.0,Culture = neutral ,PublicKeyToken = 692fbea5521e1304'或其依赖项之一。该系统找不到指定的文件。 C:\inetpub\wwwroot\Mreport\aspnet_client\system_web\4_0_30319\crystalreportviewers13\preview.aspx 6 ----- ----------- 错误6无法加载文件或程序集'CrystalDecisions.CrystalReports.Engine,Version = 12.0.2000.0,Culture =中性,PublicKeyToken = 692fbea5521e1304'或其依赖项之一。该系统找不到指定的文件。 C:\inetpub\wwwroot \ Mreport \ aspnet_client\system_web \4_0_30319 \crystalreportviewers13 \ preview.aspx 7 i我正在使用此代码 i have configured my website in IIS crystal report is showing some errors .its printing from first page when i search the report its printing from first page . i have installed visual studio 2010... SAP Crystal report Version Visual studio 2010, SAP Crystal report runtime engine for .NET framework 4 (32-bit) --------------- Error 10 Unknown server tag 'CR:CrystalReportViewer'. C:\inetpub\wwwroot\Mreport\aspnet_client\system_web\4_0_30319\crystalreportviewers13\preview.aspx 132 --------------- Error 4 Could not load file or assembly 'CrystalDecisions.Web, Version=12.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified. C:\inetpub\wwwroot\Mreport\aspnet_client\system_web\4_0_30319\crystalreportviewers13\preview.aspx 5 ---------------- Error 7 Could not load file or assembly 'CrystalDecisions.ReportSource, Version=12.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified. C:\inetpub\wwwroot\Mreport\aspnet_client\system_web\4_0_30319\crystalreportviewers13\preview.aspx 8 ------------------ Error 8 Could not load file or assembly 'CrystalDecisions.ReportAppServer.XmlSerialize, Version=12.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified.- C:\inetpub\wwwroot\Mreport\aspnet_client\system_web\4_0_30319\crystalreportviewers13\preview.aspx 9 ------------------- Error 9 Could not load file or assembly 'CrystalDecisions.ReportAppServer.ObjectFactory, Version=12.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified. C:\inetpub\wwwroot\Mreport\aspnet_client\system_web\4_0_30319\crystalreportviewers13\preview.aspx 10 --------------- Error 5 Could not load file or assembly 'CrystalDecisions.ReportAppServer.Controllers, Version=12.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified. C:\inetpub\wwwroot\Mreport\aspnet_client\system_web\4_0_30319\crystalreportviewers13\preview.aspx 6 ---------------- Error 6 Could not load file or assembly 'CrystalDecisions.CrystalReports.Engine, Version=12.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified. C:\inetpub\wwwroot\Mreport\aspnet_client\system_web\4_0_30319\crystalreportviewers13\preview.aspx 7 i am using this code using CrystalDecisions.Web;using CrystalDecisions.Shared;public partial class About : System.Web.UI.Page{ SqlConnection con = new SqlConnection(ConfigurationManager.ConnectionStrings["con"].ToString()); SqlCommand cmd = new SqlCommand(); SqlDataAdapter da = new SqlDataAdapter(); DataTable dt = new DataTable(); DataTable dt1 = new DataTable(); protected void Page_Load(object sender, EventArgs e) { ReportDocument crystalReport = new ReportDocument(); crystalReport.Load(Server.MapPath("CrystalReport2.rpt")); crystalReport.SetDatabaseLogon("sa", "123456789", @"TRAINING-ROOM-8", "newMreport"); CrystalReportViewer1.ReportSource = crystalReport; } protected void Button2_Click(object sender, EventArgs e) { SqlCommand cmd = new SqlCommand("SELECT * FROM Transactions where Patient = @Patient "); cmd.Connection = con; cmd.Parameters.Add("@Patient", SqlDbType.NVarChar).Value = TextBox3.Text; SqlDataAdapter da = new SqlDataAdapter(cmd); dt.Clear(); da.Fill(dt);if (dt.Rows.Count > 0) { ReportDocument Report = new ReportDocument(); Report.Load(Server.MapPath("~/CrystalReport2.rpt")); Report.SetDataSource(dt); Report.SetDatabaseLogon("sa", "123456789", @"TRAINING-ROOM-8", "newMreport"); CrystalReportViewer1.ReportSource = Report; CrystalReportViewer1.ReportSource = Report; CrystalReportViewer1.DataBind(); }} 推荐答案 它可能与 $ b有关$ b CrystalDecisions.Web,版本= 12.0.2000.0 确保服务器上安装的水晶报表版本与开发中使用的相同。 并安装 .net framework 2.0 ,因为大多数水晶报告需要它作为 先决条件 。 快乐编码! :)it could be problem related toCrystalDecisions.Web, Version=12.0.2000.0make sure version of crystal report installed on server is same as used in development.and install .net framework 2.0 also, because mostly crystal report need it as prerequisite.Happy Coding!:) 亲爱的muqeet, 请为Crystal Reports安装Business Objects。 这可以帮到你。Dear muqeet,Please Install Business Objects for Crystal Reports.May be this will help you. 请参阅 SAP Crystal Reports,Microsoft Visual Studio更新的开发人员版本&运行时下载 [ ^ ] 这篇关于Crystal Report Printing问题和错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 10-23 14:29