Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How can I supress the printing window
Message
 
To
08/11/2000 13:24:57
Gad Hutt
Express Print
Herzliya, Israel
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00439307
Message ID:
00439368
Views:
10
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform