Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. sponsors. rss.
 From: Bob Brook
  Where is Bob Brook?
 Surrey
 United Kingdom
 Bob Brook
 Tags
Subject: _ReportOutput to HTML file givng error
Thread ID: 232931 Message ID: 232931 # Views: 30 # Ratings: 0
Version: Visual FoxPro 9 SP2 Category: Reports and Printers
Date: Saturday, June 27, 2009 6:24:07 PM         
   


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



COMPLETE THREAD
_ReportOutput to HTML file givng error Posted by Bob Brook @ 6/27/2009 6:24:07 PM
RE: _ReportOutput to HTML file givng error Posted by Yousfi Benameur @ 6/27/2009 7:34:14 PM
RE: _ReportOutput to HTML file givng error Posted by Bob Brook @ 6/27/2009 7:45:36 PM
RE: _ReportOutput to HTML file givng error Posted by Yousfi Benameur @ 6/27/2009 7:49:42 PM
RE: _ReportOutput to HTML file givng error Posted by Bob Brook @ 6/27/2009 11:06:30 PM
RE: _ReportOutput to HTML file givng error Posted by Yousfi Benameur @ 6/28/2009 1:46:30 AM
RE: _ReportOutput to HTML file givng error Posted by Borislav Borissov @ 6/27/2009 8:53:58 PM
RE: _ReportOutput to HTML file givng error Posted by Yousfi Benameur @ 6/27/2009 9:09:55 PM
RE: _ReportOutput to HTML file givng error Posted by Borislav Borissov @ 6/27/2009 9:16:27 PM
RE: _ReportOutput to HTML file givng error Posted by Yousfi Benameur @ 6/27/2009 9:31:32 PM