Aspose.Words Remove Duplicates LINQ Reporting Engine Syntax

Hey,

I have LINQ Reporting template where I have values coming in and I read them using foreach-tag. They also have ratename-value. My question is, if I have identical values with identical ratenames, how can I merge/render only 1 of that identical group, so that duplicates won’t render? Now if I have 5 values coming in and 3 of them are identical, all 5 are rendered. In that example case I want only 3 values to render (2 different values and 1 value which is the identical ones). You can find example document attached here. testTemplate_v1.docx (12.7 KB)

Thank you in advance!

@Suikero

If I understand you correctly, you mean merging of cells with equal values in a table. In this case, please check Merging Table Cells Dynamically for information on how to achieve this.

Please also note that when used in a table, a closing foreach tag should be located in the last table column, which is not the case for the template you provided. See Working with Table-Row Data Bands for more information.

If my understanding is not correct, please share more details on your requirement, for example, a desired output document.

Hey,

You understood correctly. I want to merge cells with equal values in a table. I was wondering if you would have syntax example related to my example document.

For example, merging based on the xml.pricings.pricing and another example of merging by ratename.

Thank you!

@Suikero

Please check testTemplate_v1_modified.docx (12.8 KB).