Board index » delphi » : Mail Merge Word97 V.S. Word2000, MailMergeOpenDataSource
Daniel Raith
![]() Delphi Developer |
Sat, 01 Jun 2002 03:00:00 GMT
: Mail Merge Word97 V.S. Word2000, MailMergeOpenDataSource
I am having trouble where I have a number of *.doc files which are mail
merge documents. The datasource was always in 'C:\temp\mailmerge.asc' (text file with tab and enter delimiters) during design of the doc files. Works fine as long as all of our customers have a C drive. However some don't. With Word2000, the call to varWord.MailMergeOpenDataSource( 'F:\temp\mailmerge.asc', 0, False, True, False ) works great. Word2000 finds the datasource even though it isn't in the same spot as when the doc file was created. However with Word97, it seems to ignore this command and brings up a prompt asking for the datasource file if it can't find the datasource file that was in existence when the doc was created.. Is there any way to tell Word97 where the datasource is without user intervention? procedure TForm1.btnOLEWordBasicClick(Sender: TObject); Daniel Raith |