# C1.Win.List.PrintInfo.SaveAsC1d

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Win_List_PrintInfo_SaveAsC1d_" data-uid="C1.Win.List.PrintInfo.SaveAsC1d*">SaveAsC1d Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Win_List_PrintInfo_SaveAsC1d_" data-uid="C1.Win.List.PrintInfo.SaveAsC1d*"></a>
<h4 id="C1_Win_List_PrintInfo_SaveAsC1d_System_String_" data-uid="C1.Win.List.PrintInfo.SaveAsC1d(System.String)">SaveAsC1d(string)</h4>
<div class="markdown level1 summary"><p>Saves the current grid as a <b>C1D</b> file, which can later be loaded
into a <b>C1PrintDocument</b> (provided by <b>C1Report</b> product).</p>
<p>
Note that unlike most other print/export methods, this method
does not require <b>C1Report</b> assemblies.
</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public bool SaveAsC1d(string outputFileName)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function SaveAsC1d(outputFileName As String) As Boolean</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.string">string</a></td>
      <td><span class="parametername">outputFileName</span></td>
      <td><p>The name of the output file.</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.boolean">bool</a></td>
      <td><p><b>true</b> if the file was successfully saved,
<b>false</b> otherwise.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Win_List_PrintInfo_SaveAsC1d_" data-uid="C1.Win.List.PrintInfo.SaveAsC1d*"></a>
<h4 id="C1_Win_List_PrintInfo_SaveAsC1d_System_IO_Stream_" data-uid="C1.Win.List.PrintInfo.SaveAsC1d(System.IO.Stream)">SaveAsC1d(Stream)</h4>
<div class="markdown level1 summary"><p>Saves the current grid to a stream in <b>C1D</b>
(native <b>C1PrintDocument</b>) format.</p>
<p>
Note that unlike most other print/export methods, this method
does not require <b>C1Report</b> assemblies.
</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public bool SaveAsC1d(Stream stream)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function SaveAsC1d(stream As Stream) As Boolean</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.io.stream">Stream</a></td>
      <td><span class="parametername">stream</span></td>
      <td><p>The output stream.</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.boolean">bool</a></td>
      <td><p><b>true</b> if the stream was successfully written,
<b>false</b> otherwise.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_Win_List_PrintInfo_SaveAsC1d_System_IO_Stream__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>Unlike the <a class="xref" href="C1.Win.List.PrintInfo.Print.html#C1_Win_List_PrintInfo_Print_System_IO_Stream_">Print(Stream)</a> method,
this method does not reset the stream's position after saving.</p>
</div>
</div>
