Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Remove default preview toolbar
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00926303
Message ID:
00926626
Vues:
13
>How do I create a new resource file for my custom toolbar?
>
>Thanks.

#1. Create an empty resource file
SET RESOURCE ON
cFox = SET('RESOURCE',1)
SET RESOURCE OFF
USE (cFox)
COPY TO MyUser
USER MyUser EXCLUSIVE
ZAP
USE
SET RESOURCE TO MyUser
#2. Open a report (doesn't matter what one)
MODIFY REPORT Junk
#3. Customize the toolbar
- Select View | Toolbars from the menu
- Make sure the print preview toolbar is checked
- Select Customize
- Add or delete buttons as needed
- Close the customization session

#4. Restore the resource file
SET RESOURCE TO (cFox)
#5. Print the report
lcResourceOnOff = SET('RESOURCE')
lcResourceTo = SET('RESOURCE',1)
SET RESOURCE ON
SET RESOURCE TO MyUser
REPORT FORM My Report
IF EMPTY(lcResourceTo)
  SET RESOURCE TO
ELSE 
  SET RESOURCE TO (lcResourceTo)
ENDIF
SET RESOURCE &lcResourceOnOff
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