I use CR reports in my VFP app. And I have a report which includes some subreports. When I run that report I use code like this:
...
oCrystal = CreateObject("Crystal.CrystalReport")
oCrystal.ReportFileName = "MyReport.rpt"
oCrystal.DataFiles[1] = "Tbl1.dbf"
oCrystal.DataFiles[2] = "Tbl2.dbf"
...
The point is that Tbl1 and Tbl2 tables are not visible in subreports. Is there any way to make tables included in main report visible for all subreports in that report?
I can add the tables directly in subreport in CR designer but I don't know the way to pass the table name to subreport from code.
Eugene