[英]Creating nested tablix in rdlc report
I believe there will be a relatively simple solution for this, however I am yet to find it. 我相信将会有一个相对简单的解决方案,但是我还没有找到它。
I am creating a simple rdlc report in a visual studio 2012 windows forms application, adding a dataset and dragging and dropping these fields into my tablix. 我正在Visual Studio 2012 Windows窗体应用程序中创建一个简单的rdlc报表,添加数据集并将这些字段拖放到我的tablix中。 All this worked fine, however I now want to add a tablix inside one of my row fields. 所有这些工作都很好,但是现在我想在我的一个行字段中添加一个tablix。 I want it to look like the image below, and I want to do it fairly painlessly through the designer. 我希望它看起来像下面的图片,并且我想通过设计人员毫不费力地完成它。
Above is an exmaple of the table I am trying to create, with all contained fields in the same row of the same dataset with the Date, Start, and End fields being the problem area's I cannot create. 上面是我要创建的表的示例,所有包含的字段位于同一数据集的同一行中,而Date,Start和End字段是我无法创建的问题区域。
I have tried to create these, however I get the error 我尝试创建这些,但是出现错误
The tablix 'Tablix1' has a detail member with inner members. Tablix'Tablix1'具有带内部成员的局部成员。 Detail members can only contain static inner members. 明细成员只能包含静态内部成员。
After this I deleted some groups, and it compiled, however it then only showed the first line of data from the datatset. 在此之后,我删除了一些组,并进行了编译,但是随后只显示了数据集中的第一行数据。
I also wondered whether there may be a way to move the tablix headers from rows to columns, so the headers go down the left instead of across the top, but I cannot seem to find a way to do this either. 我还想知道是否可以将Tablix标题从行移动到列,因此标题从左向下而不是从顶部向下移动,但是我似乎也找不到任何方法。
I am fairly new to this so any help is much appreciated. 我对此很陌生,因此非常感谢您的帮助。
Thanks. 谢谢。
Nested Tablix opérate strictly on same dataset, join tables. 嵌套的Tablix严格在相同的数据集和联接表上进行操作。
Refer to a good explanation https://msdn.microsoft.com/en-us/library/dd207033.aspx 参考一个很好的解释https://msdn.microsoft.com/en-us/library/dd207033.aspx
In my opinion, instead of creating the nested table which will have alignment issues and improper final look, it is better to use the Rows of the table itself by adjusting the border color of each cell. 在我看来,与其创建嵌套表会出现对齐问题和不正确的最终外观,不如通过调整每个单元格的边框颜色来使用表本身的行。
I had tried it and final outcome was as expected, it looked like I have used nested table. 我尝试过,最终结果如预期的那样,好像我使用了嵌套表。
For example, I want the design as per ExampleImage 例如,我要按照ExampleImage设计
To achieve this: 为达到这个:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.