NaamaV

Hi,

I created my own custom template, and I'm working now on the setup project.

but I don't understand how I can cause Word to open all the documents with my template. I need to change the normal.dot How I do it .



Re: Visual Studio Tools for Office How I Can Add My Custom Template to Normal.dot?

Ashish Basran

Seems, you have to overwrite the Normal.dot file. While doing so, you need to check weather you are overwriting for single user or all user's profile.






Re: Visual Studio Tools for Office How I Can Add My Custom Template to Normal.dot?

NaamaV

What Exactly I have to do in order to overwrite it

I tried to change my template name and put it under Template directory, but I've got an error.





Re: Visual Studio Tools for Office How I Can Add My Custom Template to Normal.dot?

Ashish Basran

What was the error you got






Re: Visual Studio Tools for Office How I Can Add My Custom Template to Normal.dot?

Misha Shneerson - MSFT

I will be closing this thread since no response has been received so far. Please feel free to activate if the problem has not been solved yet and you have more details to post to the thread.




Re: Visual Studio Tools for Office How I Can Add My Custom Template to Normal.dot?

NaamaV

The error was: The file does not exist(Normal.dot)

or something like this..

I've also tried to attach my template from Templates and add-ins tab, and I got an error:"the file is invalid".

But I can work with it if I open the template(.dot) file itself.





Re: Visual Studio Tools for Office How I Can Add My Custom Template to Normal.dot?

Cindy Meister

NaamaV wrote:

Hi,

I created my own custom template, and I'm working now on the setup project.

but I don't understand how I can cause Word to open all the documents with my template. I need to change the normal.dot How I do it .

Hi Naama

You should not do this. The Normal.dot template belongs to the user and will contain the user's customizations (such as AutoText entries, toolbar changes, keyboard shortcuts and AutoCorrect entries). Only a company's IT department should consider providing a replacement for Normal.dot, but this has to be part of the company's policy, not something that should be undertaken by a developer.

A template can function as a global Add-in, providing functionality while the user is working in other documents. But a VSTO template cannot be a global Add-in. In this case, you'd need to create a COM Add-in to provide the functionality.






Re: Visual Studio Tools for Office How I Can Add My Custom Template to Normal.dot?

NaamaV

Ho,no!

What 's the meaning of creating COM add-in from my existing project

Does it say I need to write all my project from scratch

How can IT department give permission to replace the Normal.dot.





Re: Visual Studio Tools for Office How I Can Add My Custom Template to Normal.dot?

Cindy Meister

NaamaV wrote:

What 's the meaning of creating COM add-in from my existing project

Does it say I need to write all my project from scratch

How can IT department give permission to replace the Normal.dot.

Since we have no idea what your project is doing, it's not possible to judge how much of your code you could possibly use, or what changes would have to be made. Pretty much everything that manipulates the Word interface and documents probably wouldn't need to be changed. But you might need to alter some of the supporting structures (such as how the functionality is presented/made available to the user).

You can use VSTO 2005 SE to create the Add-in. VSTO 2005 SE is a free download that plugs into Visual Studio 2005. Here's the entry point for information and the download

http://msdn2.microsoft.com/en-us/office/aa905543.aspx






Re: Visual Studio Tools for Office How I Can Add My Custom Template to Normal.dot?

NaamaV

I see.

You didn't answer my last question.

It's important.





Re: Visual Studio Tools for Office How I Can Add My Custom Template to Normal.dot?

Cindy Meister

NaamaV wrote:

I see.

You didn't answer my last question.

It's important.

No one from the outside can possibly give you advice on how to convince your IT department to do something that, according to all MSFT guidelines, it should not do. If you think what you want to do is important enough, then you must convince them. But a VSTO project should NOT run as a Normal.dot template. Period. You must redesign your project.






Re: Visual Studio Tools for Office How I Can Add My Custom Template to Normal.dot?

NaamaV

I want to explain: I'm the manager of the company. and I want to replace the Normal.dot with my template.

I just want to know HOW I can do it.





Re: Visual Studio Tools for Office How I Can Add My Custom Template to Normal.dot?

Cindy Meister

NaamaV wrote:

I want to explain: I'm the manager of the company. and I want to replace the Normal.dot with my template.

I just want to know HOW I can do it.

No guarantees a VSTO template will actually work in this manner. As a matter of fact, they cannot function as global templates so I have grave doubts.

Just search for Normal.dot on your machine (make sure you're searching hidden files and folders). Rename the Normal.dot you find to something like NormalOLD.dot. Name your template Normal.dot and copy it to that location.






Re: Visual Studio Tools for Office How I Can Add My Custom Template to Normal.dot?

NaamaV

I've tried to do it and I got an error: The file does not exist(Normal.dot)

or something like this..





Re: Visual Studio Tools for Office How I Can Add My Custom Template to Normal.dot?

NaamaV

I'll ask another question:

How can I add my template to the list of templates that Word give to the user to choose from

I don't see browse button there.