Hi Chad,
thanks for the additional information.
> I use a fwrite statement in my C++ code, that contains
> a "/15".
>
I'm not familiar with C++, so I don't know what ANSI
character code /15 corresponds to? But Word wants/expects
Chr$(13), and will sometimes balk if it gets a "standard"
Chr$(10)Chr$(13) (newline, carriage return). Does that
translate to anything meaningful for you?
> The error I get is "Word could not merge the main document
> with the data source because the data records were empty
[quoted text clipped - 6 lines]
> word. The user then opens word and uses the file as the
> datasource when doing a mail merge.
Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun
8 2004)
http://www.word.mvps.org
This reply is posted in the Newsgroup; please post any follow
question or reply in the newsgroup and not by e-mail :-)
Chad - 18 Jun 2004 22:02 GMT
Cindy,
Thank you. I will explore this idea.
Something changed in word 2002, the "\15" works in all
previous versions of word.
Chad
>-----Original Message-----
>Hi Chad,
[quoted text clipped - 31 lines]
>
>.
Cindy M -WordMVP- - 20 Jun 2004 09:53 GMT
Hi Chad,
> Something changed in word 2002, the "\15" works in all
> previous versions of word.
Yes, it did. Unfortunately, I'm not exactly sure what
changed, as it would relate to what you're doing.
Word's default connection method is now OLE DB. And as best
I've been able to determine, it's more "forgiving" about
Chr$(13) vs. Chr$(10)Chr$(13) than earlier versions were...
And this is why I asked you to try with different
extentions on the file name. If OLE DB provider doesn't
recognize something as a text file, Word's internal text
converter should kick in, and that should behave as earlier
versions.
The only other possibility would be that you were using an
ODBC connection up until now, and the ODBC driver just
happened to be the only one recognizing this character. One
other thing you could try would be to activate "Confirm
conversions on open" in Tools/Options/General. Then you'll
be able to specify the connection method after choosing the
file. At this point, ODBC probably won't be listed, so
activate "Show all". you should then be able to choose the
Text ODBC driver and test whether that does give you the
result you remember.
Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update
Jun 8 2004)
http://www.word.mvps.org
This reply is posted in the Newsgroup; please post any
follow question or reply in the newsgroup and not by e-mail
:-)