DataTables&水晶报道 [英] DataTables & Crystal Reports

查看:60
本文介绍了DataTables&水晶报道的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个广泛使用DataGridViews& DataGrids用于显示使用DataTables从数据库获取的信息。
我几乎决定编写用于在网格中打印数据的自定义代码,当有人建议我使用Crystal Report工具来实现其纯粹的功能时。灵活性。我与Reports的第一次约会告诉我,我必须事先设计报告,然后才能在控件中显示它们。
现在,问题是使用从QueryBuilder构建的查询来获取网格中显示的数据。所以,我真的不知道有时会在网格中显示的列的数量或类型。

所以,我的问题是如何在DataTable中使用Crystal Reports或者数据网格(DataGrid或DataGridView)????

I have a DB Application that extensively uses DataGridViews & DataGrids to display information fetched from a DB using DataTables.
I almost decided to write custom code for printing the Data in the Grids, when someone suggested me to use Crystal Report tool for its sheer features & flexibility. My first rendezvous with Reports told me that I have to design the Reports beforehand before showing them in the control.
Now, the problem is that the data shown in the Grids is fetched using Queries built from a QueryBuilder. So, I really dont have any idea of the number or type of columns that will be displayed in the Grids at some time.

So, my question is simply how to use Crystal Reports on data in a DataTable or the Grids (DataGrid or DataGridView)????

推荐答案

据我所知,Crystal Reports提供的唯一网格对象是OLAP(在线分析)处理)立方体。但那些是静态网格。您的用户将无法直接与他们进行交互。否则,您可以在任何基本报告中显示数据,它本质上是一个包含行和列的表。您只需要正确格式化报表。

但是,如果您希望用户能够与网格进行交互,则需要其他产品,例如Rogue Wave的Object Grid,它与C ++项目集成,提供您可能需要的所有网格。如果您的项目是Java,那么Swing提供足以满足任何应用程序的表和网格。

我希望这会有所帮助。
As far as I know, the only grid object that Crystal Reports offers is the OLAP (online analytical processing) cube.  But those are static grids.  Your user would not be able to directly interact with them.  Otherwise, you can display your data in any basic report and it is essentially a table, with rows and columns.  You simply need to format the report properly.

If, however, you want your user to be able to interact with the grid, you need another product, something like Rogue Wave's Object Grid, which integrates with C++ projects and provides all the grids you could possibly need.  If your project is in Java, then Swing offers tables and grids enough to satisfy pretty much any application.

I hope this helps.


这篇关于DataTables&水晶报道的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆