Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / VS Tools for Office / December 2006

Tip: Looking for answers? Try searching our database.

Passing credentials from Word to SharePoint?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Bradley Plett - 18 Dec 2006 19:00 GMT
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.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.