Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How can I supress the printing window
Message
 
À
08/11/2000 13:24:57
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00439307
Message ID:
00439368
Vues:
11
>Hi all,
>
>How can I supress the printing window that appears when VFP prints a report?
>( not the printing dialog window, but the small one with the reports name...)
>
>Thanks
>
>Gadi

Hi Gadi,

Technically, you can't suppress it ... But you can move it out of the way so it appears as if it's gone. Put the following code in a UDF that you can access from the report.
IF WEXIST('Printing...')
  MOVE WINDOW 'Printing...' TO -1000, -1000
ENDIF
In the "On Entry" portion of the Title band of your report add a call to this UDF. If you're working with 2.6 instead of Visual, add an object to the title band that calls the UDF.

The "Printing..." window will flash for a brief moment and then look like it disappears. But beware, it's still there so you still can't print reports from COM objects.

Cathy
Cathy Pountney, Microsoft Visual FoxPro MVP
Memorial Business Systems, Inc. (www.mbs-intl.com)

My Website: (www.frontier2000.com)
My Blog: (www.cathypountney.blogspot.com)
My Book: The Visual FoxPro Report Writer - Pushing it to the Limit and Beyond
Free MSDN Article: What's New in the VFP 9.0 Report Writer
Free MSDN Article: The VFP 9.0 Report Writer In Action
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform