I'm working in VB.NET and need to access the CrystalDecisions.CrystalReports.Engine.ReportDocument UseCount property for reports that are not within the project. I can do this for a report that is part of the project as follows:
Dim i As Integer, j As Integer
cReport = New SALES_REPORT
For i = 0 To cReport.Database.Tables.Count - 1
For j = 0 To cReport.Database.Tables.Item(i).Fields.Count - 1
TextBox1.Text += cReport.Database.Tables.Item(i).Fields(j).Name & " " & cReport.Database.Tables.Item(i).Fields(j).UseCount
Next
Next
In this case SALES_REPORT is a Crystal Report in the project. However, I can't figure out how to accomplish the same thing for external reports.
Dim i As Integer, j As Integer
cReport = New SALES_REPORT
For i = 0 To cReport.Database.Tables.Count - 1
For j = 0 To cReport.Database.Tables.Item(i).Fields.Count - 1
TextBox1.Text += cReport.Database.Tables.Item(i).Fields(j).Name & " " & cReport.Database.Tables.Item(i).Fields(j).UseCount
Next
Next
In this case SALES_REPORT is a Crystal Report in the project. However, I can't figure out how to accomplish the same thing for external reports.