November 24, 2016 at 1:21 pm
For unchangeable reasons, I have a need to call an image from the database onto a report (on a hidden line), and then call that image by VB code to another part of the report. Pulling in the image from the database works just fine, but calling the image via the VB code is the issue.
VB is not my skillset and someone provided me with the following which I've deployed to the code section (there is other code there, all working).
Public Function
GetReportItemPic(ByRef reportItems As Microsoft.ReportingServices.ReportProcessing.ReportObjectModel.ReportItems,ByVal key As String)
Dim output as Microsoft.ReportingServices.RdlObjectModel.Image
output = reportItems(key).Value
Return output
End Function
But I get an error that Image is not defined. I've tried 'dim output as image' but same error.
Can anyone please help with what it should be ?
many thanks
MJ
Viewing 0 posts
You must be logged in to reply to this topic. Login to reply