How to change an image in a report at runtime using the RDCThe information in the article refers to:
Report Designer Component 7
 
 
Applies to:
 
Reported version only
OLE Object or Picture Object
Change at runtime SynopsisHow to change the image for an OLE Object (set to a Bitmap Image) or Picture Object at runtime using the Report Design Component (RDC). SolutionTo change an image at runtime set the FormattedPicture property of the OLE Object (Object Type set to Bitmap), or Picture Object using the Microsoft Visual Basic function LoadPicture. The filepath parameter of the LoadPicture function can be a string, a variable , or a field value. In this example the filepath is from a field value: The report has three fields from the Employee table and an OLE Object (Object Type set to Bitmap), or Picture Object in the Detail section. Field1 is the 'Employee Name' field, Field2 is the 'Last Years Sale's' field, and Field3 is the path to the bitmap of the employee's picture. Field3 is suppressed because only the field value is needed to load the picture. This code applies to Section Format Events in a DSR. 'Section 3 is the detail section
Private Sub Section3_Format(ByVal pFormattingInfo As Object)  'Pass the path from field3 to the Visual Basic LoadPicture function. 
'The picture is then loaded into the OLE Object
Set Picture1.FormattedPicture = LoadPicture(Field3.Value)End SubNote: When exporting the report the Section Format event is not executed resulting in the updated image not being exported.. 希望對你有所幫助