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 / November 2006

Tip: Looking for answers? Try searching our database.

Reading formfields without automation

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Koen - 31 Oct 2006 16:12 GMT
Is it possible to read data from word formfields without using automation?
Is there an alternative (free) library to use?
Tony Jollans - 31 Oct 2006 16:36 GMT
I'm really not sure what you're asking.

There is only one tool with which to read data from Word formfields, and
that is Word itself. The format is proprietary and undocumented so any other
solution is, at best, guessing. If you have Word the 'library' is free with
it. If you don't have Word, you can't guarantee to read the formfields at
any price.

As for automation, that generally means that the Word application is
controlled from code in another application rather than by a user. Whether
you choose to automate a process depends on many factors but it is
ultimately your choice - as already stated you still need Word.

--
Enjoy,
Tony

> Is it possible to read data from word formfields without using automation?
> Is there an alternative (free) library to use?
Koen - 31 Oct 2006 17:01 GMT
What I basically wanna do:
- Users upload a word doc in my asp.net website
- The formfields are read by the server application and the data is sent to DB

I also know only one manner to "process" the word form: with word automation

My concern is not really about pricing but the fact that word automation may
crash, stay open, slow other processes down, mess up the servers'
availability,...

I've done a lot of word processing with automation (VB6 and .NET interop) in
the past (with really advanced mechanism to quit word whenever something
would go wrong) and for all I know, I never got it 100% right. I don't want
to access the server on remoted desktop after ten days and find 200 word
instances running in the background if you know what I mean...

I also can't delegate the word processing to another sever in this case...

Thanks

> I'm really not sure what you're asking.
>
[quoted text clipped - 15 lines]
> > Is it possible to read data from word formfields without using automation?
> > Is there an alternative (free) library to use?
Tony Jollans - 01 Nov 2006 11:46 GMT
Hi Koen,

I appreciate your concerns but there really isn't any guaranteed way besides
using Word. Rather than creating a Word Application object you could, as a
matter of routine, first try attaching (GetObject) to an existing one - that
way you at least wouldn't exacerbate any problem. You might even find it
worthwhile to deliberately keep a single instance of Word running and to
always use that rather than ever creating a new one.

If you try to process the Word binary yourself you are completely on your
own. I have looked at them and have a rough idea how they're organised but
nowhere near enough knowledge to even begin to put together a reliable
process.

--
Enjoy,
Tony

> What I basically wanna do:
> - Users upload a word doc in my asp.net website
[quoted text clipped - 44 lines]
>> > automation?
>> > Is there an alternative (free) library to use?

Rate this thread:






 
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.