PC Review


Reply
Thread Tools Rate Thread

C# Word Template question

 
 
Jason Huang
Guest
Posts: n/a
 
      27th Jul 2006
Hi,

In my C# Windows Form project, if I use the "C:\\MyWordTemplate.dot" on my
Documents.Add, this will ge wrong.
But if I use the "C:\\Program Files\\Microsoft
Office\\Templates\\normal.dot", it is fine.
I have MyWordTemplate.dot under C:\, and I can open it from MicroSoft Word
with no problems.
Would someone tell me what should do in my C# code?
Thanks for help.


Jason


 
Reply With Quote
 
 
 
 
James
Guest
Posts: n/a
 
      27th Jul 2006
hi,
You should use the Primary Interop Assembly (PIA) for word.

James Jenkins
http://www.tamarsolutions.co.uk

"Jason Huang" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi,
>
> In my C# Windows Form project, if I use the "C:\\MyWordTemplate.dot" on my
> Documents.Add, this will ge wrong.
> But if I use the "C:\\Program Files\\Microsoft
> Office\\Templates\\normal.dot", it is fine.
> I have MyWordTemplate.dot under C:\, and I can open it from MicroSoft Word
> with no problems.
> Would someone tell me what should do in my C# code?
> Thanks for help.
>
>
> Jason
>



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Question on Calendar Template for Word Meenie Microsoft Word Document Management 1 23rd Apr 2008 01:25 PM
Word 2007 - Template Question =?Utf-8?B?RXJpa2E=?= Microsoft Word Document Management 7 26th Sep 2007 09:59 PM
word template question =?Utf-8?B?Ti5OZWxsaXM=?= Microsoft Word Document Management 2 7th Jul 2007 05:42 AM
Word Template Changes Question =?Utf-8?B?R2VvcmdlIExlZQ==?= Microsoft Word Document Management 1 7th Feb 2007 09:27 PM
Document Template Question in Word 2003 =?Utf-8?B?TWFyaWx5bg==?= Microsoft Word Document Management 2 3rd Feb 2007 12:22 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:59 PM.