Thursday, March 29, 2012

Opening office template file

Hi all,
I developped an Intranet application and some users report the same 'bug'. With FF, there's no problem, but with IE .. well.

The situation is: Office template file (like *.dot, *.xlt, etc) are available on the Intranet. When one template is opened with FF, the execution is correct (instead of opening the a *.dot directly, it opens an empty *.doc file based on the template), but with IE it opens the *.dot file. I don't want this.

Anyone know how to solve this problem ? Is there a special configuration I have to do in the Microsoft's browser or maybe a command line that I can use ?

I found the command line: "C:\Program Files\Microsoft Office\Office\Winword.exe" /t"c:\program files\microsoft office\templates\1033\contemporary fax.dot" that open a dot file in a doc file, but I don't even know if I can execute that kind of command lines on the client PC.

Thanks for your help, Francois

Take a look at The Code Project page:http://www.codeproject.com/aspnet/wordapplication.asp

About half way down the page he goes into using templates. I've not tried the code but it looks right.

Grayson

0 comments:

Post a Comment