home *** CD-ROM | disk | FTP | other *** search
- !LabelText
- ====================================================================
-
- PURPOSE:
- --------------------------------------------------------------------
- This utility takes a CSV file and produces text from it in a form
- designed by the user.
-
-
- INTRODUCTION:
- ---------------------------------------------------------------------
- While any self-respecting database is able to produce CSV files, many
- do not have comprehensive output facilities.
-
- Note: a CSV file is a special type of file in which items are
- separated by commas - Comma Separated Values! In a CSV file output
- from a database, each field will be separated from the next by a
- comma. Each record will be separated by a return (character code 10).
- String (text) fields will be enclosed in double quote marks.
-
- Let's take an example. Imagine a database of names and addresses. In
- addition to the name and address and phone number fields that you
- expect, there may be additional fields with extra information -
- whether the person is a business or social contact, or a record of
- Christmas cards, for instance. Now, supposing you wanted to create a
- text file of just names and addresses for a printed address book. Or
- alternatively you may wish to print out a list of just names and phone
- numbers. Some databases do not make this easy. With !LabelText,
- however, the process is simple and fast.
-
-
- INSTRUCTIONS:
- ----------------------------------------------------------------------
- TO LOAD:
- Double click on the !LabelText icon in a directory viewer. The
- !LabelText icon will be installed on the icon bar. To use !LabelText
- you will need to have created a CSV file from a database program.
- Please note that the operation of !LabelText is limited to records
- with a maximum of 50 fields each. Dragging the CSV file from a
- directory viewer to the !LabelText icon on the icon bar will initiate
- the utility.
-
- TO USE:
- Two windows will appear: The main window, and a Field Help window.
-
- The Field Help Window:
- Some databases (eg Pinpoint and Pinpoint Junior) save the field titles
- as the first record in the CSV file. Some databases (eg Junior
- Database) do not. !LabelText will look at the first record and display
- its contents in the Field Help window. In this window the fields are
- listed from 01 . . ., and alongside each field number is the first
- nine characters of the contents of the fields in the first record. If
- this first record contains field titles, then it is these titles that
- are helpfully displayed. If, on the other hand, the first record is
- simply the first record of the database, then it is the contents of
- this first record that are displayed, slightly less helpfully, in the
- Field Help window. It is possible in this latter case, of course, that
- some of those fields will be empty, and the field entry in the Field
- Help window will therefore be blank. You may in this case find it
- helpful to make the first record in your database file contain the
- field titles in its fields. Don't forget that the first character of
- the key field, which decides the order of the records, will have to be
- a punctuation mark, like a full stop, (eg. ".Name"). This will ensure
- that it remains as the first record in the database.
-
- The Main Window:
- The main !LabelText window contains twelve writeable boxes, three
- special formatting icons, a Cancel icon and an OK icon.
-
-
- Clicking the left, Select, button of your mouse while the pointer is
- in one of the twelve writeable boxes will enable you to type text into
- it.
-
- The text for each record can, as you see, have up to twelve lines of
- text. Only type into boxes that you wish to appear in your label text.
- If you type only into one box, then the text for each record will only
- have one line.
-
- Whatever you type into the boxes will appear in the output. You may
- type up to 31 characters into each box.
-
- \b will produce a blank line
-
- \<nn> will put the contents of field number <nn> at that point
- in the line in the text for each record. Note that the field number
- must have two digits: 01,02,03,04 . . . 09, 10,11 etc.
-
- Suppose the first three fields of your database contain surname, first
- name and title respectively.
-
- Name: \03 \02 \01
-
- would produce
-
- Name: Mr John Smith
-
-
- The PRINT NULLS icon.
- If you have empty fields with no data, selecting this icon will print
- those empty fields where they occur and they will appear as blank
- lines. If this icon is NOT selected, then provided you have typed no
- text or spaces on any lines in the LabelText window that contain its
- field number, the blank field will NOT appear in the text as a blank
- line.
-
- The FILL OUT icon.
- THis icon and the EMPTY FIELDS icon cannot be selected at the same
- time. If this icon is selected,!LabelText will add an extra blank line
- at the end of the record's text to compensate for any empty fields.
- This means that the text blocks for each record will all have the same
- number of lines, but there will be no blank lines in the middle of the
- block, only at the end. If the both this icon and the EMPTY FIELDS
- icon are deselected then there will be no blank lines, but the text
- blocks may be of different lengths.
-
- These two formatting facilities are a great advantage when producing
- labels and files for mail-merging, because as you well know you need
- more fields in an address database than some addresses can fill and
- you end up with a lot of gaps in your labels!
-
- The SPACERS icon.
- If this icon is selected, the blocks for each record or label will be
- separated by a blank line.
-
-
-
- TO SAVE:
- Clicking select on the "OK" icon will bring up the standard RISCOS
- save box. The default name of the text file is "LabelText", but you
- may alter the name it if you wish. Dragging the text icon to a
- directory and then releasing it will initiate the creation of your
- bespoke text file.
-
- TO CANCEL:
- You may cancel at any time by clicking select on the Cancel icon. The
- windows will be shut down, but the icon will remain on the icon bar.
- If you drag a CSV file to the icon bar, you will find your line
- entries intact.
-
- TO QUIT:
- Press the centre (menu) button of your mouse while the pointer is over
- the !LabelText icon on the icon bar. A menu will pop up. Selecting
- Quit will abandon the program completely and remove its icon from the
- icon bar.
-
-
- HINTS & TIPS
- -----------------------------------------------------------------------
- Remember that the field numbers you put in the line boxes must be
- preceded by a backslash and MUST have two digits. If the number is
- less than ten, the first digit must therefore be a nought.
-
- If you want the text for each record to be separated from that of its
- neighbour, don't froget to include a blank line in the LabelText
- window
-
- If you are going to use your label text in a word-processor, you may
- like to use a code on !LabelText to represent tabs (#, say) and then
- search and replace it with a block of text later.
-
- The label text for each record will be as long as you have lines
- defined. Lines with no entry will simply not be included in the
- output. You can use extra \b lines to separate your records.
-
- If you are going to use your label text to print labels via
- Impression, you should make a template master page with the required
- number of linked frames. make the last line of your LabelText {next
- frame}, (make sure you have not selected the FILL OUT or SEPARATOR
- functions) and simply drop the whole file into the first Impression frame.
- Hey Presto! You may need to create a style for all the lines of each
- record to fit in each frame.
-
- Don't forget the great advantage of using !LabelText files for
- !Importer and other mail-merge utilities. Take as an example the
- merging of an address at the head of a letter. While !Importer can use a CSV
- output from a database, any empty fields in each address record will appear
- as blank lines in the middle of the address. With !LabelText this need not
- happen. You create a LabelText file With FILL OUT selected (because your
- mail-merge instructions expect so many lines of data). Your data import
- instructions will get, say, the six lines of address in order from that
- file, and you will find that all the empty lines will appear together
- unnoticeably at the end of the address in your document.
-
- You can perform simple mail-merging with !LabelText. For example:
-
-
- Line 1: \b
- Line 2: \b
- Line 3: Dear \01 and \02
- Line 4: \b
- Line 5: We are holding a little party
- Line 6: to celebrate John's Birthday
- Line 7: on Sunday the 12th August
- Line 8: at 1.00pm
- Line 9: Please come!
- Line 10: \b
- Line 11: Love
- Line 12: \b
-
-
- There is a short CSV file on the disc for you to experiment with.
-
- Transferring your label text into suitably arranged frames in an
- Impression or Ovation document will enable you to produce sheets of
- labels. An example Impression template is also included on the disc.
-
-
-