RDLC:显示具有多个固定列和可变行的列表
我正在 VS 2010 中使用 RDLC(Winforms 版本)开发一份报告。报告的一部分列出了一系列图像(带有文本标题)。图像列表的长度可变。我想通过在图像列表中每“行”显示两个图像来节省报告上的空间。
例如,如果图像数量为2,我将显示:
AB
如果有 3 张图片:
A B
C
如果有 5 张图像:
AB
光盘
E
...等等。
我看过这个(http://blogs.msdn.com/b/chrishays/archive/2004/07/23/horizontaltables.aspx)博客,但它是针对固定行数的,这在本例中不适用。我希望列表增长,首先从左到右,但每两个图像的行数增加(如上所示)。
有什么办法可以用 RDLC 来实现这一点吗?
I am developing a report using RDLC (Winforms version) in VS 2010. Part of the report is listing a series of images (with text captions). The list of images is of variable length. I would like to conserve real-estate on the report by displaying two images per "row" in the list of images.
For example, if the number of images is 2, I would display:
A B
If there are 3 images:
A B
C
If there are 5 images:
A B
C D
E
... and so on.
I have seen this (http://blogs.msdn.com/b/chrishays/archive/2004/07/23/horizontaltables.aspx) blog, but it is for a fixed number of rows, which does not apply in this case. I want the list to grow, first left-to-right, but increasing in rows for every two images (as shown above).
Is there any way to accomplish this with RDLC?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
找到了一个可以回答我自己的问题的黑客。基本上,您可以根据需要创建尽可能多的垂直列表(在我的例子中:2),然后为每个列表设置条件可见性,以便它们仅显示查询中项目的子集。
看看这个帖子:http://forums.asp.net/t/1373432.aspx
Found a hack that answers my own question. Basically, you create as many vertical lists as you need columns (in my case: 2) and then set conditional visibility for each list so that they only show a subset of the items in their query.
Look at this thread: http://forums.asp.net/t/1373432.aspx