简体   繁体   English

如何在VB.NET中连接Crystal Report和MySQL

[英]How to connect Crystal Report and MySQL in VB.NET

To clarify things first, I can connect MySQL to VB.NET. 首先要澄清一下,我可以将MySQL连接到VB.NET。 But I can't connect Crystal Report and MySQL. 但是我无法连接Crystal Report和MySQL。 When I'm creating new report in CrystalReportViewer control, I am stucked at the Standard Report Creation Wizard window. 在CrystalReportViewer控件中创建新报表时,我被困在“标准报表创建向导”窗口中。 I can't see any connections and my database (I created it in MySQL Query Browser). 我看不到任何连接和数据库(我在MySQL查询浏览器中创建了它)。

I'm using: Visual Studio 2010 我正在使用:Visual Studio 2010 在此处输入图片说明 , MySQL Query Browser, SQL Server 2005, Crystal Report(CRforVS13_0_13) ,MySQL查询浏览器,SQL Server 2005,Crystal Report(CRforVS13_0_13)

Any help? 有什么帮助吗? Or am I just missing something? 还是我只是想念一些东西?

Crystal Report requires an ODBC driver. Crystal Report需要ODBC驱动程序。 You can find one here . 你可以在这里找到一个。

After you have installed it, check that it exists in the ODBC Data Sources. 安装后,请检查它是否存在于ODBC数据源中。

它必须在这里可见。当我回到家时,我可以安装它并向您展示文本内容。

Once there, you need to create an Alias. 到达那里后,您需要创建一个别名。 Click on the User DSN tab and press the Add button. 单击“ 用户DSN”选项卡,然后按“ 添加”按钮。 Test the connection then go to Crystal reports. 测试连接,然后转到Crystal报表。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM