I have a simple requirement that turns suprisingly difficult to achieve in SQL Reporting Services.
My report, should do the following:
- User inputs an integer number, let's call it A
- A label is generated for each number from 1 to A
- all labels are printed on A4 paper (four labels fit into one row, number of rows will be calculated accordingly)
so if user enter number 100, then 100 labels are printed in 25 rows.
For good reasons I need to use SSRS - label contains barcode for which I have a third party component working only in SSRS. I also want to integrate this report nicely with existing system and use all SSRS goodies like paging etc.
How can this be done? Clearly, this report doesn't need any SQL connection or data, but SSRS seems to not let me use Tablix without actual datasource. I have tried to create a dummy dataset in SQL, but I don't know how to create query returning dummy table of given number of rows.
I would be great if there was solution using only VB script embedded in report. At this moment I can only think of creating temporary table and filling it with my data, is there more elegant solution?