Tag: crystal reports

关于设置和部署的水晶报告集成问题

我有一个使用水晶报告的大量报告的应用程序。现在我想使用visual studio设置向导设置和部署我的项目。但我的问题是我想在另一台没有安装水晶报告的计算机上安装该应用程序。完美运行直到它到达报表部分,它会抛出一个错误”CrystalDecisions.CrystalReports.Engine.ReportDocument’的类型初始化程序抛出exception’。 如何在我的安装项目中引用水晶报告依赖关系,任何人都有想法?

在CrystalReport中分配DataSource时发生FileNotFoundException

在报表中分配数据源时抛出System.IO.FileNotFoundException execption。 我正在使用visual studio 2013,C#4.5,WinForm应用程序。 我为visual studio 13安装了水晶报告。 这是代码 DataSet ds = new DataSet(); ds.Tables.Add(new DataTable(“administration_CashDeskManager_Reports_ReportDataBusinessObject”)); ds.Tables.Add(new DataTable(“administration_CashDeskManager_Reports_ReportDataDetailBusinessObject”)); Reports.CrystalReport.rptCashDeskTransactionLog Report = new Reports.CrystalReport.rptCashDeskTransactionLog(); Report.SetDataSource(ds); crViewer.ReportSource = Report; Report.SetDataSource(ds)命令引发错误。 我认为此错误是特定于版本的错误。 例外细节: mscorlib.dll中发生了未处理的“System.IO.FileNotFoundException”类型exception 其他信息:无法加载文件或程序集’file:/// C:\ Program Files \ SAP BusinessObjects \ Crystal Reports for .NET Framework 4.0 \ Common \ SAP BusinessObjects Enterprise XI 4.0 \ win32_x86 […]

从Crystal Report中的多个表推送数据

我有一个名为CR1的水晶报告。 现在我想将多个表中的数据填充到我的水晶报告CR1中。 我正在使用VS2008,编码语言是ASP.net中的C#任何帮助将不胜感激。

如何部署使用sql server express 2012和crystal report开发的C#windows表单应用程序

我在Microsoft Visual Studio 2013中开发了一个应用程序.Net Framework 4.5。 我使用的DBMS是sql server 2012 express,用于报告的是Crystal报告13 我想创建一个安装文件,可以在客户端计算机上安装.net框架,sql server和crystal报表。 此设置应该是脱机和静默的 。 我使用了一次点击但是当我选择“下载文件与我的应用程序位置相同”时它不起作用。 我的意思是离线设置无法单击一次。 其次,没有选择我需要安装软件的位置。 我知道还有其他问题与此类似。 但我需要在上述条件下提供具体帮助。 请描述如何为部署项目创建此类型的单一和独立安装文件

每日/每周/每月记录计数通过StoredProcedure搜索

使用MS SQL Server 。我已经创建了一个名为SP_Get_CallsLogged的存储过程。 我有一个名为TRN_Call的表,它有一个名为CallTime列,它是一个DateTime。 我的应用程序中有一个用户输入的网页: – StartDate (DateTime) EndDate (日期时间) 期间 (每日/每周/每月)(varchar)(来自DropDownList) 我希望根据用户在DropDownList中选择的指定TRN_Call (每日/每周/每月),在我的表TRN_Call获取这些调用的记录计数 。 例如 StartDate =’1/18/2010 11:10:46 AM’ EndDate =’1/25/2010 01:10:46 AM’ Period =Daily 因此,上述日期(StartDate + EndDate)之间的记录数应该以某种方式进行,以便我可以单独引用这些计数,即: – Date 1/18/2010 Records Found 5 Date 1/19/2010 Records Found 50 Date 1/20/2010 Records Found 15 Date 1/21/2010 Records Found 32 Date 1/22/2010 Records Found […]

从嵌入式资源加载Crystal Report

我有一个ASP.NET网站和一个引用的类库项目。 在这个类库中,我将Crystal Report设置为嵌入式资源。 我想将报表动态加载到CrystalReportViewer中。 我该怎么做?

.NET Framework 4.0中的Crystal Report

我们使用Visual Studio 2010编写了一个用.NET 3.5编写的WPF应用程序。 该解决方案包含8个项目 – 全部使用.NET 3.5编译。 该应用程序使用Crystal Report。 目标操作系统是Windows 7。 最近,由于某些第三方DLL依赖性, 启动项目在.NET 4.0中编译 – 这些DLL需要.NET 4.0。 在此更改和重建解决方案之后,Crystal Report将抛出exception。 问题发生在ReportClass的构造函数中。 exception的消息: “CrystalDecisions.CrystalReports.Engine.ReportDocument”的类型初始值设定项引发了exception。 InnerException的消息: “由于以下错误,检索具有CLSID {4DB2E2BB-78E6-4AEA-BEFB-FDAAB610FD1B}的组件的COM类工厂失败:80040154未注册类(HRESULTexception:0x80040154(REGDB_E_CLASSNOTREG))。” 我以前没有在Crystal Report工作过。 可能是造成这个问题的原因是什么? 请注意,编译为.NET 3.5时不会发生此问题。 Crystal Report用于启动项目。

水晶报道。 使用MVC在Windows Server 2008中找不到“指定的路径”

这可以在计算机中正常工作,但是当我将其部署到客户端测试服务器时。 弹出此错误。 服务器是Windows Server 2008标准版。 我已经检查了rpt的路径并安装了CRV并允许所有人访问。 我花了差不多2天仍然找不到解决方案。 Server Error in ‘/QC’ Application. The system cannot find the path specified. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Runtime.InteropServices.COMException: The system […]

动态更改Crystal Report的连接

我正在使用CrystalReportViewer和CrystalReportSource在我的应用程序中加载和显示.rpt文件。 我的情况是这样的: 假设一个人在我的应用程序之外创建了一个水晶报告并将其数据源设置为数据库A.然后我在我的应用程序中使用该.rpt文件,但我需要将它绑定到另一个数据库(就表结构而言与原始数据库相同)和列名,但使用不同的用户名和密码使用不同的连接字符串)。 我如何在C#中做到这一点? 目前我使用以下方式加载报告: this.CrystalReportSource1.ReportDocument.Load(reportsSubfolder + report.ReportFileName); //it is here that I need to change the connection data of the report.

如何在c#win form app中设置Sub crystal report的数据源

我正在使用此代码在主报表中加载主报表和子报表。 主报告是空白报告,只包含子报告。 这是我的代码: MySqlConnection cnn; string connectionString = null; string sql = null; connectionString = “Server = BC; Database = mydb1; Uid = root; Pwd = abc123;”; cnn = new MySqlConnection(connectionString); cnn.Open(); sql = “SELECT * from mytable1 “; MySqlDataAdapter dscmd = new MySqlDataAdapter(sql, cnn); DataSet1 ds = new DataSet1(); dscmd.Fill(ds, “Imagetest”); cnn.Close(); ReportDocument cryRpt […]