| Reports for WinForms Task-Based Help > Reporting Task-Based Help > Adding Images to the Report > Creating Bound Images |
Bound images are images stored in database fields. To display these images in your reports, add a field to the report and set its Picture property to a string containing the name of the column where the image is stored.
If the field "Photo" in the database contains embedded OLE objects or raw image streams, and the report contains a field called "fEmployeePhoto", then the following code would display the employee photo in the field:
To write code in Visual Basic
| Visual Basic |
Copy Code
|
|---|---|
fEmployeePhoto.Picture = "Photo" |
|
To write code in C#
| C# |
Copy Code
|
|---|---|
fEmployeePhoto.Picture = "Photo"; |
|
![]() |
Note: For the complete report, see report "04: Bound Images" in the CommonTasks.xml report definition file, which is available in the ComponentOne Samples folder. |