# GrapeCity.ActiveReports.PageReportModel.Image.Source

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_ActiveReports_PageReportModel_Image_Source_" data-uid="GrapeCity.ActiveReports.PageReportModel.Image.Source*">Source Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_ActiveReports_PageReportModel_Image_Source_" data-uid="GrapeCity.ActiveReports.PageReportModel.Image.Source*"></a>
<h4 id="GrapeCity_ActiveReports_PageReportModel_Image_Source" data-uid="GrapeCity.ActiveReports.PageReportModel.Image.Source">Source</h4>
<div class="markdown level1 summary"><p>Gets or sets a source of the image.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public ImageSource Source { get; set; }</code></pre>
</div>
<h5 class="propertyValue">Property Value</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="GrapeCity.ActiveReports.PageReportModel.ImageSource.html">ImageSource</a></td>
      <td><p>An <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.ImageSource.html">ImageSource</a> value indicating the source of the image.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="GrapeCity_ActiveReports_PageReportModel_Image_Source_remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>If the source is set to <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.ImageSource.html#GrapeCity_ActiveReports_PageReportModel_ImageSource_External">External</a>, the <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.Image.Value.html#GrapeCity_ActiveReports_PageReportModel_Image_Value">Value</a> property evaluates to the location of the image.</p>
<p>If the source is set to <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.ImageSource.html#GrapeCity_ActiveReports_PageReportModel_ImageSource_Embedded">Embedded</a>, the <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.Image.Value.html#GrapeCity_ActiveReports_PageReportModel_Image_Value">Value</a> property evaluates to the name of the EmbeddedImage in the report.</p>
<p>If the source is set to <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.ImageSource.html#GrapeCity_ActiveReports_PageReportModel_ImageSource_Database">Database</a>, the <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.Image.Value.html#GrapeCity_ActiveReports_PageReportModel_Image_Value">Value</a> property evaluates to the binary data of the image.</p>
</div>
<h5 id="GrapeCity_ActiveReports_PageReportModel_Image_Source_examples">Examples</h5>
<pre><code class="lang-csharp">Image image = new Image();
image.Source = ImageSource.External;
image.Value = ExpressionInfo.FromString("http://example.com/image.jpg");</code></pre>

</div>
