Rahul Singla

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)


Re: Crystal Reports for Visual Studio DataTables & Crystal Reports

CrystalKeehr

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.




Re: Crystal Reports for Visual Studio DataTables & Crystal Reports

Rahul Singla

Thanx for the reply...
I recognized that it would become quite messy designing reports dynamically. So, I have already embarked on with custom Printing code.