报告服务 +下拉列表长度 +不同的用户权限

发布于 2024-09-28 09:41:42 字数 529 浏览 2 评论 0原文

我有一些报告以及该报告中的大量参数。参数之一包含存储在下拉列表中的值(从数据库下载)。我想为报告中的特定下拉列表设置自定义宽度,因此我通过在位于以下位置的 Report.aspx 文件中添加以下代码来实现:C:\Program Files\Microsoft SQL Server\MSSQL.XX\Reporting Services\ ReportManager\Pages:

<style type="text/css">
#ctl140_txtValue
{
width:350px;
}
</style>

当我以管理员身份在 Reporting Services 中运行报表时,效果很好。但是,当我尝试以普通用户身份运行报告时,下拉列表具有正常宽度(未更改为 350px)。有人可以帮助我吗?

问题已找到并解决! 我发现,当普通用户(无管理)权限打开报告服务报告时,生成器的控件较少,并且 ID 为 ctl140_txtValue 的控件实际上具有以下 id ctl139_txtValue

I have some report and plenty of parameters inside that report. One of parameter contains values stored inside dropdown list (that are downloaded from db). I wanted to set the custom width for a specific drop down list in my report so I do it by adding the following code in Report.aspx file located in: C:\Program Files\Microsoft SQL Server\MSSQL.XX\Reporting Services\ReportManager\Pages:

<style type="text/css">
#ctl140_txtValue
{
width:350px;
}
</style>

and this works fine when I run my report in Reporting Services as administrator. But however when I attempt to run report as a normal user then the drop down list has a normal width (not changed to be 350px). Can someone please help me.

PROBLEM HAS BEEN FOUND AND FIXED!
I figured out that when normal user (without administrative) rights opened reporting services report, then less controls were generator and control with id ctl140_txtValue has in fact the following id ctl139_txtValue

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

那请放手 2024-10-05 09:41:42

问题已找到并解决!
我发现,当普通用户(无管理)权限打开报告服务报告时,生成器的控件较少,并且 ID 为 ctl140_txtValue 的控件实际上具有以下 id ctl139_txtValue

PROBLEM HAS BEEN FOUND AND FIXED!
I figured out that when normal user (without administrative) rights opened reporting services report, then less controls were generator and control with id ctl140_txtValue has in fact the following id ctl139_txtValue

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文