multiple background images per page

Originally Posted 8 September 2017, 7:28 am EST

  • Originally Posted 8 September 2017, 7:28 am EST

    For 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)
    End Sub

    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?
Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels