PDA

Click to See Complete Forum and Search --> : [RESOLVED] Set SubReport Data Paths?


Jigabyte
Jul 31st, 2007, 04:46 AM
Hi Peeps,

I do the following to set the data path of my reports :-

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!

brucevde
Jul 31st, 2007, 09:55 AM
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.

Jigabyte
Jul 31st, 2007, 09:58 AM
Thank you very much mate!