Automation of MS Word

J

Jason James

I all,

I have a VB.Net app that words just fine when automating
MS Word 2003, when Word is part of MS Office Professional
edition (even with SP1 installed). However, if I install the app
onto a machine wunning MS Word 2003 that is part of
MS Office Small Business Edition 2003, it can not load
and run the type library needed to perform the automation
tasks? I get a system.io.filenotfound exception raised,
saying that the specified module can not be found.

Does anyone have any suggestions as to why this doesn't
work with the SBE of MS office 2003, and how I can sort
them out?

Many thanks,

Jason.
 
S

scorpion53061

Something is wrong there. IO is a file namespace for working with files.
Some file that it is trying to find is missing. Check whatever files are
mentioned to see if they are where they are suppose to be.
 
J

Jason James

Thanks for the post. However I don't think that any
files are being loaded at that point in time.

The NEW method in the class is as follows:

Public Sub New()
Try
myWord = New Word.Application
myDoc = New Word.Document
Catch ex As System.IO.FileNotFoundException
MessageBox.Show(ex.Message)
Catch ex As Exception
MessageBox.Show(ex.Message)
End Try
End Sub

At this point no files are being loaded. I assume that it
is trying to load the type library but can't because
it is incompatible, even though it is configured as
as local file and placed into the application folder.

Any other thoughts?

Jason.
 
S

scorpion53061

Hi Jason,

Change the "Catch ex as System.IO.FileNotFoundException" to "Catch ex as
Exception" and do a Debug.Writeline(ex.Tostring) and copy and paste it
here.

Also send the app to (e-mail address removed) (remove no spam).

I would like to see what you are dealing with. If you are correct, we
are doing a lot of Office automation around here and I would like to
know if we are going to encounter similar issues.

Kelly
 
J

Jason L James

Kelly,

thanks for sticking with me on this. I'll get what you ask ed for to
you as soon as I can. Most of our users have full-blown
office 2003, so I need to wait until a SBE office PC is
available to do some testing on. It should be by early
next week.

Regards,

Jason.
 

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