cancel
Showing results for 
Search instead for 
Did you mean: 

Microsoft Office Excel has encountered a problem and needs to close

Former Member
0 Kudos

Hi,

I am executing the following code in an excel application and while closing excel I am getting the error

'Microsoft Office Excel has encountered a problem and needs to close'.

EnterpriseSession boEnterpriseSession;

ReportEngines boReportEngines ;

IReportEngine boIReportEngine;

CrystalDecisions.Enterprise.SessionMgr loginSessionManager = new CrystalDecisions.Enterprise.SessionMgr();

CrystalDecisions.Enterprise.EnterpriseSession boEnterpriseSession = loginSessionManager.Logon("userName", "password", "cms", "authentication");

int iMinuteNumber = 1;

int iLogonNumber = -1;

string strToken = boEnterpriseSession.LogonTokenMgr.CreateWCAToken("", iMinuteNumber, iLogonNumber);

boReportEngines = new ReportEngines(strToken);

boIReportEngine = (IReportEngine)Session.boReportEngines.getService(ReportEngineType.WI_ReportEngine);

The exception that is displayed while debugging is 'BusinessObjects.ThirdParty.OOC.OB.AssertionFailed'.

Thanks,

Divya

Edited by: dpanicker on Jun 23, 2010 6:47 AM

Edited by: dpanicker on Jun 23, 2010 7:26 AM

Accepted Solutions (0)

Answers (1)

Answers (1)

Adam_Stone
Active Contributor
0 Kudos

I'm curious how you are running this code within excel as I would expect you would've had to write a dll to expose the SDK as COM in order to be able to access it from an excel document.