Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Strange Question
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01333520
Message ID:
01333755
Vues:
12
>Dear Experts
>
>There is a report print preview window.
>When it is run then it displays some text and one Image.
>
>I want this image must not print in printout.
>
>How is it possible.
>
>Please help

In VFP 9 with SET REPORTBEHAVIOR to 90 .. this is tricky. When you issue the REPORT FORM command, VFP generates the pages and caches them in memory. The Previewer displays those pages. When you hit the Print button .. it does NOT regenerate anything like it used to do in previous versions. It just prints those same cached pages that were displayed on the previewer.

Because of this, you can't conditionally show something on the preview and not the printout when the user hits the print button. In order to do this, you'll have to create a form that lets the user select Print or Preview. You'll also have to take the print button off the toolbar. Then change the report to use Print When logic that checks some variable or property you set in your Print and Preview buttons to determine whether to show the image.
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
Répondre
Fil
Voir

Click here to load this message in the networking platform