Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Nowait causes problems
Message
 
À
18/03/2005 12:42:21
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
00996972
Message ID:
00997360
Vues:
10
>John -
>
>We have a model form with a list of reports than can be selected for printing or previewing. Printing is no problem; however, when previewing the report we are instantiating a preview container so that we can change the caption. We also want to dock the toolbar and make sure the preview container is maximized. We are using the NOWAIT clause on the REPORT COMMAND so that we can then dock the toolbar and maximized the preview container. The problem is, instead of waiting for the preview container to close, it opens the next report in the list for previewing. You end up with the last report in the preview container displayed although the other report is open in the container window (but you can't get ot it).
>
>Do a search here on "ExtensionHandler" - I'm pretty sure I've described how to deal with a similar problem using that technique here before.
>
>- Colin


Colin

I did a search for "extensionhandler" but didn't find anything explaining how to handle this; however, we've happened on a solution that appears to work.

We simply went into the source code for the reportpreview.app and made some changes to the properties and method code and voila... we now end up with the toolbar visible and docked each and every time and the preview screen opens maximized just the way we want it.

In addition, we are NOT using the NOWAIT clause which fixes the problem of previewing multiple reports and not being able to get to the other reports that are open.

Another anomoly that we've encountered is if you call the report from a MODAL screen and attempt to use the NOWAIT clause, then it not only converts the preview container to a modeless screen, but the screen you called the report from to a modeless screen. Very strange behavior. I guess they thought everyone uses modelss screens for everything. We don't!

I'm guessing more people will resort to this as they find things that can't be worked around except to modify the reportpreview.app.

Best, John
John Fatte'

Life is beautiful!
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform