Dynamic Image Loading

When it is needed to load the image in the process of report generation, you can open the Bindings properties and use the Image property. Use the following script when it is needed to load image from file:

System.Drawing.Image.FromFile("<path to the file>")

 Report Template   Report  
  
dataBand.DataSource = Employees;
textBox.Value = dataBand["EmployeeName"];
picture.Image = System.Drawing.Image.FromFile ("C:\\Data\\Pictures\\"+dataBand["EmployeeName"]. ToString()+".png");
picture.SizeMode = AutoSize;
  

Add Feedback