|
|
 |
 |
 |
| |
How do I create a text file database field in LABELVIEW 7.x and higher? |
 |
| |
- In this FAQ, you will create a text file database and link text file data to a paragraph field on a label. First, create the text file with the information to appear in the paragraph field.
- Open LABELVIEW. Select Options > Directories.
- From the Path of Text Files box, browse to the location of the text file you are going to use. Once you see your txt file select OK until you are back to your blank label.
- From LABELVIEW select Tools > Database Editor.
- Create a new .dbf file by clicking the New File button.
- Type in the first field name in the Name column, select Character for the data type. This field will be used to store the names of the text files you will add to labels. Click the Add button to add another field.
- You must also have a key field, or unique identifer for each record in the database. We will use the new field added at the end of the previous step for this purpose. Note that the field type for the key field must be numeric.
- Give your database a name and save it. Make sure you save it in the same directory that you saved your text file in and have LABELVIEW pointing to for text files (see step 3).
- Type in a text file's name in the Name field. Add a unique numeric value in the Key Field field. Note: Key Field values must be unique.
Once you have entered the data for the text files you wish to use, minimize or close the database editor. Your database file will automatically save.
- Add a text field on the label and select dBase as the Data Source.
- In the Print Field pulldown, select the key field from the database. In the Key Field pulldown, also select the key field from the database. In the Keyfield Data pulldown, select Prompted. In the Prompt text field, enter the prompt your users will see at print time. In this example, we used "Enter Key Field".
- You can also make this a hidden field. You can accomplish this by selecting the Options tab and changing the value of the Hidden pulldown from No to Yes.
- Once you are finished with the text field configuration, click OK. You can then position the text field on your label.
- Add a paragraph field to your label. Select dBase in the Data Source pulldown.
- Select your database file in the Database pulldown.
- In the Print Field pulldown, select the field from your database that contains the text file names. Click OK once you have configured the paragraph field options.
- Position the paragraph field on your label.
That's it! You are all set to print!
|
|
|
|