How to Add Custom Label Sizes to Visual FoxProLast reviewed: April 30, 1996Article ID: Q128651 |
The information in this article applies to:
SUMMARYIn earlier versions of FoxPro, it was difficult to add a custom label size. Although Visual FoxPro ships with the most common styles of Avery labels, it may still be necessary to add your own custom label size. This article shows you how.
MORE INFORMATIONWith Visual FoxPro, it's easy to add a new, custom label size to your application. The following steps, taken from the online Help, outline this process. If you don't see a label size that you need in the Label Designer, you can add label sizes to the New Label dialog box by adding new sizes to the resource file that populates the dialog box. The name of the resource file box is stored in the configuration file. By default, the configuration file is CONFIG.FPW. To add a label size:
Existing Labels in Resource FileVisual FoxPro doesn't check to see if label definitions already exist in the current resource file. Consequently, pressing the 'Add Labels to Resource File' button repeatedly will add the same 86 present label definitions to the resource file. When you go to select a label layout, you will see each definition repeated however many times you pressed the button. The easiest way to recover from this is to delete your resource file, but if this is not feasible, you will need to issue a SET RESOURCE OFF, use the resource file, and then manually delete the unwanted label entries.
Adding a LabelThe following information documents some of the points to remember when creating a new label layout.
In the event that your resource file ever becomes corrupt, you can recover by reruning the ADDLABEL.APP program to add back in the standard and custom label definitions. After you finish adding labels, choose the Cancel button from the Add Label dialog box.
Distributing Labels with Your ApplicationBecause label layouts are stored in your resource file, you must also distribute the resource file with your application so your users have access to the standard and custom label definitions.
|
Additional reference words: 3.00 VFoxWin Labels Custom LWriter
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |