G
Guest
I have a VB.Net program in which I would like to call MS-Word to open a
template. I followed the instructions here
http://support.microsoft.com/default.aspx?scid=kb;en-us;316383 but am
encountering a few problems.
#1) My 'Imports' statement only allows Microsoft.Office.Core, and not
"Microsoft.Office.Interop.Word", as shown in the example.
#2) When executing my solution, the following error is generated:
ASP.NET is not authorized to access the requested resource. Consider
granting access rights to the resource to the ASP.NET request identity.
ASP.NET has a base process identity (typically {MACHINE}\ASPNET on IIS 5 or
Network Service on IIS 6) that is used if the application is not
impersonating. If the application is impersonating via <identity
impersonate="true"/>, the identity will be the anonymous user (typically
IUSR_MACHINENAME) or the authenticated request user.
The program errors on the statement: Private WordApp As New
Word.ApplicationClass
Can anyone shed any light to the problem? I have imported the Word 10.0 COM
object into my references.
template. I followed the instructions here
http://support.microsoft.com/default.aspx?scid=kb;en-us;316383 but am
encountering a few problems.
#1) My 'Imports' statement only allows Microsoft.Office.Core, and not
"Microsoft.Office.Interop.Word", as shown in the example.
#2) When executing my solution, the following error is generated:
ASP.NET is not authorized to access the requested resource. Consider
granting access rights to the resource to the ASP.NET request identity.
ASP.NET has a base process identity (typically {MACHINE}\ASPNET on IIS 5 or
Network Service on IIS 6) that is used if the application is not
impersonating. If the application is impersonating via <identity
impersonate="true"/>, the identity will be the anonymous user (typically
IUSR_MACHINENAME) or the authenticated request user.
The program errors on the statement: Private WordApp As New
Word.ApplicationClass
Can anyone shed any light to the problem? I have imported the Word 10.0 COM
object into my references.