Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 15
Default Creating Excel Object in C#

I have written an application in C# which creates an instance of Excel and
populates the excel object with data and then saves that data. When I run
this application under my own ID, it runs just fine. I had the administrator
create a generic sign on, which is such that it can submit jobs on the
machine, but can not actually log on to the machine.

When I use this generic Account in this C# application, I get an access
violation error when I attempt to create an instance of the Excel object. I
suspect that this has something to do with not acutally signing on with this
generic account and bringing up excel so it does what ever it does when a
user first brings up excel.

I went to the Documents and Setting Folder, thinking that Excel must be
creating something under these folders for each user id which logs into
excel. I found a folder under Application Data/Microsoft and found a folder
called "Excel" which was under my ID, but not under the generic. I copied
this folder to the generic account, but it had not effect.

If I am unable to acutally log onto the box with the generic account, how
can I properly set up excel to run?

Thanks in advance for your assistance
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,163
Default Creating Excel Object in C#

Access violation implies that there is a rights issue to access a file, most
likely the Excell object model file which is normally in the Program
Files\Microsoft Office\Office folder. Does the generic login have access
rights to this folder? If not, I suspect that might be the problem.
--
- K Dales


"Jim Heavey" wrote:

I have written an application in C# which creates an instance of Excel and
populates the excel object with data and then saves that data. When I run
this application under my own ID, it runs just fine. I had the administrator
create a generic sign on, which is such that it can submit jobs on the
machine, but can not actually log on to the machine.

When I use this generic Account in this C# application, I get an access
violation error when I attempt to create an instance of the Excel object. I
suspect that this has something to do with not acutally signing on with this
generic account and bringing up excel so it does what ever it does when a
user first brings up excel.

I went to the Documents and Setting Folder, thinking that Excel must be
creating something under these folders for each user id which logs into
excel. I found a folder under Application Data/Microsoft and found a folder
called "Excel" which was under my ID, but not under the generic. I copied
this folder to the generic account, but it had not effect.

If I am unable to acutally log onto the box with the generic account, how
can I properly set up excel to run?

Thanks in advance for your assistance

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating Excel Object From C# Jim Heavey Excel Discussion (Misc queries) 0 January 17th 06 03:02 PM
Creating a picture/object David Rivera Excel Discussion (Misc queries) 1 July 16th 05 12:35 AM
Creating an Object on a Multipage Michael[_35_] Excel Programming 0 December 14th 04 11:33 PM
Creating Com object for excel using vb.net pxiong[_2_] Excel Programming 1 July 7th 04 05:52 PM
Creating a Range object in .Net Gary[_14_] Excel Programming 0 January 6th 04 10:46 PM


All times are GMT +1. The time now is 11:07 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"