RE: Weird report error

Author: Kent Belan

Posted: 2011-04-21 at 10:55:54

Good ideas and I checked them all

I am selecting the correct work area before I run the report.

No data environment in the report.

No explicit alias on the report text boxes.

-----Original Message-----

From: profox-bounces@leafe.com [mailto:profox-bounces@leafe.com] On Behalf

Of Richard Kaye

Sent: Thursday, April 21, 2011 9:08 AM

To: profox@leafe.com

Subject: RE: Weird report error

It sounds like you're either in the wrong data session or the report alias

is not current before running the report.

Have you explicitly selected the workarea before your REPORT FORM command?

Are you using the data environment in the FRX? If so, any code in any of

those methods?

Do your report objects have explicit table/cursor refs (i.e.

mytable1.myfield1, mytable2.myfield1)?

--

rk

-----Original Message-----

From: profoxtech-bounces@leafe.com [mailto:profoxtech-bounces@leafe.com] On

Behalf Of Kent Belan

Sent: Thursday, April 21, 2011 8:57 AM

To: profoxtech@leafe.com

Subject: RE: Weird report error

Removed NOCONSOLE but still get the error.

Here is a weird thing. If I step thru the code with the debugger, the report

works fine.

When I run the app by itself, without the debugger open, I get the error.

So if I browse the table or have the debugger open or add the PREVIEW

option, the report prints fine.

Problem is, I don't want to do any of those options

-----Original Message-----

From: profox-bounces@leafe.com [mailto:profox-bounces@leafe.com] On Behalf

Of Richard Kaye

Sent: Thursday, April 21, 2011 7:10 AM

To: profox@leafe.com

Subject: RE: Weird report error

What happens if you get rid of the NOCONSOLE keyword? I also have this vague

recollection that VFP cares about the order of the syntax when using PRINTER

PROMPT & PREVIEW.

--

rk

[excessive quoting removed by server]

_______________________________________________

Post Messages to: ProFox@leafe.com

Subscription Maintenance: http://leafe.com/mailman/listinfo/profox

OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech

Searchable Archive: http://leafe.com/archives/search/profox

This message: http://leafe.com/archives/byMID/profox/72FB29F7B0C845BC825A62E23F68ED8B@LaptopW7

** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

©2011 Kent Belan