Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Report form
Message
General information
Forum:
Visual FoxPro
Category:
Visual FoxPro Beta
Title:
Miscellaneous
Thread ID:
00918779
Message ID:
00919511
Views:
9
Based on your other message, did you do this in an EXE?

IAC, please take the code *out* of your custom class, it is just test code so we could get at the XML, not meant to be run in an application of *any* kind.

Ensure that _reportoutput has an appropriate value (which, right now, it probably would not in an EXE). By default, that would be HOME() + "reportoutput.app".

The file referred to in _reportoutput must exist and, to run the test code I wrote for you, it has to be the app delivered with the product (using the _oReportOutput collection is leveraging something specific to that app).

Assuming the above conditions are true, in a simple test program, the below program should work.

I am asking you to try it out with the report that didn't provide any HTML contents, so we can see exactly why that is:
DO (_REPORTOUTPUT) WITH 4
* XML, not HTML

WITH _oReportOutput["4"]

 .includeBandsWithNoObjects = .T.
 .includeFormattingInLayoutObjects = .T.
 .TargetFileName = "c:\temp\x.xml" && or whatever

ENDWITH

REPORT FORM ? OBJECT TYPE 4
* use same report as before

MODI FILE c:\temp\x.xml
TIA,

>L<
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform