By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,030 Members | 1,323 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,030 IT Pros & Developers. It's quick & easy.

Launch thread with another user account than main thread

P: n/a
Hi,
Got a windows Service which run under LOCAL SYSTEM account.
Its main goal is to printout xls file to pdf.

It seems that LOCAL SYSTEM account has not enough rights to do that (as
launching the same code in a windows app works great)

Is there a way to launch my Excel.Automation object in another thread
which will use another user account with enoug right to perform the
tasks ?

Thks for help.

Nov 21 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Simply run your service under an account that has the appropriate
permissions.
"Franck" <we**********@gmail.com> wrote in message
news:11**********************@f14g2000cwb.googlegr oups.com...
Hi,
Got a windows Service which run under LOCAL SYSTEM account.
Its main goal is to printout xls file to pdf.

It seems that LOCAL SYSTEM account has not enough rights to do that (as
launching the same code in a windows app works great)

Is there a way to launch my Excel.Automation object in another thread
which will use another user account with enoug right to perform the
tasks ?

Thks for help.

Nov 21 '05 #2

P: n/a
I changed to my user account.
I unregistered/registered the service and it's no longer visible in my
service list! normal ?

Nov 21 '05 #3

P: n/a
"Franck" <we**********@gmail.com> schrieb:
Got a windows Service which run under LOCAL SYSTEM account.
Its main goal is to printout xls file to pdf.

It seems that LOCAL SYSTEM account has not enough rights to do that (as
launching the same code in a windows app works great)

Is there a way to launch my Excel.Automation object in another thread
which will use another user account with enoug right to perform the
tasks ?


<URL:http://groups.google.com/groups?q=dotnet+impersonation>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>
Nov 21 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.