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


> >
> >
> > i dont see anywhere the 2th parameter "2"
> >
> > DO (_reportoutput) WITH 5, m.ox, 2 
> > 

> > but i try and it works (VFP9SP2 winXPSP2)
> >
> > delete the file before running the report
> >
> > erase ox.targetFilename
> > 

> >
> > and in first make
> >
> > set reportbehavior 90
> > 

> >
> > this the code tested and working:
> >
> > set reportbehavior 90
> > LOCAL ox as object
> > m.ox = Null
> > DO (_reportoutput) WITH 5, m.ox, 2 
> > 
> > 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 = "c:\asupprimer.html"   
> > erase (ox.TargetFileName)
> > REPORT FORM (getfile('frx') )   OBJECT m.ox
> > ENDIF
> > 

> >
> > retu
> >
> >
> > Dont rate please.its only for the pleasure to help.Give me only a feed back.
> > Yousfi Benameur
>
> Yousfi,
>
> Thank you for your reply.
> I can get to code to work on MOST machines - just not on 1 particular machine.
> It is something on that machine or more likely someting not on the machine that is preventing the generation of HTML reports.
>
> I have seen a couple of posts with the same problem - but not an anwser as to the missing element.
>
>
> Regards
>
> Bob of Surrey, England

What is the value of _reportoutput variable in that particular machine?
Maybe it is empty, if not - did you have rights to write a file in that particular path where you try to store the file?
-----------------
Borislav Borissov

Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.



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