title: How to show image field in Crystal Report through C# where the image path is stored in the database?
body: <p>I'm using crystal report 11. I designed a report and set it's data through a sql stored procedure and dragged the fields that the procedure returns into the layout and everything work fine. </p>
  
  <p>One of the fields returned through the procedure contains the paths to images, So in order to show these images I had to insert picture object and set it to a random image and change it's graphic location to a formula that returns the field which contains the image paths. So far good.</p>
  
  <p><em>This is the Design of the Report in the Crystal reports Program.</em></p>
  
  <p><img src="https://i.stack.imgur.com/OrpvI.jpg" alt="enter image description here"></p>
  
  <p>I print preview the report and it shows the data along side with the images associated with each record, awesome!!!. </p>
  
  <p><em>Here is the Print Preview from the Crystal Reports Program.</em> </p>
  
  <p><img src="https://i.stack.imgur.com/vlTVi.jpg" alt="enter image description here"></p>
  
  <p>Now I want to show the report from a windows form application, I write the following code in the form that will show the report: </p>
  
  <pre><code>private void frmReport_Load(object sender, EventArgs e)
  {
      SupervisorBLC supervisorBLC = new SupervisorBLC();
      DataTable dataTable = supervisorBLC.M_rpt_task2();
      ReportDocument reportDocument = new ReportDocument();
  
      reportDocument.Load(@"C:\Users\msabry\Desktop\Report1.rpt");
      reportDocument.Database.Tables[0].SetDataSource(dataTable);
      crystalReportViewer1.ReportSource = reportDocument;
  
      crystalReportViewer1.Refresh();
      crystalReportViewer1.Dock = DockStyle.Fill;
      this.Controls.Add(crystalReportViewer1);
  }
  </code></pre>
  
  <p>The report shows up!, but the images not. instead of the images that have their paths returned through the dataTable I see the random Images that I set in the report.</p>
  
  <p><em>And this is the report when showed from my windows form application.</em></p>
  
  <p><img src="https://i.stack.imgur.com/KhSLR.jpg" alt="enter image description here"></p>
  
  <p><strong>PS: When I saved the C# generated report as .rpt and opened it in the crystal report designer, I went to the graphic location of the image and I didn't find the formula I used!!!</strong></p>