Skip to Content
avatar image
Former Member

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Aug 02, 2010 at 09:47 PM

    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.

    Add comment
    10|10000 characters needed characters exceeded