How can I tell in VB if called Crystal report has no data 
Author Message
 How can I tell in VB if called Crystal report has no data

From my Visual Basic program, I produce Crystal Reports with passed
parameters and then email the reports out automatically (within the VB
program). Crystal produces a report with headings only if there is no
data. If such a report gets produced, I would like my VB program to be
able to tell and not email it out. Is there a flag I can check or
someway for the program to know when Crystal found no data for the
report?

Any help would be appreciated. Many thanks in advance.



Tue, 02 Aug 2005 02:00:44 GMT  
 How can I tell in VB if called Crystal report has no data
Have a look at the following property of the crsytal report's ocx.

CrystalReport1.RecordsPrinted

Hope this helps

Duncan

Quote:

> From my Visual Basic program, I produce Crystal reports with passed
> parameters and then email the reports out automatically (within the VB
> program). Crystal produces a report with headings only if there is no
> data. If such a report gets produced, I would like my VB program to be
> able to tell and not email it out. Is there a flag I can check or
> someway for the program to know when Crystal found no data for the
> report?

> Any help would be appreciated. Many thanks in advance.



Sat, 06 Aug 2005 22:50:24 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Crystal Reports Canned Code

2. Printing Crystal Reports without Crystal Control ActiveX or Crystal Reports API call

3. printing without crystal report or data report for non data base reports

4. Crystal Report Help Please or Tell me where to get Crystal Help

5. 'Canned' data in VB program

6. VB 6 Data report and crystal Report

7. VB 6 Data report and crystal Report

8. Problem Delploying VB6 Application having Crystal Report...

9. Having problems creating reports in Crystal

10. Am having printing problems with Crystal Report.

11. Crystal Reports 8.5 (VB6) to Crystal Reports NET (VB.NET) conversion

12. vb .net crystal reports not compatible with Crystal Reports 8.5

 

 
Powered by phpBB® Forum Software