Search results

pageSettings

Properties

orientation

enum

<ts name = "ej.ReportViewer.Orientation"/>

Specifies the print layout orientation.

Name Description
Landscape Specifies the Landscape property in pageSettings.orientation to get specified layout.
portrait Specifies the portrait property in pageSettings.orientation to get specified layout.

Default Value

  • null

Example

<div id="container"></div>
<script>
    $("#container").ejReportDesigner({
        previewOptions: {
            pageSettings:{ orientation: ej.ReportViewer.Orientation.Landscape }
        }
    });
</script>

paperSize

enum

<ts name = "ej.ReportViewer.PaperSize"/>

Specifies the paper size of print layout.

Name Description
A3 Specifies the A3 as value in pageSettings.paperSize to get specified size.
portrait Specifies the A4 as value in pageSettings.paperSize to get specified size.
B4_JIS Specifies the B4(JIS) as value in pageSettings.paperSize to get specified size.
B5_JIS Specifies the B5(JIS) as value in pageSettings.paperSize to get specified size.
Envelope_10 Specifies the Envelope #10 as value in pageSettings.paperSize to get specified size.
Envelope_Monarch Specifies the Envelope as value in pageSettings.paperSize to get specified size.
Executive Specifies the Executive as value in pageSettings.paperSize to get specified size.
Legal Specifies the Legal as value in pageSettings.paperSize to get specified size.
Letter Specifies the Letter as value in pageSettings.paperSize to get specified size.
Tabloid Specifies the Tabloid as value in pageSettings.paperSize to get specified size.
Custom Specifies the Custom as value in pageSettings.paperSize to get specified size.

Default Value

  • null

Example

<div id="container"></div>
<script>
    $("#container").ejReportDesigner({
        previewOptions: {
            pageSettings:{ paperSize: ej.ReportViewer.PaperSize.A4 }
        }
    });
</script>

height

number

Specifies the height of print layout.

Default Value

  • 0

Example

<div id="container"></div>
<script>
    $("#container").ejReportDesigner({
        previewOptions: {
            pageSettings: { height: 11.69 }
        }
    });
</script>

width

number

Specifies the width of print layout.

Default Value

  • 0

Example

<div id="container"></div>
<script>
    $("#container").ejReportDesigner({
        previewOptions: {
            pageSettings: { width: 8.27 }
        }
    });
</script>

margins

number

Specifies the margins of print layout.

Name Description
top Specifies the top margins of print layout.
right Specifies the right margins of print layout.
bottom Specifies the bottom margins of print layout.
left Specifies the left margins of print layout.

Example

<div id="container"></div>
<script>
    $("#container").ejReportDesigner({
        previewOptions: {
            pageSettings: {
                margins: { top: 0.5, right: 0.25, bottom: 0.25, left: 0.25 }
            }
        }
    });
</script>