Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Excel Automation with Security Problems

I try to automate Excel in C++ with the following statement
--------------------------
_Application ptrExcelApp
Workbooks ptrWorkbooks
_Workbook ptrWorkbook

ptrExcelApp.CreateDispatch("Excel.Application")
if ( ptrExcelApp.m_lpDispatch == NULL
AfxMessageBox("Excel not installed")

// Use Exce
ptrWorkbooks = ptrExcelApp.GetWorkbooks()
...
ptrExcelApp.Quit()
---------------------

Everything works fine but when I change the default security setting with DCOMCNFG it doesn't work anymore
I change the default access permission and grant the DOMAIN-ADMINS the access right. After that I can't start Excel anymore. Everything works fine again when I remove the right
By the way, the Microsoft CRM Business Solution doesn't work with this security change either. I get an access denied when I try to load the main site via Internet Explorer
Any suggestion

Thanks in advanc
Harr

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
Excel automation in a VB app [email protected] Excel Programming 1 January 12th 04 07:59 PM
Excel Web Automation mccaka Excel Programming 1 October 9th 03 02:18 AM
Problems with SendMail or automation of Send To Douglas Wills Excel Programming 7 October 1st 03 04:45 PM
Chart automation problems! Rob Pollard Excel Programming 1 July 10th 03 12:38 AM


All times are GMT +1. The time now is 08:19 PM.

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

About Us

"It's about Microsoft Excel"