How to create gallery style layout with LINQ Report Engine syntax

Hi, we have a requirement where the user expects a gallery-style layout. Please check the attachment. Could you please guide us on whether this is feasible to achieve with the LINQ report engine ? Thanks
Gallery.zip (279.8 KB)

@pgcentric

This can be achieved by taking the following steps:

  1. Create a table with one row and the number of columns equal to the required number of items per row (namely, 3 columns as per your expected PNG file)

  2. Create a table-row data band for this table by using opening and closing foreach tags

  3. For each of the cells, add a textbox with an inline layout and put the same image tag into the textbox

  4. Within all but the first cells in the row, add a next tag before a textbox or within a textbox before an image tag simply like this: <<next>>

See Forcing Movement to Next Item within Data Band for more information.

Thanks, this worked! I have some follow-up questions. We are currently testing different combinations involving the next tag — for example, using it within an if condition — for our internal documentation. The if condition seems to work correctly, as it generates expected output without any errors.

However, we’re unsure about the correct syntax or approach for using the next tag with else or elseif. Could you please guide us on how to implement this properly?

next-tag.docx (34.8 KB)

@pgcentric

next tags are intended to be used for switching to the next collection item, if any, within a data band. A next tag can be used whenever such a switch is needed. A next tag always affects the innermost data band and can be put between other tags such as if/elseif/else using the same syntax: <<next>>. For example, in the provided template, a next tag can be put in the second and third cells before expression tags.