Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
New Report Toolbar Not Accessible For TLF...
Message
 
General information
Forum:
Visual FoxPro
Category:
Visual FoxPro Beta
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows 2000 SP4
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00955429
Message ID:
00955680
Views:
14
Hi Mark

---
the report is so modal even the report preview toolbar is not accessible
---

You're not exactly doing anything wrong, although you certainly did over-complicate the repro quite a bit <s>. You don't need an EXE or all that overhead to see this, it doesn't require runtime conditions.

The issue here is not so much that the "report is so modal" (whatever that means <g>) but that the report preview is a true FoxPro form now, and the report toolbar is a user-toolbar.

Those two facts, plus READ EVENTS and the fact that you called the report from the button of a modal form, is going to force certain FoxPro-standard behavior. Granted this behavior is different from the native preview [SET REPORTB 80], and this difference is acknowledged in the docs. Of course we will certainly tune it further (or you can!) if we find a way.

But it doesn't mean that the toolbar as-delivered is inaccessible for top level forms <s>.

To use the toolbar, you can adjust your repro program (and your reporting style for top form apps) by replacing the button code with the following. Yes, NOWAIT means that the report is not modal any more (the report preview form will be called with .Show() instead of .Show(1)). But you will definitely see that the report preview toolbar can function properly in a top form app, it just follows the same rules as other parts of your app now.
         PROCEDURE cmdReport.Click
            REPORT FORM RepoDemo TO PRINTER PROMPT PREVIEW  NOWAIT
            RELEASE THISFORM
         ENDPROC
... this takes you out of the modal form and back to the "frame" of your topform app, which is a safer place for the report preview to be.

People who write VFP top form apps have to juggle this type of thing all the time, when they evaluate how to use modality, child forms, and toolbars; now reports have just come to the party.

Because of the way new-style preview works by default -- and I don't think it necessarily works this way in the public beta, even in the component refresh, in case anybody reading this and trying it out scratches his/her head trying to reproduce what I'm saying -- the NOWAIT preview is going to be re-used if it's called more than once; there isn't a danger of seeing tons of NOWAIT previews hanging around. I guess this makes it "sort-of modal" instead of "so modal" .

HTH,

>L<
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform