Tag: crystal reports

Crystal Reports在Visual Studio 2010中不起作用

当我执行crystal report时它会出错。无法加载文件或程序集’crdb_adoplus,Version = 9.1.5000.0,Culture = neutral,PublicKeyToken = 692fbea5521e1304’或其中一个依赖项。 强名称validation失败。 (HRESULTexception:0x8013141A)

带水晶报告的数据库登录提示

我正在尝试显示一些报告 ,其中包含一些子 报告 ,但每次显示报告时都会抛出一些要求数据库连接的对话框。 我正在使用此代码: private void frmReporte_Load(object sender, System.EventArgs e) { Clave = ConfigurationSettings.AppSettings[“Password”].ToString(); NombreBD = ConfigurationSettings.AppSettings[“CatalogBD”].ToString(); NombreServidor = ConfigurationSettings.AppSettings[“Servidor”].ToString(); ; UsuarioBD = ConfigurationSettings.AppSettings[“UserID”].ToString(); this.crtReportes.ReportSource = this.prepareReport(); } public void imprimirReporte() { ReportDocument rpt = new ReportDocument(); rpt.Load(mvarRutaReporte); rpt.SetDataSource(clsReportes.dsReporte); rpt.PrintToPrinter(1, false, 1, 1); } private ReportDocument prepareReport() { Sections crSections; ReportDocument crReportDocument, crSubreportDocument; SubreportObject […]

仅显示标题数据但不显示数据集上的详细信息数据(水晶报告c#)

我想在dât上显示水晶报告,但它只显示没有显示详细信息数据的标题 我使用数据集来显示数据,但它不显示详细信息数据 我创建了数据集并链接到水晶报告……当我在主报告预览中尝试它时,它工作 请参阅图片: https : //imgur.com/OTkaCBQ.png crpQLVT rpt = new crpQLVT(); SqlConnection conn = new SqlConnection(@”Data Source=DESKTOP-FFIKNAO\SQLEXPRESS;Initial Catalog=QLVT;Integrated Security=True”;); conn.Open(); SqlDataAdapter dap = new SqlDataAdapter(“Select * from ThanhPhan”, conn); DataSet ds = new DataSet(); dap.Fill(ds); rpt.SetDataSource(ds.Tables[0]); crystalReportViewer1.ReportSource = rpt; 和结果http://sofzh.miximages.com/c%23/tHmiMNA.png 请帮我修理一下! 感谢帮助 !

在C#中将参数传递给水晶报表的步骤

你能告诉我在C#winforms中将参数传递给crystal Reports 13的步骤是什么? 我的代码: //getting and set dataset to report string sql = “select * from dbo.Trading_Order”; DataRetriever dr = new DataRetriever(); dr.getValueFromCustomer(sql); DataTable dtSum = dr.getDataTable(); dsMyReprt k = new dsMyReprt(); k.Tables.Remove(“dtMyTable”); dtSum.TableName = “dtMyTable”; k.Tables.Add(dtSum); CrystalReport1 myDataReport = new CrystalReport1(); //pass parameter ParameterFields paramFields = new ParameterFields(); // ParameterDiscreteValue paramDiscreteValue = new ParameterDiscreteValue(); […]

Crystal Reports会一直提示参数

我在.net 4.0的水晶报告2010中遇到了一个可怕的问题(我使用的是固定的13.0.1版本,但是发布了13.0.4)。 无论我尝试哪种方式,我总是会得到一个提示对话框,以便第一次输入我的一个参数值。 CrystalReportViewer1.ReportSource = CustomerReport1; CustomerReport1.Database.Tables[0].SetDatasource ( this.dataset); CustomerReport1.SetParameterValue(“PathLocation”, Location.Text); CustomerReport1.Parameter_PathLocation.CurrentValues.Add(Location.Text) // to be safe using CS 2010 for .net 4 CrystalReportViewer1.ReuseReportParametersOnRefresh = true; // to prevent from showing again and again. 我也试过这个: CustomerReport1.Database.Tables[0].SetDatasource ( this.dataset); CustomerReport1.SetParameterValue(“PathLocation”, Location.Text); CrystalReportViewer1.ReportSource = CustomerReport1; 还有这个: CustomerReport1.Database.Tables[0].SetDatasource ( this.dataset); CustomerReport1.Parameter_PathLocation.CurrentValues.Add(Location.Text) CrystalReportViewer1.ReportSource = CustomerReport1; // the parameter in the […]

无法在清单资源中找到报告 – Crystal Report / C#

我有一个用C#编写的Windows应用程序,我正在尝试使用水晶报表查看器显示水晶报表。 我的报告名称是“receiptReport”,我使用以下行在查看器中显示报告: receiptReport rpt = new receiptReport(); crystalReportViewer.ReportSource = rpt; 我收到以下错误: Unable to find the report in the manifest resources. Please build the project, and try again. Unable to find the report in the manifest resources. Please build the project, and try again. 我已经尝试将报告文件’receiptReport.rpt’的构建操作设置为嵌入式资源但现在仍然运气..我正在使用VS2010 ..

Crystal Report:无法连接错误的登录参数

打印报告时,用户有时会出现以下错误: CrystalDecisions.CrystalReports.Engine.LogOnException:文件C中的错误:\ DOCUME~1 \ carolec \ LOCALS~1 \ Temp \ temp_b117cc2e-c184-4556-a493-e04e6d4126fb {388C2B55-114E-4087-A22D-9289902AFDEB} .rpt:Unable连接:登录参数不正确。 —> System.Runtime.InteropServices.COMException(0x8004100F):文件C中的错误:\ DOCUME~1 \ carolec \ LOCALS~1 \ Temp \ temp_b117cc2e-c184-4556-a493-e04e6d4126fb {388C2B55-114E-4087-A22D -9289902AFDEB} .rpt:无法连接:登录参数不正确。 àCrystalDecisions.ReportAppServer.Controllers.ReportSourceClass.GetLastPageNumber(RequestContext pRequestContext)àCrystalDecisions.ReportSource.EromReportSourceBase.GetLastPageNumber(ReportPageRequestContext reqContext)— Fin de la trace de la pile d’exception interne —àCrystalDecisions.ReportAppServer.ConvertDotNetToErom。 ThrowDotNetException(Exception e)àCrystalDecisions.ReportSource.EromReportSourceBase.GetLastPageNumber(ReportPageRequestContext reqContext)àCrystalDecisions.CrystalReports.Engine.FormatEngine.PrintToPrinter(Int32 nCopies,Boolean collat​​ed,Int32 startPageN,Int32 endPageN)àCrystalDecisions.CrystalReports.Engine.ReportDocument.PrintToPrinter (Int32 nCopies,布尔整理,Int32 startPageN,Int32 endPageN) 关于解决方案的任何想法? 配置:C#(2008),WinForm,Crystal Report 10,SQL […]

如何从CrystalReport调用StoredProcedure?

我想从水晶报告中调用存储过程并将检索到的值分配给报告中的字段? 有什么建议?

如何在Crystal Reports中动态插入图像

我正在开发一个WinForms应用程序,它可以生成我的大学生的报告。 我正在使用Crystal Reports,但我不知道如何从文件系统中检索学生照片。 学生照片存储在文件系统中并使用以下命名约定: C:\Id Maker\”Clgid”.jpg 其中Clgid是存储在数据库中的值。 作为一个例子,我的Clgid是2009UCS020 ,它链接到我在文件系统上的照片为C:\Id Maker\2009UCS020.jpg 我正在努力寻找如何查找Clgid的数据库值,然后从文件系统中检索照片,以便我可以在我的Crystal Report中显示它。

在将DataTable设置为DataSource时报告要求数据库登录

报表设计器在设计器中创建水晶报表,使用ODBC(DSN)连接直接连接到数据库。 通过DSN通过Winform(C#)应用程序执行相同的报告,并提供数据库服务器,数据库,用户ID和密码。 我需要对Crystal Report对象进行此类更改。 ReportDocument不应该通过DSN直接连接到数据库。 相反,我们将通过调用相应的存储过程和参数作为System.Data.DataTable来通过服务提供数据。 此DataTable对象应用于填充/生成报告。 我分别从ReportDocument.DataBase.Tables[I].Location和ReportDocument.DataDefinition对象中获取存储过程和参数信息。 在使用ReportDocument.DataBase.Tables[I].SetDataSource(DataTable)设置DataSource之后,它仍然要求数据库/服务器和用户凭据连接到服务器。 我们是否可以实现场景并使用内存表填充报表,而不是通过ODBC直接连接到数据库?