Click to See Complete Forum and Search --> : Starting Excel
BrianEKeating
April 18th, 2002, 08:08 PM
Hi there,
I created a windows form application and added a reference to excel com obj ver9
then i called
Excel.Application xl = new Excel.Application();
xl.Visible = true;
and it started excel,
however when i did the same thing on a web form I only get the excel process being created but it is not shown!
any ideas?
I rate, do you?
Arild Fines
April 19th, 2002, 09:45 AM
I dont think the user context under which ASP.NET runs has access to the window station.
The world holds two classes of men -- intelligent men without religion, and religious men without intelligence. Abu'l-Ala-Al-Ma'arri (973-1057; Syrian poet)
BrianEKeating
April 19th, 2002, 10:36 AM
Good suggestion,
how would i give it this privillage?
Thanks
Brian
I rate, do you?
Arild Fines
April 20th, 2002, 09:01 AM
I believe the user used by ASP.NET is configured in the machine.config file(search for it - dont remember offhand where it is). But I am still not sure where you are going with this? Even if you did manage to get it running, it would still only be visible on the server monitor - not very useful to the person viewing the webpage. Or are you trying to get it to show in the browser?
The world holds two classes of men -- intelligent men without religion, and religious men without intelligence. Abu'l-Ala-Al-Ma'arri (973-1057; Syrian poet)
BrianEKeating
April 22nd, 2002, 04:00 AM
You were dead right, i wanted it to start the app on the same machine as the browser, I ended up calling some vbscript to create the com object, don't think there is another way.
thanks
Brian.
(replies rated)
I rate, do you?
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.