的Crystal Reports Server 2008 - 你如何在.net编程创建APS登录令牌
-
22-09-2019 - |
题
可能有人指导我创建一个APS登录令牌在.net编程?我需要使用此令牌的URL报表....
解决方案
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
不隶属于 StackOverflow