mahavir patil

Hi all and Cindy( if i reach you),

I have done a project with VSTO 2005( not SE), on machine where i have office 2003 installed. Then i tried to associate that customization with office 2007 word documwent programatically by usig ServerDocument object and its AddCustomization method.

Noe the code is running properly without any errors and exceptions, but nothing is happenig with the document at all. The document is not being customized.

So, is there any way to check what is happenig, whether the manifest file is being associated with the document or not

Is there anything i missed and need to do mere for adding customization to the 2007 document programatically

Or is that mean that Document customizations created for Office 2003 will not run in Office 2007 documents.

Please guide me in this regard.........

Regards,

Mahavir




Re: Visual Studio Tools for Office Document customizations created for Office 2003 r not working with 2007 documents.

Douglas H. Troy

Mahavir -

I have developed a VSTO Office 2003 Document-Level customization and run it on Office 2007 with few problems; however, I am doing this all locally, and not via a web server (which is what I gather you are doing, from some of your other posts in this group).

A couple of things you'll need to know about using a 2003 customization on 2007. First off, you'll still install the VSTO on 2007, but, you'll need to install the Office 2007 PIAs and not the 2003.

If you want to be certain that you're customization has been correctly attached to your document, you can use the ApplicationManifestEditor, but to you'll need to rebuild the solution on a machine with Office 2007 and the 2007 PIAs in order to check an Office 2007 document ...

I am by no means an authority on VSTO solutions being hosted via a web service, but this should get you pointed in the right direction ... maybe.






Re: Visual Studio Tools for Office Document customizations created for Office 2003 r not working with 2007 documents.

Christin-MSFT

Your *.doc solution should work fine on a client running Word 2007 without any code or manifest modification. The client machien will need to 2007 PIAs that got installed with Office 2007, and the newer VSTO SE Runtime which you can download on MSDN here:

http://go.microsoft.com/fwlink/ linkid=49612






Re: Visual Studio Tools for Office Document customizations created for Office 2003 r not working with 2007 documents.

Douglas H. Troy

Christin -

You indicate that you must use the VSTO SE runtime ... is this a requirement for deployment via the web The reason I ask, is that I created a VSTO Word 2003 document-level customization, and on machines with Office 2007, I simply install the 2007 PIAs, but the VSTO runtime and NOT the VSTO SE runtime ...

My solution works just fine, but your response concerns me ...





Re: Visual Studio Tools for Office Document customizations created for Office 2003 r not working with 2007 documents.

mahavir patil

Thank you you two,

To let you know more correctly, I have created the VSTO prject on differret machine having office 2003 installed becoz its the requirement of such project template...right

Now i have deployed that assmbly and menifest file on web server, and i am opening a copy of sharepoint server word file in a frame on a web page in my web application by changing content tyoe of response to word/application(and so that the file gets open in client word application) and associatating this customization(assembly and manifest file) to this word file at run time when i display that file in frame. As that word file in frame in iffect is a temporary file at client side,

Now this is working fine for the client having office 2003+ VSTO 2005 runtime + .net framework 2.0 and all.

But this is not working on office 2007+ VSTO 2005 SE runtime(yes, i have installed 2005 SE version on top of VSTO 2005) + .net framework 2.0.

As i have office 2007 installed, 2007 PAI's r there. Again SE is there. Still the customization is not working.

And yes, then this file will be .docx type and not .doc.

Can you please now guide further...................

Mahavir.






Re: Visual Studio Tools for Office Document customizations created for Office 2003 r not working with 2007 documents.

Douglas H. Troy

Mahavir -

From my original testing on Office 2007 with a VSTO Document-level customization, the newer document format (docx) does not support the VSTO customization. Actually, saving a Word template (dot) with a customization out as a 'docx' file, unbinds the customization from the document, essentially "breaking" it.

You're going to have to use the "older" '.doc' file format ...