How to prevent normal.dot from getting changed?

H

Haripraghash

Hi,

My program is as follows

private Microsoft.Office.Interop.Word.ApplicationClass wd = private
Microsoft.Office.Interop.Word.ApplicationClass wd = null;

for(int i = 0; i < counter;i++)
{
try
{
document.CommandBars.Enabled = false;
//wd.ActiveWindow.Application.CommandBars.Enabled=false;
}
catch
{

}
}

When i do this my normal.dot is getting affected. So when i open a new
document outside this program all the commandbars are disabled. How can i
prevent that? I tried doing document.set_Template and adding a different
template. Still its not working

I am using office 2003 PIA
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top