S
scw-tzg
I have an appl that automates Word Mail Merge. It was written a long time
ago and it uses a template document that is created and saved with an
attached Header file (csv text file) but no attached data source file. It
attaches to a generated csv Data Source file at run time.
I have clients who have been running this application successfully for many
years, but as some convert from Word 2000 (or possibly Word XP) to Office
Word 2003, they run into the dreaded "Opening this will run the following SQL
command" message. We have considered the knowledgebase article & workaround
at http://support.microsoft.com/Default.aspx?kbid=825765, but clients are
reluctant to fool with the Registry. Likewise they are unhappy with the
option of manually opening and resetting the headers in the individual
documents because they often have hundreds of these documents.
So we are developing a solution using VBScript to automate the steps that
need to be done in Word. Here's where my problem is (yes finally!) If I
manually open one of these documents, I get the error message, and I found
that if I reply YES (to the next error message as well), the document opens
with the header file and "something" set as the data source. I see that in
Mail Merge helper dialog. That would be fine; I can find out what the header
file was, then start the Mail Merge setup all over again. But when I do the
Open from vbscript, the document opens without any error message, and with
all Mail Merge settings 'erased', as if I answered NO. That doesn't work for
me! I need to know what the header dile was. Does anyone have any
suggestions? Would one of the options on the Open method help here? I also
noticed that if I select the document from Windows explorer and double-click
it or specifically use the Open command, it gives me the error message; if I
use the Edit command, it opens as it does in vbscript.
Thanks for any suggestions...
ago and it uses a template document that is created and saved with an
attached Header file (csv text file) but no attached data source file. It
attaches to a generated csv Data Source file at run time.
I have clients who have been running this application successfully for many
years, but as some convert from Word 2000 (or possibly Word XP) to Office
Word 2003, they run into the dreaded "Opening this will run the following SQL
command" message. We have considered the knowledgebase article & workaround
at http://support.microsoft.com/Default.aspx?kbid=825765, but clients are
reluctant to fool with the Registry. Likewise they are unhappy with the
option of manually opening and resetting the headers in the individual
documents because they often have hundreds of these documents.
So we are developing a solution using VBScript to automate the steps that
need to be done in Word. Here's where my problem is (yes finally!) If I
manually open one of these documents, I get the error message, and I found
that if I reply YES (to the next error message as well), the document opens
with the header file and "something" set as the data source. I see that in
Mail Merge helper dialog. That would be fine; I can find out what the header
file was, then start the Mail Merge setup all over again. But when I do the
Open from vbscript, the document opens without any error message, and with
all Mail Merge settings 'erased', as if I answered NO. That doesn't work for
me! I need to know what the header dile was. Does anyone have any
suggestions? Would one of the options on the Open method help here? I also
noticed that if I select the document from Windows explorer and double-click
it or specifically use the Open command, it gives me the error message; if I
use the Edit command, it opens as it does in vbscript.
Thanks for any suggestions...