I'm working on code to be able to create Excel workbooks from .net. I am using C3. I have included the Excel reference, and have the following code (to begin with):
Excel.Application oXL;
Excel._Workbook oWB;
Excel._Worksheet oSheet;
Excel.Range oRng;
try
{
//Start Excel and get Application object.
oXL =
new Excel.Application();
At the last line, I am getting an exception with the message 'Access Denied'. Any ideas of what I could be doing wrong??
jgallag
Member
106 Points
23 Posts
C#, Excel, Access Denied
Jul 17, 2006 02:08 PM|LINK
I'm working on code to be able to create Excel workbooks from .net. I am using C3. I have included the Excel reference, and have the following code (to begin with):
Excel.Application oXL;
Excel._Workbook oWB;
Excel._Worksheet oSheet;
Excel.Range oRng;
try{
//Start Excel and get Application object.oXL =
new Excel.Application();At the last line, I am getting an exception with the message 'Access Denied'. Any ideas of what I could be doing wrong??
Thanks --