Skip to content

be0d9d47 4837 a0af 71e9 474a9668869a

Fernando Garcia edited this page May 8, 2018 · 1 revision

DocumentModel.Size Property

Additional header content

Gets or sets the preferred size of document.

Namespace: iTin.Export.Model
Assembly: iTin.Export.Core (in iTin.Export.Core.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

C#

public KnownDocumentSize Size { get; set; }

VB

Public Property Size As KnownDocumentSize
	Get
	Set

Property Value

Type: KnownDocumentSize
A value of the enumeration KnownDocumentSize. The default is A4.

Exceptions

 

Exception Condition
InvalidEnumArgumentException The value specified is outside the range of valid values.

Remarks

ITEE Object Element Usage

<Document Size="A4|Letter" ...>
...
</Document>

Compatibility table with native writers.

Comma-Separated Values
CsvWriter
Tab-Separated Values
TsvWriter
SQL Script
SqlScriptWriter
XML Spreadsheet 2003
Spreadsheet2003TabularWriter
No has effect No has effect No has effect X
A X value indicates that the writer supports this element.

Examples

XML

<Document Size="Letter" Orientation="Landscape">
...
</Document>

C#

...
DocumentModel document = new DocumentModel 
                       { 
                           Size = KnownDocumentSize.Letter,
                           Orientation = KnownDocumentOrientation.Landscape
                       } ;
...

See Also

Reference

DocumentModel Class
iTin.Export.Model Namespace

Clone this wiki locally