How to Print Multiple Copies of the Same LabelID: Q106030 2.50 2.5x 2.6x 3.00 | 2.00 2.5x 2.6x | 2.5x 2.6a kbprg
The information in this article applies to:
SUMMARYYou can print multiple copies of the same label programmatically, as explained below.
MORE INFORMATIONThere are two methods you can use to print multiple copies of the same label. The choice of which method to use depends on how the labels should be ordered.
Method 1: Issuing the LABEL FORM Command Multiple TimesThe simplest way to print multiple copies of a label is to issue the LABEL FORM command multiple times in sequence. The disadvantage of this method is that the copies of each label can be scattered over many pages in the printed labels.
Method 2: Creating a Temporary Cursor to Contain the Label InformationThe second method requires building a temporary database, or an SQL cursor, that contains multiple copies of the label information. The program below demonstrates one method of building the temporary database. A Cartesian join is used to create the output cursor. When two databases are used in an SQL SELECT command, and one database contains blank key fields, each blank record is joined with every record in the other database. This process is referred to as a Cartesian join. If database 1 contains 5 blank records, and database 2 contains 10 valid records, the resulting output cursor would contain 50 records--each of the 10 valid records joined with each of the 5 blank records. Normally, this would be undesirable behavior and blank key fields would be eliminated prior to the join, but this feature can be used to handle the multiple label problem easily. The disadvantage of this method is that the cursor can be quite large, leading to memory and disk space problems.
Additional reference words: VFoxWin 3.00 FoxDos FoxWin FoxMac 2.00 2.50
2.50a 2.50b 2.50c 2.60 2.60a set sequential order adjacent
KBCategory: kbprg
KBSubcategory: FxprgSql
|
Last Reviewed: April 30, 1996 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |