The idea is to use Linq reporting to create invoices.
Each invoice starts on a new page.
The invoice is kind of a master detail form and it may span across multiple pages.
Something like this:
<<foreach [i in ds.invoices]>> Number: <<[i.number]>> Account: <<[i.account]>> [invoice body including table with line items] <</foreach>>
Since a single invoice may span across multiple pages the word template has different header and footer for the first page. It also has page number in the footer.
You are probably already guessing what is happening.
If the data set has a single invoice it is fine. If it has multiple invoices then the page number will be sequential and the “first page” header will be literally in the first page of the document containing all the invoices.
So the question is: is there a way to reset it on each record (header, footer and page number)? Or maybe create each document individually and some how merge them together since at the end all i need is actually a single pdf document as the output?