Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Record Count after export

Status
Not open for further replies.

chelseatech

Instructor
Aug 25, 2001
1,812
NZ
I'm using Visual Basic.Net and Crystal Reports 10. I use some code to open a crystal report and export it to a disk file. I'd like to check there are records in the file.

How do I retrieve the record count of the CRDoc object?

Editor and Publisher of Crystal Clear
 
Don't you miss the RDC, Bruce? ;)

I do believe you've stumbled onto one of the shortcomings of .NET vs. CR. The only workaround I've seen works if the data source for the report is a DataSet, from which you can get the record count of before sending it to the report.

Hope you find a workaround.

-dave
 
Not that I know of. There isn't a NoData event for the Report object in the .Net assemblies, nor does the Report object have a PrintingStatus object - both which are available in the RDC.

-dave
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top