crisedefoie
Programmer
HI
I created a Crystal Report which datasource is a XML file.
This file will be created and destroyed so I have to specify the location of the XML filewith each treatment.
There is my code :
lTblReport = Report.Database.Tables
For i = 0 To lTblReport.Count - 1
Report.Database.Tables(lTblReport.Item(i).Name).Location _
= CurDir() & "\" & XMLFileName
Next
Report.ReportSource = CReportName
etc...
There is the error message I got when it met the instructions in the FOR statement :
Error in 'ReportName'
Incorrect key number
I tought that's a very easy way to change file location but ... Where did I go wrong?
Thank you!
I created a Crystal Report which datasource is a XML file.
This file will be created and destroyed so I have to specify the location of the XML filewith each treatment.
There is my code :
lTblReport = Report.Database.Tables
For i = 0 To lTblReport.Count - 1
Report.Database.Tables(lTblReport.Item(i).Name).Location _
= CurDir() & "\" & XMLFileName
Next
Report.ReportSource = CReportName
etc...
There is the error message I got when it met the instructions in the FOR statement :
Error in 'ReportName'
Incorrect key number
I tought that's a very easy way to change file location but ... Where did I go wrong?
Thank you!