how to write doc in aspx

  • Thread starter Thread starter sincethe2004
  • Start date Start date
S

sincethe2004

By using C# aspx,
I want to start a word document and place some text into a word doc file,
when I call the following statement:

Object ApWord = Server.CreateObject("Word.Application");

there is an UnauthorizedAccessException message comes out,
have no idea how to grant rights for this problem....
 
Either you grant the account that IIS & ASP.NET is using

or

configure the ASP.NET application to impersonate a particular account
with enough permissions on the local machine

or

configure IIS (right click web application->properties->security
tab->anonymous account) to use another account with enough permissions

Trevor Benedict R
MCSD

*** Sent via Devdex http://www.devdex.com ***
Don't just participate in USENET...get rewarded for it!
 
Back
Top