> >
> >
> > 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 SchillerThe only thing normal about database guys is their tables.