on 06-23-2010 5:45 AM
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.