PC Review


Reply
Thread Tools Rate Thread

Deleting CustomDocumentProperties within Word from VB .Net

 
 
=?Utf-8?B?S2VuIEJlYXJk?=
Guest
Posts: n/a
 
      17th May 2005
I've hunted low and high for this and I've tried just about everything I
could find on the www. I have a template document (.dot) that thru a VB .Net
I open and fill with information. I trap the DocumentBeforeSave event so
that I can force the file to be saved to a particular location and I cancel
the SaveAsUI window. But my problem is that the .dot file gets prepopulated
with data from an XML document that I have (which is okay so far) but when I
open the .doc file that was created from the .dot template I get a message
stating the XML can not be found. I don't want the .doc looking for the XML
document becuase that was only used for loading the data into the template.
So I checked the documents properties and I notice that it has 2 custom
properties both listing the XML document. If I manually delete these
properties then subsequent opens of the .doc work fine. So how do I thru VB
..Net before saving the .dot has a .doc delete the properties?
--
Thanks
Ken Beard
MCSD, MCP
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
CustomDocumentProperties Patrick Jox Microsoft Word Document Management 1 16th Feb 2009 03:25 PM
CustomDocumentProperties Michelle Microsoft Excel Programming 7 29th Jan 2009 08:54 PM
<mso:CustomDocumentProperties> Rick K Microsoft Frontpage 2 29th Jul 2005 10:14 AM
customdocumentproperties in add-in via vba =?Utf-8?B?TWF0dCBNaWxsZXI=?= Microsoft Powerpoint 4 15th May 2005 02:15 AM
CustomDocumentProperties Claudio Microsoft Outlook 0 26th May 2004 07:06 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:08 PM.