Dynamic images at runtime

dreamtime

Active member
Joined
May 13, 2005
Messages
26
Programming Experience
1-3
I have been trying to find an alternative to crystal reports and recently posted here. I had some good information, but currently I haven't had the time to look at it in more detail as it involves actually programming a report. This is probably the way I need to go but for now I was wondering if anyone is aware of a way to add an image to to a crystal report at runtime.

I wish to control the adding the data myself and not using a database connected to the report. Ideally, I wish to create a database-less report in crystal (ie. literally just use it as a visual designer) and then replace certain aspects of it at runtime (use the 'push' method). ie. fill in textboxes with this data, change a picture for this one, etc.

I can do this with text using the following code I found on the web...

Protected Sub ApplyTextObject(ByVal vstrTextObject As String, ByVal vstrTextValue As String)
Try
CType(report.ReportDefinition.ReportObjects(vstrTextObject), CrystalDecisions.CrystalReports.Engine.TextObject).Text = vstrTextValue
Catch ex As Exception
Throw ex
End Try
End Sub

...but I need a similar way to do this for pictures.

Any ideas would be appreciated.
 
Last edited:
Top Bottom