ltw
September 26th, 2008, 03:29 PM
I am trying to parse a report with a header that looks like this:
June 4, 2008
Rental Owner LLC UNIT 202 (ST202)
John Doe SEASIDE TOWNHOMES
123 Main Street
Anytown CA 12345
MONTH ENDING May 31, 2008
This is at the heading of each statement in a series of statements within the subject text file. The rest of each statement has many lines that look something like:
EXPENSES:
05/04/08 Complementary Maintenance WO 123456 0.00
05/01/08 Maintenance WO 123457 10.00
Etc.
This is the detail section and is treated as such with a detail template.
So the problem is with the heading section. I believe the best way to trap it is to use the date at the top. To do this, I need to use a floating trap on the year. This works if I make the header an append template. It does not work if I make the header a Page Header template because of the date that appears in the 'Month Ending...' line - it tries to make that the trapped line. This is further complicated by the fact that the owner address field can vary from 1-5 lines, thus requiring that I float the 'Month Ending...' line by starting the field using an 'After last defined field in template' selection.
So the difficulty with using an append template is that Monarch inserts page breaks automatically. If one of these page breaks lands in the middle of the append header, then it doesn't detect the 'Month Ending...' line.
Suggestions anyone?
June 4, 2008
Rental Owner LLC UNIT 202 (ST202)
John Doe SEASIDE TOWNHOMES
123 Main Street
Anytown CA 12345
MONTH ENDING May 31, 2008
This is at the heading of each statement in a series of statements within the subject text file. The rest of each statement has many lines that look something like:
EXPENSES:
05/04/08 Complementary Maintenance WO 123456 0.00
05/01/08 Maintenance WO 123457 10.00
Etc.
This is the detail section and is treated as such with a detail template.
So the problem is with the heading section. I believe the best way to trap it is to use the date at the top. To do this, I need to use a floating trap on the year. This works if I make the header an append template. It does not work if I make the header a Page Header template because of the date that appears in the 'Month Ending...' line - it tries to make that the trapped line. This is further complicated by the fact that the owner address field can vary from 1-5 lines, thus requiring that I float the 'Month Ending...' line by starting the field using an 'After last defined field in template' selection.
So the difficulty with using an append template is that Monarch inserts page breaks automatically. If one of these page breaks lands in the middle of the append header, then it doesn't detect the 'Month Ending...' line.
Suggestions anyone?