BeforePrintEvent doesn't get called
Trying to make an application from code where one object is an PictureObject that gets it's image from an .dll-file.
Can load an image to a generic PictureObject but when I try to set a BeforePrintEvent to a PictureObject that never gets called.
Code:
Dim LogoLeft As New PictureObject
With LogoLeft
.CreateUniqueName()
.Bounds = New RectangleF(0, 0, Units.Millimeters * 30, Units.Millimeters * 30)
.BeforePrintEvent = "LogoLeft_BeforePrint"
End With
data.Objects.Add(LogoLeft)
Public Sub LogoLeft_BeforePrint(ByVal sender As Object, ByVal e As EventArgs)
InsertLogo(report.GetColumnValue("Equipe.OrganizationId"), sender)
End Sub
Can load an image to a generic PictureObject but when I try to set a BeforePrintEvent to a PictureObject that never gets called.
Code:
Dim LogoLeft As New PictureObject
With LogoLeft
.CreateUniqueName()
.Bounds = New RectangleF(0, 0, Units.Millimeters * 30, Units.Millimeters * 30)
.BeforePrintEvent = "LogoLeft_BeforePrint"
End With
data.Objects.Add(LogoLeft)
Public Sub LogoLeft_BeforePrint(ByVal sender As Object, ByVal e As EventArgs)
InsertLogo(report.GetColumnValue("Equipe.OrganizationId"), sender)
End Sub