Windows Develop Bookmark and Share   
 index > Windows Forms General > Identity permission in winform app
 

Identity permission in winform app

I have a winform application, which needs to open some word documents located on network drive.  As this application is going to be deployed to desktop via one-click, to minimize the issues with accessing resources and also to accomodate client's request, it needs to use a service account (other than the loggedin user) to access the documents.

I am thinking to open the document in a broswer window to take advantage the word file extension (so to minimize coding).  But I am not sure how to pass the identity to the browser that is opened by the form.  Or is that a better way to do this?
Xuefeng Cao  Wednesday, September 14, 2005 2:40 PM
Hi Xuefeng,

Take a look at the Process and ProcessStartInfo classes in the System.Diagnostics namespace. You can use the UserName and Password properties on the ProcessStartInfo class to impersonate a given user.

-Paul
Paul Laudeman  Wednesday, September 14, 2005 9:14 PM
Hi Xuefeng,

Take a look at the Process and ProcessStartInfo classes in the System.Diagnostics namespace. You can use the UserName and Password properties on the ProcessStartInfo class to impersonate a given user.

-Paul
Paul Laudeman  Wednesday, September 14, 2005 9:14 PM

You can use google to search for other answers

Custom Search

More Threads

• From what method raised the event?
• How do I convert a double to an integer without rounding?
• A bit more on drawing 32 bit images in greyscale and color with full support for transparency
• form code help please.
• Single Instance MDI Application with multiple MDI Child Not Working
• How to design one general event handler for too many buttons on one tab page?
• how do i make the datetimepicker to look in the same day .txt file?
• Merging Word documents into one document...
• Non Modal Form and Modal Dialog Form
• Desktop app with database