I am trying to follow an example and set the report background image via a report parameter. I have set the Style.BackgroundImage.ImageData to = GetPageBackgroundImage(Parameters.MangedByPartnerId.Value).
When I run the report I get the error:
An error has occurred while processing Report 'Invoice'. The expresssion contains undefined function call GetPageBackgroundImage()
If I hard code a 1 or 0 in the binding call it works, it only breaks when I attempt to reference the report parameter.
When I run the report I get the error:
An error has occurred while processing Report 'Invoice'. The expresssion contains undefined function call GetPageBackgroundImage()
If I hard code a 1 or 0 in the binding call it works, it only breaks when I attempt to reference the report parameter.
Public
Shared
Function
GetPageBackgroundImage(managedByPartnerId
As
Integer
)
If
managedByPartnerId = 1
Then
Return
Bitmap.FromFile(
"P:\Billing Systems\BESTPASS AM\Invoice Templates\Current\DW Page Invoice.png"
)
Else
Return
Bitmap.FromFile(
"P:\Billing Systems\BESTPASS AM\Invoice Templates\Current\Page Invoice.png"
)
End
If
End
Function