Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / July 2005

Tip: Looking for answers? Try searching our database.

Filling In Word 2000 Form Fields Using .NET...

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
jsrichmeier@cox.net - 21 Jul 2005 16:39 GMT
Does anyone have any sample code concerning how to fill in form fields
in a Word 2000 document using .NET?
Howard Kaikow - 21 Jul 2005 23:21 GMT
the issue is the version of Word, not the version of  the document.
which word version are you using and which version of .net and which .net
language are you using?

Signature

http://www.standards.com/; See Howard Kaikow's web site.

> Does anyone have any sample code concerning how to fill in form fields
> in a Word 2000 document using .NET?
jsrichmeier@cox.net - 22 Jul 2005 16:01 GMT
I am using the following:

Word 2000
.NET 1.1 (Visual Studio 2003)
C#

I actually figured out how to modify the form fields using .NET code
shortly after posting the original question.

The new wrinkle is that after I execute the following statements at the
end of the code:

wordApplication.Quit(...); // wordApplication is of type
Word.ApplicationClass
Marshal.ReleaseComObject(wordApplication);
wordApplication = null;

The process WINWORD.exe (occasionally, and more often than not) stays
resident in memory and consumes 100% of the processor.  The only way I
can recover from this is to manually kill the process through Task
Manager.  I am not sure what is causing this.
Howard Kaikow - 24 Jul 2005 23:48 GMT
> I am using the following:
>
[quoted text clipped - 17 lines]
> can recover from this is to manually kill the process through Task
> Manager.  I am not sure what is causing this.

Although it is possible to use .NET code with Office 97 and later, only
Office 2003 and Office XP have official PIAs  from MSFT.

Since you are using C#, you should get a copy of AndrewWhitehall's book on
C# with Office.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.