Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Microsoft Office Excel has encountered a problem and needs to close

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

Former Member
Not what you were looking for? View more on this topic or Ask a question