A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Word » Mailmerge
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Losing MainDocumentType on Open()



 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old November 24th, 2008, 06:18 PM posted to microsoft.public.word.mailmerge.fields
Jerry
external usenet poster
 
Posts: 483
Default Losing MainDocumentType on Open()

Hey guys, I have a mail merge document that is set to Directory for the Main
Document Type. If I close it and manually reopen it, it stays as a
"Directory" document, but if I open it through automation (i.e.
oWord.Documents.Open("C:\SomeDirectory\SomeDirecto ryDocument.doc")) the
oWord.ActiveDocument.MailMerge.MainDocumentType = -1 as soon as you do the
Open() command and then it gets set to 0 once you call the OpenDataSource().

How can I open the document through automation and keep the document type
that the user originally saved it with?


Thanks for your help,

Jerry
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 01:54 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.