Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Running report outputs values to form

Status
Not open for further replies.

StewartUK

Programmer
Feb 19, 2001
860
GB
In VFP9 I have a form from which I am calling a report. Service pack doesn't seem to be an issue because I get the problem with SP1 & 2.

I have REPORTBEHAVIOR set to 90.

With one report, I am getting the following values reported on the calling form:
.T.
.NULL.
GFXNORENDER
LISTENER.VCX
LISTENER.VCX
LISTENER.VCX
End of locate scope.
.F.
.T.
.T.
.T.
.NULL.

These lines are output just before the progress bar appears.

[ul][li]This only happens when running in the compiled application, not when I run it in the development environment.[/li]
[li]It doesn't happen with all reports.[/li]
[li]I've checked in the form for things like SET, ACTIVATE, DISPLAY, LIST and there's nothing.[/li]
[li]Running this report first and then another doesn't affect the 2nd one.[/li][/ul]

Any ideas?

Thanks,

Stewart
 
Look at SET TALK OFF. Note that it is scoped to the data session.

Craig Berntson
MCSD, Visual FoxPro MVP, Author, CrysDev: A Developer's Guide to Integrating Crystal Reports"
 
Stewart,

I agree with Craig. I have seen exactly the same behaviour, and traced it to TALK being ON.

In my case, I had set TALK off in the form's Load (so that it would be scoped to the form's data session), but somehow it had got itself switched back ON. I put an explict SET TALK OFF just before the point at which the output started appearing, and all was well.

Mike


__________________________________
Mike Lewis (Edinburgh, Scotland)

My Visual FoxPro site: www.ml-consult.co.uk
 
Hmm, I made no change to the form, but I now get nothing echoed to the form and SET TALK is indeed OFF. I'll keep an eye on it!

Thanks for your help Craig/Mike.

Stewart
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top