Originally Posted 8 September 2017, 7:28 am ESTFor a c1printDocument, we want to add multiple images and text on each page. These images (e.g. a barcode) and texts differ for each page.
The obvious way to do this would be the PageAdded or PageConfigure events:
Private Sub doc_PageAdded(sender As C1PrintDocument, e As PageEventArgs) Handles doc.PageAdded
Dim db As New C1Preview.RenderText
db.Text = \\\"Page: \\\" & somefunction(doc.CurrentPage.Index)
db.Style.BackColor = Color.Red
doc.RenderDirect(10, 0, db)
This would appear to work well. However, if the document contains a table that spans multiple pages, it fails.
The PageAdded event fires on each page, but in above code the RenderObject is printed only on the first page of the table
Is there another way to do this?