您可以在组内创建静态行,并在组内显示First
特定列的值。在这些行上,您必须进行一些创造性的单元格合并以获得您建议的布局。
假设您从表格布局开始:
+--------+------------+----------------------+----------------------+---------------+
| ID | Product | Invoice Number | Card Holder | Card Number |
+--------+------------+----------------------+----------------------+---------------+
| [id] | [Product] | [InvoiceNr] | [CardHolderName] | [CardNr] |
+--------+------------+----------------------+----------------------+---------------+
您可以在组标题中创建一些静态行,并合并单元格:
+---------------------+-------------------------------------------------------------+
| Card Holder: | =First(Fields!CardHolder.Value, "CardHolderGroup") |
+---------------------+-------------------------------------------------------------+
| Card Number: | =First(Fields!CardNr.Value, "CardHolderGroup") |
+---------------------+-------------------------------------------------------------+
| Sale date: | =First(Fields!SaleDate.Value, "CardHolderGroup") |
+---------------------+-------------------------------------------------------------+
| Ticket number: | =First(Fields!TicketNr.Value, "CardHolderGroup") |
+---------------------+-------------------------------------------------------------+
| ID | Product | Invoice Number | Card Holder | Card Number |
+--------+------------+----------------------+----------------------+---------------+
| [id] | [Product] | [InvoiceNr] | [CardHolderName] | [CardNr] |
+--------+------------+----------------------+----------------------+---------------+
我不确定我是否 100% 回答了你的问题,因为我不完全确定你对页面最后一点的意思。一旦你得到了你的表结构,我建议你查看 MSDN 页面上重复行组标题的页面。