Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

REPORTBEHAVIOR 90, What else do I need?

1,084 views
Skip to first unread message

Steve Meyerson

unread,
Feb 5, 2010, 5:53:38 PM2/5/10
to
To rotate the text in some of my reports, I had to SET REPORTBEHAVIOR
90.

It works fine on my machine with VFP9 installed running the exe file
built from the project.

However, when the reports are run the user's machine without VFP9
installed, this error occurs:

Variable '_REPORTOUTPUT is not found'

I'm confused (to say the least) after reading about the _ReportOutput
variable and its relation to the ReportListener. I tried adding
ReportOutput.app to the project, but it wouldn't let me "Include" it.

Normally I would try different things to fix it, but I need (and don't
have) a machine without VFP9 installed to test.

Can I just set _REPORTOUTPUT to something? Or include ReportOutput.app
in the distribution files? I don't need (or want) users to modify any
reports.

In the frx, ObjType=5. It's the only object in the frx with content in
the Style field:

<VFPData>
<reportdata name="Microsoft.VFP.Reporting.Builder.Rotate" type="R"
script="" execute="315" execwhen="" class="" classlib="" declass=""
declasslib=""/>
</VFPData>

Any help would be appreciated. TIA.

Steve Meyerson

Dan Freeman

unread,
Feb 6, 2010, 11:25:37 AM2/6/10
to
on 2/5/2010, Steve Meyerson supposed :

The new report writer (REPORTBEHAVIOR 90) is largely written in VFP so
if you're going to use it you need to distribute the "bits"
(reportoutput.app), and set the system variables (_ReportOutput) to
point to them or VFP can't find its pieces.

There are three apps: reportbuilder.app, reportoutput.app, and
reportpreview.app. May as well include them all. They don't eat much,
and when you need them later they'll already be there.

http://fox.wikis.com/wc.dll?Wiki~VFP9RuntimeFiles~VFP

Dan

Dan


Steve Meyerson

unread,
Feb 6, 2010, 1:23:45 PM2/6/10
to
Thank you very much, Dan.

I added three lines to my Main.prg for the system variables:

* For rotated text in some of my reports:
SET REPORTBEHAVIOR 90
_REPORTOUTPUT = 'ReportOutput.app'
_REPORTPREVIEW = 'ReportPreview.app'
_REPORTBUILDER = 'ReportBuilder.app'

And I added the 3 apps as you suggested to my setup exe (using Inno
Setup) so they install themselves into the program's default folder
in ...\Program Files\Ten99Easy (or whatever the user changes it to).
Hopefully, I don't need to specify paths.

I'll have my "non-fox" user test it soon.

Steve

On Sat, 06 Feb 2010 08:25:37 -0800, Dan Freeman <sp...@microsoft.com>
wrote:

Jack Jackson

unread,
Feb 7, 2010, 2:09:40 AM2/7/10
to
On Fri, 05 Feb 2010 17:53:38 -0500, Steve Meyerson
<stevem...@cox.net> wrote:

>To rotate the text in some of my reports, I had to SET REPORTBEHAVIOR
>90.
>
>It works fine on my machine with VFP9 installed running the exe file
>built from the project.
>
>However, when the reports are run the user's machine without VFP9
>installed, this error occurs:
>
>Variable '_REPORTOUTPUT is not found'

Are you sure the other machines are using the VFP9 runtimes? That
error sounds like they are using older runtimes that don't understand
_REPORTOUTPUT.

Steve Meyerson

unread,
Feb 7, 2010, 12:15:27 PM2/7/10
to

Absolutely sure. The other machines are vfp virgins and the runtimes
in my distribution package are ver.9.

I'm using Dan's suggestion and we'll see what happens (haven't tested
it yet).

Mini-rant: I realize the older runtimes wouldn't understand
_REPORTOUTPUT, but that's nothing compared to my non-understanding of
the report listener how-to's. All I'm trying to do is make a single
9.0 feature work. The doc I'm sure is technically correct, but in my
opinion, it assumes a working knowledge of report listener as it tries
to explain the report listener. After reading, I still can't figure
out how to "invoke" it, or even if it needs to be "invoked." I guess I
need "Report Listener for Dummies" :) :). Anyway, thanks for your
help.

Steve

Dan Freeman

unread,
Feb 7, 2010, 2:33:50 PM2/7/10
to
on 2/6/2010, Jack Jackson supposed :

_REPORTOUTPUT (and the others) behave exactly the same as _GENXTAB,
_GENHTML and other system memory variables that point to code files.

They are not populated at runtime unless you do it explicitly.

Dan


0 new messages