Hi Klaus, actually i'm making documents based on legal templates for my
company, and each template has your inherent formatting. The process of
find/replace consists of the following thing: gather data from sql, and then
cross the gathered data with the template variables. We have two type of
variables: Automatic(ie: [VAR]) and Manual variables(ie: *VAR*). The
Automatic Variables receives data from SQL, and Manual Variables receives
data from text fields of the web page.
Those Legal templates had annoying formatting, so if anything in the final
document becomes messy, it's invalidated. And the majority of templates have
tables, pictures, borders, tabs, indentation, text boxes, lines... (think in
every format of word that you can remember..... YES! probably the templates
will had one of those).
Thanks Man.
Cheers.
Klaus Linke said:
Hi Felipe,
The replacement will get the formatting that was applied at the start of the matched text.
If you have "on 07/05/2004", with "on" regular, and "07/05/2004" italic,
and replace with "on the day 07/05/2004", the result will
loose the italic.
You can often smartly use wildcard replacements to keep the formatting, say, check "Match wildcards",
Find what: (on )([0-9]@/[0-9]@/[0-9]{4})
Replace with: \1the day \2
In this case, if the date had some special formatting to start with, it'll
keep the formatting after the replacement (since it's
simply re-inserted using \2).
Can you give an example where you loose the formatting? Perhaps there's a work-around.
Regards,
Klaus