I'm building an application that uses Word. One of the first things
it does is create a new document based on a template that is stored on
a secure SharePoint site. The problem I'm running into is passing
credentials on to the site. I haven't explored this very thoroughly,
but I think if the user has IE set to allow pass-through, then my
application works fine. However, if that is not the case, credentials
don't get passed, and there is no mechanism of getting those
credentials.
Is it possible to pass the credentials along? If so, how? A little
extra information: the application runs as a Windows service, and has
no UI. So, the way I see it, I have two options: pass the
credentials of the account being used to run the service, or get the
credentials from a config file. I'd be happy if I could get either
one of those working. Thoughts?
Thanks!
Brad.
Bradley Plett - 18 Dec 2006 19:26 GMT
P.S. The statement that needs to send credentials looks like this in
VB:
Dim objWordDoc As Word.Document =
objWordApp.Documents.Add(Template:=strTemplateName)
Brad.
>I'm building an application that uses Word. One of the first things
>it does is create a new document based on a template that is stored on
[quoted text clipped - 14 lines]
>Thanks!
>Brad.