Re: Word 2003 and DotNet
From: Miha Markic [MVP C#] (miha)
Date: 03/11/04
- Next message: gzj14v: "RE: VS.Net 2003 install hangs"
- Previous message: Peter Rilling: "Re: How do I create an unistall program?"
- In reply to: James J: "Word 2003 and DotNet"
- Next in thread: Robert Jacobson: "Re: Word 2003 and DotNet"
- Reply: Robert Jacobson: "Re: Word 2003 and DotNet"
- Reply: anonymous_at_discussions.microsoft.com: "Re: Word 2003 and DotNet"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 11 Mar 2004 19:42:07 +0100
Hi James,
You could give enough priveleges to asp.net account though I don't recommend
this approach since it is not meant in this way (Word is an interactive
beast).
Rather, I strongly suggest you to take a look at WordML (XML format of
Word2003 documents).
Check this link:
http://msdn.microsoft.com/office/understanding/xmloffice/articles/default.aspx?pull=/library/en-us/dnofftalk/html/odc_office01012004.asp
--
Miha Markic [MVP C#] - RightHand .NET consulting & development
miha at rthand com
www.rthand.com
"James J" <jjohnso9@hotmail.com> wrote in message
news:090E18C0-5B78-4434-820C-D1C5F78029BF@microsoft.com...
> I have developed some reports using VB.Net and Word2003 whereby I create
reports in word programmatically directly in a Word document. Now the user
wants the same capability on the Web. I tried to create a web project that
calls the VB.Net Forms application that develops the reports. I am able to
include the VB.Net app's DLL and create an app object and I can access the
public methods in the object, but when I try to create an object
>
> Dim wdDetails As New Microsoft.Office.Interop.Word.Document
>
> I get a web error message saying, "Access is denied" along with the
following information
>
> Exception Details: System.UnauthorizedAccessException: Access is denied.
>
> 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.
>
> To grant ASP.NET write access to a file, right-click the file in Explorer,
choose "Properties" and select the Security tab. Click "Add" to add the
appropriate user or group. Highlight the ASP.NET account, and check the
boxes for the desired access.
> ---------------------------------
> My question is, How do I give permission to ASP.Net to run Word2003 or is
the .Net web version of Word development excluded by design?
>
> Thanks,
>
> James J.
- Next message: gzj14v: "RE: VS.Net 2003 install hangs"
- Previous message: Peter Rilling: "Re: How do I create an unistall program?"
- In reply to: James J: "Word 2003 and DotNet"
- Next in thread: Robert Jacobson: "Re: Word 2003 and DotNet"
- Reply: Robert Jacobson: "Re: Word 2003 and DotNet"
- Reply: anonymous_at_discussions.microsoft.com: "Re: Word 2003 and DotNet"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|
Loading