C
ClaudeV
I use Word mailmerge out of VB 6.0.
With an SQL procedure I create a *.txt file using an SQL
database and merge it to Word, using Word templates. What
is special about my Word templates is that I use "#" as
record separator instead of the default CRLF, which allows
me to use CRLF in bigger database fields.
With Word97 and Word 2000, this worked pretty well. Just
had to save the template once with my desired parameters.
With Word2002, it isn't true any more. First I had to
implement the OpenDatSource command in VB to avoid a
runtime error with Word opening the "Select * from ..."
box. The second problem is, that Word doesn't remember to
use "#" as the record separator and opens the Separator
Box everytime a template is opened out of VB. This would
not be a greater problem as it permits me to indicate the
correct seperator and than continues normally.
Unfortunately, this is is not the entire thing, because
when there are in fact any mergefields with CRLF's
Word2000 returns an error, finding the correct fields
number anymore.
It surely has to do with the OLEDB thing, but I just can't
manage to find out. It would be great if someone could
help me out of this.
With an SQL procedure I create a *.txt file using an SQL
database and merge it to Word, using Word templates. What
is special about my Word templates is that I use "#" as
record separator instead of the default CRLF, which allows
me to use CRLF in bigger database fields.
With Word97 and Word 2000, this worked pretty well. Just
had to save the template once with my desired parameters.
With Word2002, it isn't true any more. First I had to
implement the OpenDatSource command in VB to avoid a
runtime error with Word opening the "Select * from ..."
box. The second problem is, that Word doesn't remember to
use "#" as the record separator and opens the Separator
Box everytime a template is opened out of VB. This would
not be a greater problem as it permits me to indicate the
correct seperator and than continues normally.
Unfortunately, this is is not the entire thing, because
when there are in fact any mergefields with CRLF's
Word2000 returns an error, finding the correct fields
number anymore.
It surely has to do with the OLEDB thing, but I just can't
manage to find out. It would be great if someone could
help me out of this.