Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Am i going to true?
Message
 
 
General information
Forum:
Visual FoxPro
Category:
Visual FoxPro Beta
Miscellaneous
Thread ID:
00932125
Message ID:
00932226
Views:
9
---
Dear all
For out put the report as html i put these codes,

DO reportoutput
REPORT FORM ("rt\pc2.frx")
"D:\Projects\vf9\school\star.htm"

RUN /n Explorer.exe D:\Projects\vf9\school\star.htm
---

Not quite <s>.

I think you're trying to find out how to set the output of HTML to a particular filename.

You need to get a reference to the HTMLListener object, set its target file name, and then give your REPORT FORM command a reference to the object.

Here is one syntax that will work for you:
  ox = NULL

  DO reportoutput WITH 5, ox
  * Note: first parameter is the TYPE of output 
  * you want, and in the delivered reportoutput.app
  * HTML is TYPE 5.

  ox.targetFileName = ;
     "d:\projects\vfp9\school\star.htm"

  REPORT FORM ("rt\pc2.frx") OBJECT ox
For information about this syntax and alternatives, please see the OAX.HTM document in the Reporting Release Notes.

BTW, although you didn't use the TO FILE clause in your sample REPORT FORM command, you might have intended it. If so, you might expect that the HTML output object should use this filename by default instead of generating one.

This is not default behavior because the HTMLListener class can work with other reportlisteners in a chain to provide multiple types of output. It can also provide printed output at the same time as HTML, as a single object!

The TO FILE would belong to the base class, for use when providing the "normal" file output, so HTMLListener and other listeners providing file output must all use a separate, generated name at least as a default.

Hope this helps,

>L<
Previous
Reply
Map
View

Click here to load this message in the networking platform