Skip to Content
0
Dec 01, 2022 at 06:45 PM

Crystal Reports for Visual Studio SP31 How to change an Image at Run-Time

142 Views

I have a Picture Image on a Report. I want to change the Picture at run-time.

How do I change the image when loading the report?

With a text object, I would create a TextObject and assign the new text to the text property.

TextObject tObject = myReport.ReportDefinition.ReportObject["MyField'} as TextObject;

tObject.Text = "New Text".

I was expecting something similar, but cannot find any Picture Objects that allow me to change the picture.

I am using Visual Studio2019 with Crystal Reports for VS13 SP31 using C# code.

Thanks