...
This sample uses nested repeat blocks to produce a report very much like the Word Application Product Catalog sample, but with many fewer lines of code. Instead of using many database queries and manually constructing each piece of the report, this sample uses two queries and binds them to a template that builds the entire report.
...