[RESOLVED] Set SubReport Data Paths?
Hi Peeps,
I do the following to set the data path of my reports :-
Code:
For iLoop = 0 To iTables - 1
mdiMain.repMain.DataFiles(iLoop) = sCatPath(sDBPath, FILE_DATABASE)
Next iLoop
This works great for just one report but how do I set the path of a sub report. I am using Crystal V8.5.
Thank you for any help,
Jiggy!
Re: Set SubReport Data Paths?
One way is to "Open" the subreport.
Dim repSub As Report
Set repSub = repMain.OpenSubReport(SubReportName)
Then use your existing loop using the repSub variable instead of repMain.
Re: Set SubReport Data Paths?
Thank you very much mate!