# C1.Win.FlexReport.C1FlexReport.GetPageImage

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Win_FlexReport_C1FlexReport_GetPageImage_" data-uid="C1.Win.FlexReport.C1FlexReport.GetPageImage*">GetPageImage Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Win_FlexReport_C1FlexReport_GetPageImage_" data-uid="C1.Win.FlexReport.C1FlexReport.GetPageImage*"></a>
<h4 id="C1_Win_FlexReport_C1FlexReport_GetPageImage_System_Int32_System_Drawing_Graphics_" data-uid="C1.Win.FlexReport.C1FlexReport.GetPageImage(System.Int32,System.Drawing.Graphics)">GetPageImage(int, Graphics)</h4>
<div class="markdown level1 summary"><p>Returns a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.imaging.metafile">Metafile</a> representing the specified page.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public Metafile GetPageImage(int pageIndex, Graphics referenceGraphics)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function GetPageImage(pageIndex As Integer, referenceGraphics As Graphics) As Metafile</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">pageIndex</span></td>
      <td><p>The index of the page.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.graphics">Graphics</a></td>
      <td><span class="parametername">referenceGraphics</span></td>
      <td><p>The reference graphics used to get device context for metafile.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</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="https://learn.microsoft.com/dotnet/api/system.drawing.imaging.metafile">Metafile</a></td>
      <td><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.imaging.metafile">Metafile</a> representing the specified page, or <b>null</b> if the page was not found.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Win_FlexReport_C1FlexReport_GetPageImage_" data-uid="C1.Win.FlexReport.C1FlexReport.GetPageImage*"></a>
<h4 id="C1_Win_FlexReport_C1FlexReport_GetPageImage_System_Int32_" data-uid="C1.Win.FlexReport.C1FlexReport.GetPageImage(System.Int32)">GetPageImage(int)</h4>
<div class="markdown level1 summary"><p>Returns a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.imaging.metafile">Metafile</a> representing the specified page.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public Metafile GetPageImage(int pageIndex)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function GetPageImage(pageIndex As Integer) As Metafile</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">pageIndex</span></td>
      <td><p>The index of the page.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</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="https://learn.microsoft.com/dotnet/api/system.drawing.imaging.metafile">Metafile</a></td>
      <td><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.imaging.metafile">Metafile</a> representing the specified page, or <b>null</b> if the page was not found.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
