By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,534 Members | 910 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,534 IT Pros & Developers. It's quick & easy.

Automation of MS Word

P: n/a
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.
Nov 21 '05 #1
Share this Question
Share on Google+
5 Replies


P: n/a

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.

"Jason James" <ja***@dive-master.org> wrote in message
news:43***************@news.demon.co.uk:
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.


Nov 21 '05 #2

P: n/a
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.

On Fri, 30 Sep 2005 10:09:57 +0000, "scorpion53061"
<sc************@nospamhereyahoo.com> wrote:

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.

"Jason James" <ja***@dive-master.org> wrote in message
news:43***************@news.demon.co.uk:
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.


Nov 21 '05 #3

P: n/a
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 sc************@nospamyahoo.com (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

"Jason James" <ja***@dive-master.org> wrote in message
news:43***************@news.demon.co.uk:
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.

On Fri, 30 Sep 2005 10:09:57 +0000, "scorpion53061"
<sc************@nospamhereyahoo.com> wrote:

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.

"Jason James" <ja***@dive-master.org> wrote in message
news:43***************@news.demon.co.uk:
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.


Nov 21 '05 #4

P: n/a
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.

On Fri, 30 Sep 2005 14:27:49 +0000, "scorpion53061"
<sc************@nospamhereyahoo.com> wrote:
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 sc************@nospamyahoo.com (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

"Jason James" <ja***@dive-master.org> wrote in message
news:43***************@news.demon.co.uk:
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.

On Fri, 30 Sep 2005 10:09:57 +0000, "scorpion53061"
<sc************@nospamhereyahoo.com> wrote:
>
>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.
>
>"Jason James" <ja***@dive-master.org> wrote in message
>news:43***************@news.demon.co.uk:
>
>> 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.
>


Nov 21 '05 #5

P: n/a


No problem. Otherwise you can just zip the project up and email to me.

"Jason L James" <ja***@nospam.divemaster.org> wrote in message
news:cp********************************@4ax.com:
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.

On Fri, 30 Sep 2005 14:27:49 +0000, "scorpion53061"
<sc************@nospamhereyahoo.com> wrote:
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 sc************@nospamyahoo.com (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

"Jason James" <ja***@dive-master.org> wrote in message
news:43***************@news.demon.co.uk:
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.

On Fri, 30 Sep 2005 10:09:57 +0000, "scorpion53061"
<sc************@nospamhereyahoo.com> wrote:

>
>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.
>
>"Jason James" <ja***@dive-master.org> wrote in message
>news:43***************@news.demon.co.uk:
>
>> 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.
>


Nov 21 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.