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!

ReportViewer & ASP: How do I know there is no data in the report?

Status
Not open for further replies.

jogro

Programmer
Oct 3, 2002
2
US
I am using the ReportViewer DTC on an ASP page. My report uses a stored procedure. I setup all the parameters etc, connect to the DB and then if there is no data how do I know?

doing a session("oRpt").ReadRecords causes a timeout (I think, no errors though).

In VB you could use the NoData event.

What can I do so that the viewer does not get launched on no data?

 
Did you find a solution to your problem?

We are facing the same issue - trying to determine whether or not a report returns no data without the NoData event. Our program does not have a UI and thus, we cannot trap for that event.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top