Reports can be created without setting data source. DataBand object contains InstanceCount property that sets count of times the object will output its content in the report. Sample of the report without data is located in the WithoutDataExample folder. This sample outputs multiplication table. Report template contains two DataBands. DataBand2 is located inside dataBand1. InstanceCount property of both elements is set to 10. Value property of the textBox1 objects has the following value:
dataBand1.LineNumber.ToString() + " * " + dataBand2.LineNumber.ToString() + " = " + (dataBand1.LineNumber * dataBand2.LineNumber).ToString()
LineNumber property of the DataBand shows the number of the current line. So, we display multiplication table for 1, then for 2 and so on up to 10.