index > Visual Studio Tools for Office > Unable to add customization to a WordML file when already customi...

Unable to add customization to a WordML file when already customi...


Hello. I am unable to add a customization to a WordML file when that file is already customized. All reasonable attempts work on the same file when in the DOC format. Given the client and server exchange these files in the XML format, I need a resolution. We're working with VSTO 2005 v8.0.50727.42, .Net Framework v2.0.50727, VB.Net and Word 2003 (11.8026.8036) SP2. Many thanks for reading on and any ideas you share.

brent.xml

Hi Brent

See if the information in this thread helps you at all?

http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=654933&SiteID=1




-- Cindy Meister (Word MVP)
Cindy Meister
Hi, Cindy, Thanks for the response. This is one of the threads I reviewed. I re-read it just now to ensure I didn't overlook something. The most interesting portion, quoted below, states I can sever the association between the WordML instance and its customization. While I have succeeded in severing this association, Word still tries to load a customization (but fails as expected). Is there a complete list of what must be removed from a customized WordML instance such that Word no longer attempts (or even believes there is) to load a customization? This route would be pursued if all combinations of related ServerDocument methods fail for customized WordML instances.
brent.xml
Thanks to Microsoft Support who figured this one out. I needed to reference the application manifest when adding the customization (I was using an empty string.). To prove this is all I needed, we published the VSTO template project, thereby generating the application manifest. I then modified ServerDocument.AddCustomization(...) to reference this manifest. After doing so, ServerDocument.RemoveCustomization( pathToWordmlFile ) worked without error. The application manifest was not previously generated given we're not presently using ClickOnce to deploy. I am now trying to automate the application manifest generation, triggered by the setup project's build event. Looks like I need a VS macro or batch file implementing mage.exe. I hope this helps someone else.
brent.xml
reply 4

You can use google to search for other answers

 

More Articles

How to use InfoPath with VS .Net
Adding dynamic menus and events in Outlook
<path> is not a valid office add-in vs2005 and outlook 2003
Word VSTO 2005, assembly Link property
How to update Excel CommandBar via Events from C#.NET Addin
Again: Error HRESULT E_FAIL has been returned from a call to a CO...
How to create an extended worksheet from an external application ...
Outlook MailItem
Selection.PasteExcelTable
InfoPath - WebService - BizTalk
Welcome to Bokebb   New Update   Joins the collection  
 

New Articles

VSTO Outlook Addin - How to disable regi…
worddocument.saveas does save - but the …
CommandBar problem, help please????
Calling .Net Routine from with VBA
add-ins dont works for ms word
Connecting to a Remoting Server from an …
Suggestion For Future VSTO Release
VSTO update database
Dynamic Controls Within An Outlook 2007 …
Difficulties running Word Add-ins with V…
I am newbie..Pls Help Me with Actions Pa…
Office Interop problem with Excel COM ad…
saving documents
Smart Doc Pane Failes to refresh in WINX…
Populate pivot table with pre selected i…

Hot Articles

auto parsing HYPERLINKs
Create shortcut to xls on users desktop …
Problem Running VSTO on webserver - VSTO…
Serious Error with Action Pane/User Cont…
"Client" side access to cached…
"send email" button in MS word
How to integrate multiple word templates…
Appointment Instance not closing
ClickOnce Compatibility With VSTO Add-ins
Table.ID doesn't retain its value
save a document without the action pane
Excel file
Another deployment problem
Using ServerDocument vsto2 for generatin…
Deploy an Outlook Addin

Recommend Articles

How to create a hyper link to insert int…
format category text in an OWC chart com…
Getting Excel install folder
VSTO Outlook 2007 Form Region Question
How to add Top Level Folder in Outlook
Best of Forum Q&A
Serious: Update multiples tables of Data…
VSTO 2005 COM Add-In Word
why i can't see "office" proje…
Outlook PST file extraction
How to read data from a word document wi…
Error HRESULT E_FAIL has been returned f…
Add a control to PowerPoint slides
Exception thrown when adding an XML tag …
getting System.ExecutionEngineException …