使用.rdlc和Report Viewer在运行时传递登录用户ID。 [英] Passing Log In user id at run time using .rdlc and Report Viewer.

查看:107
本文介绍了使用.rdlc和Report Viewer在运行时传递登录用户ID。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好...大家... ...
我必须在Visual Studio 2005上使用.rdlc从Oracle数据库生成报告。所有数据都将从数据库View中提取。在rdlc文件中,我设置了报表布局并使用数据集分配了字段。
数据集中的每一列都分配给rdlc文件上的相应文本框。
运行时,从数据库中正确生成报告。

但是,rdlc文件中有一个文本框,我需要在运行时设置登录用户ID。 br />在运行时,它将显示用户名的日志。我将使用Session("UserID")获取登录用户ID。但是,我不知道如何在页面的特定位置传递它。我在visual studio 2005上使用vb.net,oracle 11g。我是这个报表查看器的新手。我正在使用当地报道。

有谁可以帮我这个?谢谢。来自

Hello...everyone...


I have to generate report from the Oracle database using .rdlc on Visual Studio 2005. All data will be extracted from database View. In the rdlc file, I have set the report layout and assigned the fields by using the dataset.
Each column in dataset is assigned to a respective textbox on the rdlc file.
When it runs, the report is correctly generated from the database.

However, there is one textbox in the rdlc file where I need to set the Log In User ID at run time.
At run time, it will show the log in User's name. I'll get the log in user id with Session("UserID"). However, I have no idea on how to pass this on the specific place of the page. I'm using vb.net, oracle 11g on visual studio 2005. I'm new to this report viewer. I'm using local report.

Can anyone help me on this? Thank you.



推荐答案


创建一个参数让我们说USERID并使用此参数绑定报告的文本框。
  Create one parameter let say USERID and bind the report's textbox with this parameter.


这篇关于使用.rdlc和Report Viewer在运行时传递登录用户ID。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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