开发者

Crystal Reports Server 2008 - How do you create a APS Logon Token programmatically in .Net

Could some one guide me to create a APS logon token in .Net programmati开发者_运维百科cally? I need to use this token for URL reporting....


Public Shared Function Authenticate (account As String, password As String, serverName As String, authenticationType As String) As String

  Dim sessionManager As New SessionMgr
  Dim enterpriseSession As EnterpriseSession

  Try

    enterpriseSession = sessionManager.Logon(account, password, serverName, authenticationType)

    'any client computer, 120 minutes, 1000 logons
    Return enterpriseSession.LogonTokenMgr.CreateLogonTokenEx("", 120, 1000)

  Catch ex As Exception
    Throw ex

  End Try


End Function
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜