What is sounds like is that you have a database which contains values as to what the contents of the letters will be. [line] [Co_num] etc. are all fields in your db. As you can see, when the customer name is Oster you do some special stuff as to the contents of the letter.
Can you provide...