Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Preview,cursors & printing
Message
From
27/03/1999 13:43:28
 
 
To
27/03/1999 06:36:11
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00199768
Message ID:
00202738
Views:
18
Ahh Yes - the NOWAIT switch.

This is part of the problem because program execution continues after the REPORT FORM command and returns you back to READ EVENTS. If you have a timer running which updates other forms or toolbars, they all have to share the same datasession.

The other problem is the VFP print preview toolbar itself. It appears that NOWAIT returns the toolbar back to it's default state which doesn't recognize the activeform's private datasession. The only thing I can suggest to you is to trash the toolbar by putting the following code after REPORT FORM (lcReportName) PREVIEW NOWAIT:

RELEASE WINDOW ("Print Preview")

The only problem is that your users won't be able to print from a report preview.


-Jeff


>Nancy-
>
>I have not set any properties in the report DE (or added any cursors). (How do you make a report datasession private?) Here is the command issued from the ok button on the form which calls the report:
>
>IF llOKtoprint
> IF THIS.PARENT.optgpprint.VALUE = 1 && to printer
> REPORT FORM (lcReportName) TO PRINTER PROMPT NOCONSOLE
> ELSE
> REPORT FORM (lcReportName) PREVIEW NOWAIT && to preview
> ENDIF
>ENDIF
>
>The VFP version is 5.0a, and the build is 415. I have tried prefixing a field name in the report with the table name - then I get an "alias() not found" error.
>
>Thanks for all your attention to this.
>Carlie
- Jeff
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform