# FarPoint.Web.Spread.PrintInfo.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="FarPoint_Web_Spread_PrintInfo__ctor_" data-uid="FarPoint.Web.Spread.PrintInfo.#ctor*">PrintInfo Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="FarPoint_Web_Spread_PrintInfo__ctor_" data-uid="FarPoint.Web.Spread.PrintInfo.#ctor*"></a>
<h4 id="FarPoint_Web_Spread_PrintInfo__ctor" data-uid="FarPoint.Web.Spread.PrintInfo.#ctor">PrintInfo()</h4>
<div class="markdown level1 summary"><p>Creates a new PrintInfo object.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public PrintInfo()</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New()</code></pre>
</div>


<a id="FarPoint_Web_Spread_PrintInfo__ctor_" data-uid="FarPoint.Web.Spread.PrintInfo.#ctor*"></a>
<h4 id="FarPoint_Web_Spread_PrintInfo__ctor_FarPoint_Web_Spread_PrintInfo_" data-uid="FarPoint.Web.Spread.PrintInfo.#ctor(FarPoint.Web.Spread.PrintInfo)">PrintInfo(PrintInfo)</h4>
<div class="markdown level1 summary"><p>Creates a new PrintInfo object based on the specified PrintInfo object.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public PrintInfo(PrintInfo pi)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(pi As PrintInfo)</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="FarPoint.Web.Spread.PrintInfo.html">PrintInfo</a></td>
      <td><span class="parametername">pi</span></td>
      <td><p>PrintInfo object on which to base new object</p>
</td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Web_Spread_PrintInfo__ctor_" data-uid="FarPoint.Web.Spread.PrintInfo.#ctor*"></a>
<h4 id="FarPoint_Web_Spread_PrintInfo__ctor_System_String_System_String_System_String_FarPoint_Web_Spread_PrintMargin_FarPoint_Web_Spread_PrintOrientation_FarPoint_Web_Spread_PrintPageOrder_System_Boolean_FarPoint_Web_Spread_PrintHeader_FarPoint_Web_Spread_PrintHeader_System_Boolean_System_Boolean_System_Boolean_System_Boolean_System_Boolean_FarPoint_Web_Spread_PrintHeader_System_Boolean_System_Boolean_FarPoint_Web_Spread_PrintType_System_Int32_System_Int32_System_Int32_System_Int32_System_Int32_System_Int32_System_Boolean_FarPoint_Web_Spread_SmartPrintRulesCollection_System_Boolean_System_Boolean_System_Boolean_System_String_System_Int32_System_Boolean_System_String_System_Single_System_Int32_FarPoint_Web_Spread_PrintNotes_System_Drawing_Printing_PaperSource_System_Drawing_Printing_PaperSize_System_Boolean_System_Drawing_Image___System_Drawing_Color___System_Int32_System_Int32_System_Int32_System_Int32_FarPoint_Web_Spread_Centering_System_Int32_System_Int32_System_Int32_System_Int32_" data-uid="FarPoint.Web.Spread.PrintInfo.#ctor(System.String,System.String,System.String,FarPoint.Web.Spread.PrintMargin,FarPoint.Web.Spread.PrintOrientation,FarPoint.Web.Spread.PrintPageOrder,System.Boolean,FarPoint.Web.Spread.PrintHeader,FarPoint.Web.Spread.PrintHeader,System.Boolean,System.Boolean,System.Boolean,System.Boolean,System.Boolean,FarPoint.Web.Spread.PrintHeader,System.Boolean,System.Boolean,FarPoint.Web.Spread.PrintType,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Boolean,FarPoint.Web.Spread.SmartPrintRulesCollection,System.Boolean,System.Boolean,System.Boolean,System.String,System.Int32,System.Boolean,System.String,System.Single,System.Int32,FarPoint.Web.Spread.PrintNotes,System.Drawing.Printing.PaperSource,System.Drawing.Printing.PaperSize,System.Boolean,System.Drawing.Image[],System.Drawing.Color[],System.Int32,System.Int32,System.Int32,System.Int32,FarPoint.Web.Spread.Centering,System.Int32,System.Int32,System.Int32,System.Int32)">PrintInfo(string, string, string, PrintMargin, PrintOrientation, PrintPageOrder, bool, PrintHeader, PrintHeader, bool, bool, bool, bool, bool, PrintHeader, bool, bool, PrintType, int, int, int, int, int, int, bool, SmartPrintRulesCollection, bool, bool, bool, string, int, bool, string, float, int, PrintNotes, PaperSource, PaperSize, bool, Image[], Color[], int, int, int, int, Centering, int, int, int, int)</h4>
<div class="markdown level1 summary"><p>Creates a new PrintInfo object with the specified printing settings.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public PrintInfo(string header, string footer, string jobName, PrintMargin margin, PrintOrientation orientation, PrintPageOrder pageOrder, bool border, PrintHeader colHeaders, PrintHeader colFooters, bool showColFooterEachPage, bool showTitle, bool showSubtitle, bool color, bool grid, PrintHeader rowHeaders, bool showShadows, bool useMax, PrintType type, int colStart, int colEnd, int rowStart, int rowEnd, int pageStart, int pageEnd, bool useSmartPrint, SmartPrintRulesCollection rules, bool bestFitCols, bool bestFitRows, bool preview, string printer, int firstPageNum, bool showDialog, string abortMessage, float zoomFactor, int opacity, PrintNotes notes, PaperSource paperSrc, PaperSize paperSz, bool objects, Image[] imgList, Color[] colorList, int repeatColStart, int repeatColEnd, int repeatRowStart, int repeatRowEnd, Centering center, int pagesTall, int pagesWide, int headerHeight, int footerHeight)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(header As String, footer As String, jobName As String, margin As PrintMargin, orientation As PrintOrientation, pageOrder As PrintPageOrder, border As Boolean, colHeaders As PrintHeader, colFooters As PrintHeader, showColFooterEachPage As Boolean, showTitle As Boolean, showSubtitle As Boolean, color As Boolean, grid As Boolean, rowHeaders As PrintHeader, showShadows As Boolean, useMax As Boolean, type As PrintType, colStart As Integer, colEnd As Integer, rowStart As Integer, rowEnd As Integer, pageStart As Integer, pageEnd As Integer, useSmartPrint As Boolean, rules As SmartPrintRulesCollection, bestFitCols As Boolean, bestFitRows As Boolean, preview As Boolean, printer As String, firstPageNum As Integer, showDialog As Boolean, abortMessage As String, zoomFactor As Single, opacity As Integer, notes As PrintNotes, paperSrc As PaperSource, paperSz As PaperSize, objects As Boolean, imgList As Image(), colorList As Color(), repeatColStart As Integer, repeatColEnd As Integer, repeatRowStart As Integer, repeatRowEnd As Integer, center As Centering, pagesTall As Integer, pagesWide As Integer, headerHeight As Integer, footerHeight As Integer)</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">header</span></td>
      <td><p>Header text</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">footer</span></td>
      <td><p>Footer text</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">jobName</span></td>
      <td><p>Print job name</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="FarPoint.Web.Spread.PrintMargin.html">PrintMargin</a></td>
      <td><span class="parametername">margin</span></td>
      <td><p>Print margins</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="FarPoint.Web.Spread.PrintOrientation.html">PrintOrientation</a></td>
      <td><span class="parametername">orientation</span></td>
      <td><p>Page orientation</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="FarPoint.Web.Spread.PrintPageOrder.html">PrintPageOrder</a></td>
      <td><span class="parametername">pageOrder</span></td>
      <td><p>Print page order</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">border</span></td>
      <td><p>Whether to print the sheet border</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="FarPoint.Web.Spread.PrintHeader.html">PrintHeader</a></td>
      <td><span class="parametername">colHeaders</span></td>
      <td><p>Whether to print column headers</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="FarPoint.Web.Spread.PrintHeader.html">PrintHeader</a></td>
      <td><span class="parametername">colFooters</span></td>
      <td><p>Whether to print column footers</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">showColFooterEachPage</span></td>
      <td><p>Whether to print column footers in each page</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">showTitle</span></td>
      <td><p>Whether to print the title</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">showSubtitle</span></td>
      <td><p>Whether to print the subtitle</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">color</span></td>
      <td><p>Whether to print in color</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">grid</span></td>
      <td><p>Whether to print grid lines</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="FarPoint.Web.Spread.PrintHeader.html">PrintHeader</a></td>
      <td><span class="parametername">rowHeaders</span></td>
      <td><p>Whether to print row headers</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">showShadows</span></td>
      <td><p>Whether to print the header shadows</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">useMax</span></td>
      <td><p>Whether to print cells that do not have data</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="FarPoint.Web.Spread.PrintType.html">PrintType</a></td>
      <td><span class="parametername">type</span></td>
      <td><p>What to print</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">colStart</span></td>
      <td><p>First column of cell range to print</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">colEnd</span></td>
      <td><p>Last column of cell range to print</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">rowStart</span></td>
      <td><p>First row of cell range to print</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">rowEnd</span></td>
      <td><p>Last row of cell range to print</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">pageStart</span></td>
      <td><p>First page of page range to print</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">pageEnd</span></td>
      <td><p>Last page of page range to print</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">useSmartPrint</span></td>
      <td><p>Whether to use SmartPrint</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="FarPoint.Web.Spread.SmartPrintRulesCollection.html">SmartPrintRulesCollection</a></td>
      <td><span class="parametername">rules</span></td>
      <td><p>SmartPrint rules</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">bestFitCols</span></td>
      <td><p>Whether to adjust column widths for printing</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">bestFitRows</span></td>
      <td><p>Whether to adjust row heights for printing</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">preview</span></td>
      <td><p>Whether to preview the sheet rather than print it</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">printer</span></td>
      <td><p>Printer to which to print</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">firstPageNum</span></td>
      <td><p>Page number to print on first page</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">showDialog</span></td>
      <td><p>Whether to show the print dialog</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">abortMessage</span></td>
      <td><p>Message to display for canceling printing</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">zoomFactor</span></td>
      <td><p>Factor to zoom sheet for printing</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">opacity</span></td>
      <td><p>Alpha value used for sheet</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="FarPoint.Web.Spread.PrintNotes.html">PrintNotes</a></td>
      <td><span class="parametername">notes</span></td>
      <td><p>Whether cell notes are printed</p>
</td>
    </tr>
    <tr>
      <td><span class="xref">PaperSource</span></td>
      <td><span class="parametername">paperSrc</span></td>
      <td><p>Source location of paper</p>
</td>
    </tr>
    <tr>
      <td><span class="xref">PaperSize</span></td>
      <td><span class="parametername">paperSz</span></td>
      <td><p>Paper size</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">objects</span></td>
      <td><p>Whether objects are printed</p>
</td>
    </tr>
    <tr>
      <td><span class="xref">Image</span>[]</td>
      <td><span class="parametername">imgList</span></td>
      <td><p>Images to use for headers and footers</p>
</td>
    </tr>
    <tr>
      <td><span class="xref">Color</span>[]</td>
      <td><span class="parametername">colorList</span></td>
      <td><p>Colors to use for headers and footers</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">repeatColStart</span></td>
      <td><p>Index of beginning column of a repeating range</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">repeatColEnd</span></td>
      <td><p>Index of ending column of a repeating range</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">repeatRowStart</span></td>
      <td><p>Index of a beginning row of a repeating range</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">repeatRowEnd</span></td>
      <td><p>Index of ending row of a repeating range</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="FarPoint.Web.Spread.Centering.html">Centering</a></td>
      <td><span class="parametername">center</span></td>
      <td><p>Type of centering to perform on print out</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">pagesTall</span></td>
      <td><p>Number of pages tall to fit print out into when smart print is true</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">pagesWide</span></td>
      <td><p>Number of pages wide to fit print out into when smart print is true</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">headerHeight</span></td>
      <td><p>Sets the user defined height of the header area</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">footerHeight</span></td>
      <td><p>Sets the user defined height of the footer area</p>
</td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Web_Spread_PrintInfo__ctor_" data-uid="FarPoint.Web.Spread.PrintInfo.#ctor*"></a>
<h4 id="FarPoint_Web_Spread_PrintInfo__ctor_System_Runtime_Serialization_SerializationInfo_System_Runtime_Serialization_StreamingContext_" data-uid="FarPoint.Web.Spread.PrintInfo.#ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)">PrintInfo(SerializationInfo, StreamingContext)</h4>
<div class="markdown level1 summary"><p>Prints information from serialization.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">protected PrintInfo(SerializationInfo info, StreamingContext context)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Protected Sub New(info As SerializationInfo, context As StreamingContext)</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.runtime.serialization.serializationinfo">SerializationInfo</a></td>
      <td><span class="parametername">info</span></td>
      <td><p>Serialization information</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.runtime.serialization.streamingcontext">StreamingContext</a></td>
      <td><span class="parametername">context</span></td>
      <td><p>Streaming context</p>
</td>
    </tr>
  </tbody>
</table>
</div>
