S
Scott McBurney
One of our customers has come across an interesting issue in Word (2003 and
older versions).
We have an application that performs a mail merge programmatically using
Word's object model. The mail merge uses a CSV file as the data source, and
our application performs the merge using an ODBC Data Source defined using
the MS Text driver. It works well. However, it appears to alwasy remove
blank lines from multi line fields in the merge.
On the other hand, if we try a modified version of the code to perform the
merge using Word's built in text driver, blank lines are left as-is in
multi-line fields.
This is causing some problems for one of our customers. Why is there such
an inconsistency between the two methods of merging data? Is there any way
to get consistent behavior between the two methods?
Any help here would be greatly appreciated.
older versions).
We have an application that performs a mail merge programmatically using
Word's object model. The mail merge uses a CSV file as the data source, and
our application performs the merge using an ODBC Data Source defined using
the MS Text driver. It works well. However, it appears to alwasy remove
blank lines from multi line fields in the merge.
On the other hand, if we try a modified version of the code to perform the
merge using Word's built in text driver, blank lines are left as-is in
multi-line fields.
This is causing some problems for one of our customers. Why is there such
an inconsistency between the two methods of merging data? Is there any way
to get consistent behavior between the two methods?
Any help here would be greatly appreciated.