hey guys, that reminds me
i'm thinking of writing a file search and replace 4gl proc, especially for mail merges under unix.
let me explain -
1. first you'd create a template, in office, lets say a word doc.
2. next id the values you'd like to insert, for example, &Form-CustName.
3. then save the doc in xml.
that's it for the template.
now for inserting the values, using the file search and replace proc -
1. proc param - single prefix, search and replace lists, for example, "&Form-", "CustName", "Progress Software"
2. the proc process the file in increments of let's say 1k.
3. searches the buffer for the prefix, if found process search and replace lists
the implementation is abit messier, but that's the general idea.
i think it'll be more efficient and simpler then sax, dom and activex approaches, though activex isn't even an option on unix.
has anyone done something similar, any advice, opinions ? thanks, more to come ...