简体   繁体   English

如何在PHP中使用带有参数的Crystal Reports?

[英]How to use Crystal Reports with parameters in PHP?

I would like to use Crystal reports with an ODBC (Sybase) data connection in PHP to display my database reports. 我想将Crystal报表与PHP中的ODBC(Sybase)数据连接一起使用,以显示数据库报表。

I selected Crystal Reports because of its advanced features, professional abilities, and its support for Sybase databases. 我之所以选择Crystal Reports,是因为它具有高级功能,专业能力以及对Sybase数据库的支持。 I also found PHP Reports but it doesn't support Sybase. 我还找到了PHP报告,但它不支持Sybase。

My configuration is PHP v5, Sybase ASA 11, Crystal Reports 9, IIS 6. 我的配置是PHP v5,Sybase ASA 11,Crystal Reports 9,IIS 6。

I searched the web for practical examples and Applications and I tried them but they do not work. 我在网上搜索了实用的示例和应用程序,并尝试了它们,但是它们不起作用。

Has anyone tried to do that before? 有人尝试过这样做吗? Would you please provide me with such an example. 请给我提供这样的例子。

Should be no problem. 应该没有问题。 I have not done that exact sequence myself, but I have done many similar. 我本人并没有完成确切的顺序,但是我做了许多类似的事情。

Ensure that you get ODBC working first (separate to Crystal & PHP). 确保首先使ODBC工作(与Crystal&PHP分开)。 Eg. 例如。 Excel⇢ODBC⇢OpenClient⇢SybaseASE. Excel⇢ODBC⇢OpenClient⇢SybaseASE。 OpenClient comes on the CD. CD中包含OpenClient。 ODBC is simple to set up: Datasource names, default db, etc. ODBC易于设置:数据源名称,默认db等。

I don't know if this is the standard way it works but where I work we have a JSP that renders crystal reports. 我不知道这是否是标准的工作方式,但是在我工作的地方,我们有一个JSP可以显示水晶报表。 To call it we use javascript to create a popup linked to the report renderer URL with the report location/parameters passed in the URL string. 为了进行调用,我们使用JavaScript创建了一个链接到报告呈现器URL的弹出窗口,并在URL字符串中传递了报告位置/参数。

If you don't want to use Tomcat then you could give i-Net Crystal Reports a go, that uses a java applet. 如果您不想使用Tomcat,则可以尝试使用Java小程序的i-Net Crystal Reports。

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

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