报告服务 +下拉列表长度 +不同的用户权限
我有一些报告以及该报告中的大量参数。参数之一包含存储在下拉列表中的值(从数据库下载)。我想为报告中的特定下拉列表设置自定义宽度,因此我通过在位于以下位置的 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
问题已找到并解决!
我发现,当普通用户(无管理)权限打开报告服务报告时,生成器的控件较少,并且 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