SAP Crystal Reports
CR7_ASP_Detect SubReports
This RDC ASP sample demonstrates how to detect the sub-reports in a report. While it does not pass logon information - it could be easily modified to do so.