If you are using an AcImageControl then there is a property called FileNameExp. In here you can put a database field name or variable name. In your case you will use a variable and in the OnRead of the DataRow update that variable with the path to the image you want to insert.
You may also want to check that the image file exists before you set the variable. Like this
Select Case (data row value)
Case 1
If FileExists(path and file name1) Then
file location variable = path/filename1
Else
error code
End If
Case 2
If FileExists(path and file name2) Then
file location variable = path/filename2
Else
error code
End If
End Select
Then in your image control set FileNameExp = file location variable
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.