gbr
August 4th, 2005, 12:36 PM
I have a report that is normally retrieving its data out of a database. In some cases, only specific rows of the table shall be printed without showing the report in a crystalviewer. I thought the best way to achieve this is creating a new dataset, copying all needed rows to the dataset and setting
report.SetDataSource( dset );
The printout works fine, but I get a report containing all data, without caring about my new dataset. What's wrong with this? I mean it would be okay if I'd have the report I get when double clicking in the report viewer on the group head (then only the part of the complete report is opened in a separate tab). I would appreciate, if someone knows how to redirect this directly to the printer without showing the report in a crystalviewer.
Thanks in advance,
gbr
btw: I am using C# and included CR.
report.SetDataSource( dset );
The printout works fine, but I get a report containing all data, without caring about my new dataset. What's wrong with this? I mean it would be okay if I'd have the report I get when double clicking in the report viewer on the group head (then only the part of the complete report is opened in a separate tab). I would appreciate, if someone knows how to redirect this directly to the printer without showing the report in a crystalviewer.
Thanks in advance,
gbr
btw: I am using C# and included CR.