I have an application that up to now has worked on client machines with various operating systems.
Now it is giving an error in that it is failing to create the ReportListener object on a specific new clients server running XP Version SP3 .
I have checked all the Report..app files and they are all present etc.
Heres the code that uses the standard _HTML / _HTMLReport class
LOCAL ox as object
m.ox = Null
DO (_reportoutput) WITH 5, m.ox, 2
* DEFINE LISTENER_TYPE_HTML 5 DEFINE OUTPUTAPP_LOADTYPE_RELOAD 2
* This is failing to create the ox object
IF ISNULL(m.ox)
MESSAGEBOX("Report generation in HTML failed",32,"Application Error")
RETURN .F.
ELSE
llQuietMode = m.ox.QuietMode
m.ox.QuietMode = .T.
m.ox.targetfilename = FORCEEXT(this.coutfile, this.cfileext)
m.lcScope=this.cScope
*output file created by following line
REPORT FORM (this.cReportFile) &lcScope OBJECT m.ox
m.ox.QuietMode = llQuietMode
ENDIF
If anyone has encountered this problem before I would be glad to here from you.
It would appear to be caused either by Registry entries or .DLL.OCX file versions - but I have not been able to track down the cause - as yet.
Additional testing shows that if I switch the 5 HTML Output to a 4 XML Output - it works on all machines.
So the problem is in the HTML generation within _reportoutput
Regards
Bob of Surrey, England