# GrapeCity.Documents.Excel.Workbook.ConvertBarcodeToPicture

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Documents_Excel_Workbook_ConvertBarcodeToPicture_" data-uid="GrapeCity.Documents.Excel.Workbook.ConvertBarcodeToPicture*">ConvertBarcodeToPicture Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Documents_Excel_Workbook_ConvertBarcodeToPicture_" data-uid="GrapeCity.Documents.Excel.Workbook.ConvertBarcodeToPicture*"></a>
<h4 id="GrapeCity_Documents_Excel_Workbook_ConvertBarcodeToPicture_GrapeCity_Documents_Excel_Drawing_ImageType_" data-uid="GrapeCity.Documents.Excel.Workbook.ConvertBarcodeToPicture(GrapeCity.Documents.Excel.Drawing.ImageType)">ConvertBarcodeToPicture(ImageType)</h4>
<div class="markdown level1 summary"><p>Convert the calculated barcodes to pictures and place them in their respective positions.
The original barcode formulas will be cleared.<br>
Not support <a class="xref" href="GrapeCity.Documents.Excel.Drawing.ImageType.html#GrapeCity_Documents_Excel_Drawing_ImageType_EMF">EMF</a> and <a class="xref" href="GrapeCity.Documents.Excel.Drawing.ImageType.html#GrapeCity_Documents_Excel_Drawing_ImageType_WMF">WMF</a> image types.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void ConvertBarcodeToPicture(ImageType imageType = ImageType.SVG)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub ConvertBarcodeToPicture(Optional imageType As ImageType = ImageType.SVG)</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="GrapeCity.Documents.Excel.Drawing.ImageType.html">ImageType</a></td>
      <td><span class="parametername">imageType</span></td>
      <td><p>Specify the <a class="xref" href="GrapeCity.Documents.Excel.Drawing.ImageType.html">ImageType</a> of converted image.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="implements">Implements</h5>
    <div><a class="xref" href="GrapeCity.Documents.Excel.IWorkbook.ConvertBarcodeToPicture.html#GrapeCity_Documents_Excel_IWorkbook_ConvertBarcodeToPicture_GrapeCity_Documents_Excel_Drawing_ImageType_">IWorkbook.ConvertBarcodeToPicture(ImageType)</a></div>
<h5 class="exceptions">Exceptions</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Condition</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.notsupportedexception">NotSupportedException</a></td>
      <td><p>If convert to <a class="xref" href="GrapeCity.Documents.Excel.Drawing.ImageType.html#GrapeCity_Documents_Excel_Drawing_ImageType_EMF">EMF</a> or <a class="xref" href="GrapeCity.Documents.Excel.Drawing.ImageType.html#GrapeCity_Documents_Excel_Drawing_ImageType_WMF">WMF</a> image type.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
