I'm gettting a data mismatch (no 107) error in the following code snippet from the program... appears to be in the reportlisteneer class code.
REPORT FORM (THIS.ReportFileNames[liIndex]) &lcClauses OBJECT THIS
Fro the debug window:
This.ReportFileNames[liIndex] is defined as a character string
liIndex is an integer
lcClauses is empty
Object THIS is defined
I have a class that I call newreportlistener that wraps the report listener code form Microsoft. I added a few methods, to call printing set copies, but this error seems to be in the microsoft listemer....
The weird thing is this program has been working for years! This week, I tried to add a new report to my system and these are the errors I'm getting.
My reporting works like this:
I have a global object called oRepts. It holds settings/methods for reporting. When I run a report I pass the report (lcReportName) to it.
WITH oRepts
.formDataSession=.f.
.nCopies=1
.prnType=''
.lPrint=.f.
.lcReportFile=lcReptName
.genReport()
ENDWITH
.
Any ideas?
TIA,
Mike