Setting Image source in Data Report
Is there anyway that I can set the picture of an image control I placed in the data report through code? I typed the code below but an error comes up saying that object doesn't support property or method.
Code:
With rptPAR
.Sections("Section5").Controls.Item("Image1").Picture = LoadPicture(App.Path & "\MW6Demo.wmf")
.Show vbModal
End With
Re: Setting Image source in Data Report
Have you tried a jpeg or bitmap if it works?
Edit:
I tried it and it works if you will use Set.
Code:
SET .Sections("Section5").Controls.Item("Image1").Picture = LoadPicture(App.Path & "\MW6Demo.wmf")
Re: Setting Image source in Data Report
Does anyone know how to do this using crystal reports?