# C1.C1Preview.Export.Exporter.CanPreviewOutputFile

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_C1Preview_Export_Exporter_CanPreviewOutputFile_" data-uid="C1.C1Preview.Export.Exporter.CanPreviewOutputFile*">CanPreviewOutputFile Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_C1Preview_Export_Exporter_CanPreviewOutputFile_" data-uid="C1.C1Preview.Export.Exporter.CanPreviewOutputFile*"></a>
<h4 id="C1_C1Preview_Export_Exporter_CanPreviewOutputFile" data-uid="C1.C1Preview.Export.Exporter.CanPreviewOutputFile">CanPreviewOutputFile()</h4>
<div class="markdown level1 summary"><p>Tests whether <a class="xref" href="C1.C1Preview.Export.Exporter.OutputFileName.html#C1_C1Preview_Export_Exporter_OutputFileName">OutputFileName</a> can be previewed.
This (base) implementation uses <code>FindExecutable</code> API to find an appropriate executable,
and returns a value indicating whether it has been found or not.</p>
<p>
If you override this, you must also override <a class="xref" href="C1.C1Preview.Export.Exporter.PreviewOutputFile.html#C1_C1Preview_Export_Exporter_PreviewOutputFile">PreviewOutputFile()</a>.
</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">protected virtual bool CanPreviewOutputFile()</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Protected Overridable Function CanPreviewOutputFile() As Boolean</code></pre>
</div>
<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.boolean">bool</a></td>
      <td><p><b>true</b> if the output file can be previewed, <b>false</b> otherwise.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_C1Preview_Export_Exporter_CanPreviewOutputFile_seealso">See Also</h5>
<div class="seealso">
    <div><a class="xref" href="C1.C1Preview.Export.Exporter.PreviewOutputFile.html#C1_C1Preview_Export_Exporter_PreviewOutputFile">PreviewOutputFile</a>()</div>
</div>
</div>
