# C1.Report.Layout.CustomWidth

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Report_Layout_CustomWidth_" data-uid="C1.Report.Layout.CustomWidth*">CustomWidth Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Report_Layout_CustomWidth_" data-uid="C1.Report.Layout.CustomWidth*"></a>
<h4 id="C1_Report_Layout_CustomWidth" data-uid="C1.Report.Layout.CustomWidth">CustomWidth</h4>
<div class="markdown level1 summary"><p>Gets or sets the custom width for the report, in twips.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">[C1Description(&quot;Layout.CustomWidth&quot;, &quot;The custom paper width, in twips. Used if PaperSize is Custom. Set to 0 to use the default paper size.&quot;)]
[TypeConverter(typeof(PageUnitConverter))]
public double CustomWidth { get; set; }</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">&lt;C1Description(&quot;Layout.CustomWidth&quot;, &quot;The custom paper width, in twips. Used if PaperSize is Custom. Set to 0 to use the default paper size.&quot;)&gt;
&lt;TypeConverter(GetType(PageUnitConverter))&gt;
Public Property CustomWidth As Double</code></pre>
</div>
<h5 id="C1_Report_Layout_CustomWidth_remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>To create reports using custom paper sizes, set the <a class="xref" href="C1.Report.Layout.PaperSize.html#C1_Report_Layout_PaperSize">PaperSize</a> property to 
custom, then set the <a class="xref" href="C1.Report.Layout.CustomWidth.html#C1_Report_Layout_CustomWidth">CustomWidth</a> and <a class="xref" href="C1.Report.Layout.CustomHeight.html#C1_Report_Layout_CustomHeight">CustomHeight</a> properties 
to the size of the page measured in twips.</p>
<p>If the <a class="xref" href="C1.Report.Layout.PaperSize.html#C1_Report_Layout_PaperSize">PaperSize</a> is set to a value other than custom, the paper size 
is determined by that setting. The <a class="xref" href="C1.Report.Layout.CustomWidth.html#C1_Report_Layout_CustomWidth">CustomWidth</a> and <a class="xref" href="C1.Report.Layout.CustomHeight.html#C1_Report_Layout_CustomHeight">CustomHeight</a> properties are not 
used in this case.</p>
<p>If the <a class="xref" href="C1.Report.Layout.PaperSize.html#C1_Report_Layout_PaperSize">PaperSize</a> is set to custom and the <a class="xref" href="C1.Report.Layout.CustomWidth.html#C1_Report_Layout_CustomWidth">CustomWidth</a> or 
<a class="xref" href="C1.Report.Layout.CustomHeight.html#C1_Report_Layout_CustomHeight">CustomHeight</a> properties are set to zero, the printer's default paper size is used.</p>
</div>
</div>
