Hi,
Working with Business Object Framewok can be tricky, but when you are working and need to make link to BO, without pass the authentication page on BO, this litle example can help get the token to create directs link to Web Inteligence.
using CrystalDecisions.Enterprise;
String Token;
using (CrystalDecisions.Enterprise.SessionMgr sessionMgr = new CrystalDecisions.Enterprise.SessionMgr())
{
EnterpriseSession enterpriseSession = sessionMgr.Logon("Login", "Password", "BOServer", "secEnterprise");
Token = enterpriseSession.LogonTokenMgr.CreateLogonTokenEx("", 60, 100);
}
No comments:
Post a Comment