Crystal Reports Server 2008-如何在.Net中以编程方式创建APS登录令牌 [英] Crystal Reports Server 2008 - How do you create a APS Logon Token programmatically in .Net

查看:110
本文介绍了Crystal Reports Server 2008-如何在.Net中以编程方式创建APS登录令牌的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人可以指导我以编程方式在.Net中创建APS登录令牌吗?我需要将此令牌用于URL报告....

Could some one guide me to create a APS logon token in .Net programmatically? 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

这篇关于Crystal Reports Server 2008-如何在.Net中以编程方式创建APS登录令牌的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆