简体   繁体   English

如何在tablix单元内的SSRS子报表中添加滚动条?

[英]How to add scrollbar in SSRS Subreports inside tablix cell?

Below is an image of how I wants to show report. 下面是我要如何显示报告的图像。

在此处输入图片说明

Gray area in the image is subreport. 图像中的灰色区域是子报表。 When it returns list of too many employees it applies scrollbar to webpage. 当返回太多员工列表时,它将滚动条应用于网页。 As per requirement page should not scroll but only the list of employees. 根据要求,页面不应滚动,而应仅滚动雇员列表。

Can anyone help how can I make subreport to scroll? 谁能帮助我使子报表滚动?

Unfortunately there is no direct way in SSRS to achieve this. 不幸的是,SSRS中没有直接的方法来实现这一目标。 But after some research this can be done.. 但是经过一些研究,这是可以做到的。

Whenever SSRS report renders on page it converts it into table structure. 每当SSRS报告在页面上呈现时,它都会将其转换为表格结构。 So I was trying to apply css to tablix cell in which my subreport is placed. 因此,我试图将css应用于放置子报表的tablix单元。 I applied tooltip to tablix inside subreport, when it renders tooltip is converted into Title attribute. 我将工具提示应用于子报表中的tablix,当它使工具提示转换为Title属性时。 here you go... find the element with title attribute in jquery already on your page. 在这里,您可以...在页面上的jquery中找到具有title属性的元素。 and then apply the css from jquery. 然后从jQuery应用CSS。

I tried with id property but, ssrs always generates a new random id for elemnts in reports... that did not work but the tooltip or title property in html surely works. 我尝试使用id属性,但是ssrs总是为报表中的元素生成一个新的随机id ...虽然不起作用,但是html中的tooltip或title属性肯定可以工作。

thanks to jquery selectors... 感谢jquery选择器...

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM