[]
        
(Showing Draft Content)

report/types/viewer-app

Wyn Enterprise provides a rich API for integrating reporting components into your web application. To embed the Report Viewer component in your project, use the Report Viewer API. It lets you view and export reports with added capabilities that include defining the locale for the viewer, specifying the Parameter panel location and show mode, modifying the default title name, and much more.


The following sections describe the module: report/types/viewer-app.

Type Aliases

Type Aliases

AddLocalizationErrorResult

Ƭ AddLocalizationErrorResult: Object

Type of error result returned by the GrapeCity.WynReports.Viewer.addLocalization() function.

Type declaration

Name

Type

errorCaption

string

errorDetails

string[]

type

"error"

errorCaption: string

Error caption.


errorDetails: string[]

Error details.


type: "error"

Error result type.



AddLocalizationResult

Ƭ AddLocalizationResult: AddLocalizationSuccessResult | AddLocalizationErrorResult

Type of result returned by the GrapeCity.WynReports.Viewer.addLocalization() function.


AddLocalizationSuccessResult

Ƭ AddLocalizationSuccessResult: Object

Type of success result returned by the GrapeCity.WynReports.Viewer.addLocalization() function.

Type declaration

Name

Type

type

"success"

type: "success"

Success result type.



AnimationOptions

Ƭ AnimationOptions: Object

Describes animations that can be applied to the report view.

Type declaration

Name

Type

chartTooltip?

ChartTooltipAnimationOptions

hoverChart?

HoverChartAnimationOptions

hoverTable?

HoverTableAnimationOptions

loadChart?

LoadChartAnimationOptions

chartTooltip?: ChartTooltipAnimationOptions

Set chart tooltip style settings.


hoverChart?: HoverChartAnimationOptions

Set hover chart animation settings. By default, animation is disabled.

Example

hoverChart: { enabled: true }

hoverTable?: HoverTableAnimationOptions

Set hover table and tablix animation settings. By default, animation is disabled.

Example

hoverTable: { enabled: true }

loadChart?: LoadChartAnimationOptions

Set load chart animation settings. By default, animation is disabled.

Example

loadChart: { enabled: true }


ChartTooltipAnimationOptions

Ƭ ChartTooltipAnimationOptions: Object

Describes chart tooltip style options.

Type declaration

Name

Type

backgroundColor?

string

borderColor?

string

borderRadius?

string

borderSize?

string

borderStyle?

ChartTooltipBorderStyle

enabled?

boolean

fontFamily?

string

fontSize?

string

fontStyle?

ChartTooltipFontStyle

fontWeight?

ChartTooltipFontWeight

textColor?

string

backgroundColor?: string

Specifies the chart tooltip background color.

  • Default value: '#fff'.

  • '$theme' - background color is used from theme background color.

  • '$none' - background color remains unchanged.

  • 'LightGray'|'#6495ed'|... - background color is used from value.

See this link for more information on colors.

Example

backgroundColor: 'LightGray'

borderColor?: string

Specifies the color of chart tooltip borders.

  • Default value: '#292929'.

  • '$theme' - border color is used from theme border color.

  • '$none' - border color remains unchanged.

  • 'LightGray'|'#6495ed'|... - border color is used from value.

See this link for more information on colors.

Example

borderColor: '#4e0000'

borderRadius?: string

Specifies the radius of the chart tooltip borders in px or pt. The value must be greater than or equal to 0 and less than 72.

Default value: '3px'.

Example

borderRadius: '1pt'

borderSize?: string

Specifies the size of the chart tooltip borders. The value must be greater than 0 and less than 10.

Default value: '1px'.

Example

borderSize: '1pt'

borderStyle?: ChartTooltipBorderStyle

Specifies the style of the chart tooltip borders.

Default value: 'Solid'.

Example

borderStyle: 'Dotted'

enabled?: boolean

Enable chart tooltip. If this value is set to false, the chart tooltip will not be displayed.

Default value: true.

Example

enabled: false

fontFamily?: string

Specifies the font family used in the chart tooltip. If fontFamily is not specified explicitly here, the default font family is used.

Example

fontFamily: 'Times New Roman'

fontSize?: string

Specifies the size of the font used in the chart tooltip. Font size can be set in px or pt. Font size value has to be greater than 6 and must not exceed 72.

Default value: '12px'.

Example

fontSize: '10pt'

fontStyle?: ChartTooltipFontStyle

Specifies the font style used in the chart tooltip. Default value: 'Normal'.

Example

fontStyle: 'Italic'

fontWeight?: ChartTooltipFontWeight

Specifies the font weight used in the chart tooltip. Default value: 'Normal'.

Example

fontWeight: 'Bold'

textColor?: string

Specifies the chart tooltip text color.

  • Default value: '#333'.

  • '$theme' - text color is used from theme text color.

  • '$none' - text color remains unchanged.

  • 'LightGray'|'#6495ed'|... - text color is used from value.

See this link for more information on colors.

Example

textColor: 'DarkGray'


ChartTooltipBorderStyle

Ƭ ChartTooltipBorderStyle: "None" | "Dotted" | "Dashed" | "Solid" | "Double" | "Groove" | "Ridge" | "Inset" | "Outset"

Describes all possible values for chart tooltip borderStyle option.


ChartTooltipFontStyle

Ƭ ChartTooltipFontStyle: "Normal" | "Italic"

Describes all possible values for chart tooltip fontStyle option.


ChartTooltipFontWeight

Ƭ ChartTooltipFontWeight: "Lighter" | "Thin" | "ExtraLight" | "Light" | "Normal" | "Medium" | "SemiBold" | "Bold" | "ExtraBold" | "Heavy" | "Bolder"

Describes all possible values for chart tooltip fontWeight option.


DisplayType

Ƭ DisplayType: typeof ALL_DISPLAY_TYPES[number]

All supported display types.


Event

Ƭ Event<TArgs>: Object

Event listener.

Type parameters

Name

TArgs

Type declaration

Name

Type

register

(eventHandler: EventHandler<TArgs>) => UnregisterEventHandler

register: (eventHandler: EventHandler<TArgs>) => UnregisterEventHandler

Registers a new event handler.



EventHandler

Ƭ EventHandler<TArgs>: (args: TArgs) => void

Type parameters

Name

TArgs

Type declaration

▸ (args): void

Event handler.

Parameters

Name

Type

args

TArgs

Returns

void


ExportOptions

Ƭ ExportOptions<T>: Object

Describes the export options.

Type parameters

Name

Type

T

extends ExportType = ExportType

Type declaration

Name

Type

settings?

ExportSettings<T>

settings?: ExportSettings<T>

Specifies the export settings available for RenderingExtensions.

Example

settings: { Title: '1997 Annual Report' }


ExportResult

Ƭ ExportResult: Object

Describes the export result.

Type declaration

Name

Type

file

Blob

filename?

string

file: Blob

The exported report file.


filename?: string

The filename of the report.



ExportSettings

Ƭ ExportSettings<T>: ExportSettingsMap[T]

Type parameters

Name

Type

T

extends ExportType = ExportType


ExportSettingsCsv

Ƭ ExportSettingsCsv: Object

Type declaration

Name

Type

AddTimestamp?

boolean

AddTimestamp?

boolean

ColumnsDelimiter?

string

DateTimeFormat?

string

Encoding?

ExportSettingsEncoding

Extension?

ExportSettingsCsvExtension

FilenameTemplate?

string

NoHeader?

boolean

NumericFormat?

string

QuotationSymbol?

string

RowsDelimiter?

string

AddTimestamp?: boolean


ColumnsDelimiter?: string


DateTimeFormat?: string


Encoding?: ExportSettingsEncoding


Extension?: ExportSettingsExtension


FilenameTemplate?: string


NoHeader?: boolean


NumericFormat?: string


QuotationSymbol?: string


RowsDelimiter?: string




ExportSettingsCsvExtension

Ƭ ExportSettingsCsvExtension: "csv" | "txt"

key

description

csv

.csv

txt

.txt


ExportSettingsDisplayMode

Ƭ ExportSettingsDisplayMode: ExportSettingsPdfDisplayMode


Deprecated


This type will be removed in future releases, use ExportSettingsPdfDisplayMode instead


ExportSettingsDocumentCompatibilityVersion

Ƭ ExportSettingsDocumentCompatibilityVersion: ExportSettingsDocxDocumentCompatibilityVersion


Deprecated


This type will be removed in future releases, use ExportSettingsDocxDocumentCompatibilityVersion instead



ExportSettingsDocx

Ƭ ExportSettingsDocx: Object

Type declaration

| Name | Type |

Type declaration

Name

Type

AddTimestamp?

boolean

Author?

string

Categories?

string

CompanyName?

string

DocumentCompatibilityVersion?

ExportSettingsDocxDocumentCompatibilityVersion

DpiX?

number

DpiY?

number

FilenameTemplate?

string

Orientation?

ExportSettingsOrientation

PaperSize?

ExportSettingsPaperSize

Password?

string

ReadOnlyRecommended?

boolean

TOCAutoUpdate?

boolean

Title?

string

WritePassword?

string

AddTimestamp?: boolean


Author?: string


Categories?: string


CompanyName?: string


DocumentCompatibilityVersion?: ExportSettingsDocumentCompatibilityVersion


DpiX?: number


DpiY?: number


FilenameTemplate?: string


Orientation?: ExportSettingsOrientation


PaperSize?: ExportSettingsPaperSize


Password?: string


ReadOnlyRecommended?: boolean


TOCAutoUpdate?: boolean


Title?: string


WritePassword?: string



ExportSettingsDocxDocumentCompatibilityVersion

Ƭ ExportSettingsDocxDocumentCompatibilityVersion: "Word2007" | "Word2010" | "Word2013"

key

description

Word2007

Word 2007

Word2010

Word 2010

Word2013

Word 2013


ExportSettingsDuplexMode

Ƭ ExportSettingsDuplexMode: ExportSettingsPdfDuplexMode


Deprecated


This type will be removed in future releases, use ExportSettingsPdfDuplexMode instead


ExportSettingsEmbedFonts

Ƭ ExportSettingsEmbedFonts: ExportSettingsPdfEmbedFonts


Deprecated


This type will be removed in future releases, use ExportSettingsPdfEmbedFonts instead


ExportSettingsEncoding

Ƭ ExportSettingsEncoding: "IBM037" | "IBM437" | "IBM500" | "ASMO-708" | "DOS-720" | "ibm737" | "ibm775" | "ibm850" | "ibm852" | "IBM855" | "ibm857" | "IBM00858" | "IBM860" | "ibm861" | "DOS-862" | "IBM863" | "IBM864" | "IBM865" | "cp866" | "ibm869" | "IBM870" | "windows-874" | "cp875" | "shift_jis" | "gb2312" | "ks_c_5601-1987" | "big5" | "IBM1026" | "IBM01047" | "IBM01140" | "IBM01141" | "IBM01142" | "IBM01143" | "IBM01144" | "IBM01145" | "IBM01146" | "IBM01147" | "IBM01148" | "IBM01149" | "utf-16" | "unicodeFFFE" | "windows-1250" | "windows-1251" | "Windows-1252" | "windows-1253" | "windows-1254" | "windows-1255" | "windows-1256" | "windows-1257" | "windows-1258" | "Johab" | "macintosh" | "x-mac-japanese" | "x-mac-chinesetrad" | "x-mac-korean" | "x-mac-arabic" | "x-mac-hebrew" | "x-mac-greek" | "x-mac-cyrillic" | "x-mac-chinesesimp" | "x-mac-romanian" | "x-mac-ukrainian" | "x-mac-thai" | "x-mac-ce" | "x-mac-icelandic" | "x-mac-turkish" | "x-mac-croatian" | "utf-32" | "utf-32BE" | "x-Chinese-CNS" | "x-cp20001" | "x-Chinese-Eten" | "x-cp20003" | "x-cp20004" | "x-cp20005" | "x-IA5" | "x-IA5-German" | "x-IA5-Swedish" | "x-IA5-Norwegian" | "us-ascii" | "x-cp20261" | "x-cp20269" | "IBM273" | "IBM277" | "IBM278" | "IBM280" | "IBM284" | "IBM285" | "IBM290" | "IBM297" | "IBM420" | "IBM423" | "IBM424" | "x-EBCDIC-KoreanExtended" | "IBM-Thai" | "koi8-r" | "IBM871" | "IBM880" | "IBM905" | "IBM00924" | "EUC-JP" | "x-cp20936" | "x-cp20949" | "cp1025" | "koi8-u" | "iso-8859-1" | "iso-8859-2" | "iso-8859-3" | "iso-8859-4" | "iso-8859-5" | "iso-8859-6" | "iso-8859-7" | "iso-8859-8" | "iso-8859-9" | "iso-8859-13" | "iso-8859-15" | "x-Europa" | "iso-8859-8-i" | "iso-2022-jp" | "csISO2022JP" | "iso-2022-kr" | "x-cp50227" | "euc-jp" | "EUC-CN" | "euc-kr" | "hz-gb-2312" | "GB18030" | "x-iscii-de" | "x-iscii-be" | "x-iscii-ta" | "x-iscii-te" | "x-iscii-as" | "x-iscii-or" | "x-iscii-ka" | "x-iscii-ma" | "x-iscii-gu" | "x-iscii-pa" | "utf-7" | "utf-8" | "utf-8-without-BOM"

key

description

IBM037

IBM EBCDIC (US-Canada)

IBM437

OEM United States

IBM500

IBM EBCDIC (International)

ASMO-708

Arabic (ASMO 708)

DOS-720

Arabic (DOS)

ibm737

Greek (DOS)

ibm775

Baltic (DOS)

ibm850

Western European (DOS)

ibm852

Central European (DOS)

IBM855

OEM Cyrillic

ibm857

Turkish (DOS)

IBM00858

OEM Multilingual Latin I

IBM860

Portuguese (DOS)

ibm861

Icelandic (DOS)

DOS-862

Hebrew (DOS)

IBM863

French Canadian (DOS)

IBM864

Arabic (864)

IBM865

Nordic (DOS)

cp866

Cyrillic (DOS)

ibm869

Greek, Modern (DOS)

IBM870

IBM EBCDIC (Multilingual Latin-2)

windows-874

Thai (Windows)

cp875

IBM EBCDIC (Greek Modern)

shift_jis

Japanese (Shift-JIS)

gb2312

Chinese Simplified (GB2312)

ks_c_5601-1987

Korean

big5

Chinese Traditional (Big5)

IBM1026

IBM EBCDIC (Turkish Latin-5)

IBM01047

IBM Latin-1

IBM01140

IBM EBCDIC (US-Canada-Euro)

IBM01141

IBM EBCDIC (Germany-Euro)

IBM01142

IBM EBCDIC (Denmark-Norway-Euro)

IBM01143

IBM EBCDIC (Finland-Sweden-Euro)

IBM01144

IBM EBCDIC (Italy-Euro)

IBM01145

IBM EBCDIC (Spain-Euro)

IBM01146

IBM EBCDIC (UK-Euro)

IBM01147

IBM EBCDIC (France-Euro)

IBM01148

IBM EBCDIC (International-Euro)

IBM01149

IBM EBCDIC (Icelandic-Euro)

utf-16

Unicode

unicodeFFFE

Unicode (Big endian)

windows-1250

Central European (Windows)

windows-1251

Cyrillic (Windows)

Windows-1252

Western European (Windows)

windows-1253

Greek (Windows)

windows-1254

Turkish (Windows)

windows-1255

Hebrew (Windows)

windows-1256

Arabic (Windows)

windows-1257

Baltic (Windows)

windows-1258

Vietnamese (Windows)

Johab

Korean (Johab)

macintosh

Western European (Mac)

x-mac-japanese

Japanese (Mac)

x-mac-chinesetrad

Chinese Traditional (Mac)

x-mac-korean

Korean (Mac)

x-mac-arabic

Arabic (Mac)

x-mac-hebrew

Hebrew (Mac)

x-mac-greek

Greek (Mac)

x-mac-cyrillic

Cyrillic (Mac)

x-mac-chinesesimp

Chinese Simplified (Mac)

x-mac-romanian

Romanian (Mac)

x-mac-ukrainian

Ukrainian (Mac)

x-mac-thai

Thai (Mac)

x-mac-ce

Central European (Mac)

x-mac-icelandic

Icelandic (Mac)

x-mac-turkish

Turkish (Mac)

x-mac-croatian

Croatian (Mac)

utf-32

Unicode (UTF-32)

utf-32BE

Unicode (UTF-32 Big endian)

x-Chinese-CNS

Chinese Traditional (CNS)

x-cp20001

TCA Taiwan

x-Chinese-Eten

Chinese Traditional (Eten)

x-cp20003

IBM5550 Taiwan

x-cp20004

TeleText Taiwan

x-cp20005

Wang Taiwan

x-IA5

Western European (IA5)

x-IA5-German

German (IA5)

x-IA5-Swedish

Swedish (IA5)

x-IA5-Norwegian

Norwegian (IA5)

us-ascii

US-ASCII

x-cp20261

T.61

x-cp20269

ISO-6937

IBM273

IBM EBCDIC (Germany)

IBM277

IBM EBCDIC (Denmark-Norway)

IBM278

IBM EBCDIC (Finland-Sweden)

IBM280

IBM EBCDIC (Italy)

IBM284

IBM EBCDIC (Spain)

IBM285

IBM EBCDIC (UK)

IBM290

IBM EBCDIC (Japanese katakana)

IBM297

IBM EBCDIC (France)

IBM420

IBM EBCDIC (Arabic)

IBM423

IBM EBCDIC (Greek)

IBM424

IBM EBCDIC (Hebrew)

x-EBCDIC-KoreanExtended

IBM EBCDIC (Korean Extended)

IBM-Thai

IBM EBCDIC (Thai)

koi8-r

Cyrillic (KOI8-R)

IBM871

IBM EBCDIC (Icelandic)

IBM880

IBM EBCDIC (Cyrillic Russian)

IBM905

IBM EBCDIC (Turkish)

IBM00924

IBM Latin-1

EUC-JP

Japanese (JIS 0208-1990 and 0212-1990)

x-cp20936

Chinese Simplified (GB2312-80)

x-cp20949

Korean Wansung

cp1025

IBM EBCDIC (Cyrillic Serbian-Bulgarian)

koi8-u

Cyrillic (KOI8-U)

iso-8859-1

Western European (ISO)

iso-8859-2

Central European (ISO)

iso-8859-3

Latin 3 (ISO)

iso-8859-4

Baltic (ISO)

iso-8859-5

Cyrillic (ISO)

iso-8859-6

Arabic (ISO)

iso-8859-7

Greek (ISO)

iso-8859-8

Hebrew (ISO-Visual)

iso-8859-9

Turkish (ISO)

iso-8859-13

Estonian (ISO)

iso-8859-15

Latin 9 (ISO)

x-Europa

Europa

iso-8859-8-i

Hebrew (ISO-Logical)

iso-2022-jp

Japanese (JIS)

csISO2022JP

Japanese (JIS-Allow 1 byte Kana)

iso-2022-kr

Korean (ISO)

x-cp50227

Chinese Simplified (ISO-2022)

euc-jp

Japanese (EUC)

EUC-CN

Chinese Simplified (EUC)

euc-kr

Korean (EUC)

hz-gb-2312

Chinese Simplified (HZ)

GB18030

Chinese Simplified (GB18030)

x-iscii-de

ISCII Devanagari

x-iscii-be

ISCII Bengali

x-iscii-ta

ISCII Tamil

x-iscii-te

ISCII Telugu

x-iscii-as

ISCII Assamese

x-iscii-or

ISCII Oriya

x-iscii-ka

ISCII Kannada

x-iscii-ma

ISCII Malayalam

x-iscii-gu

ISCII Gujarati

x-iscii-pa

ISCII Punjabi

utf-7

Unicode (UTF-7)

utf-8

Unicode (UTF-8)

utf-8-without-BOM

Unicode (UTF-8 without BOM)


ExportSettingsExcel

Ƭ ExportSettingsExcel: Object

Type declaration

Name

Type

AddTimestamp?

boolean

Author?

string

Categories?

string

EnableToggles?

boolean

FileFormat?

ExportSettingsFileFormat

FileFormat?

ExportSettingsExcelFileFormat

FilenameTemplate?

string

Orientation?

ExportSettingsOrientation

OutputFormat?

ExportSettingsExcelOutputFormat

PaperSize?

ExportSettingsPaperSize

Password?

string

ProtectedBy?

string

ReadOnlyRecommended?

boolean

SheetName?

string

SheetMode?

ExportSettingsExcelSheetMode

Title?

string

UseCompression?

boolean

UseDefaultPalette?

boolean

WritePassword?

string

AddTimestamp?: boolean


Author?: string


Categories?: string


EnableToggles?: boolean


FileFormat?: ExportSettingsExcelFileFormat


FilenameTemplate?: string


MultiSheet?: boolean


Orientation?: ExportSettingsOrientation


OutputFormat?: ExportSettingsExcelOutputFormat


Pagination?: boolean


PaperSize?: ExportSettingsPaperSize


Password?: string


ProtectedBy?: string


ReadOnlyRecommended?: boolean


SheetMode?: ExportSettingsExcelSheetMode


SheetName?: string


Title?: string


UseCompression?: boolean


UseDefaultPalette?: boolean


WritePassword?: string



ExportSettingsExcelFileFormat

Ƭ ExportSettingsExcelFileFormat: "Xlsx" | "Xls"

key

description

Xlsx

Xlsx

Xls

Xls


ExportSettingsExcelOutputFormat

Ƭ ExportSettingsExcelOutputFormat: "Transitional" | "Strict"

key

description

Transitional

Transitional

Strict

Strict


ExportSettingsExcelSheetMode

Ƭ ExportSettingsExcelSheetMode: "SingleSheet" | "SectionPerSheet" | "PagePerSheet"

key

description

SingleSheet

Single Sheet

SectionPerSheet

Section Per Sheet

PagePerSheet

Page Per Sheet


ExportSettingsExceldata

Ƭ ExportSettingsExceldata: Object

Type declaration

Name

Type

AddTimestamp?

boolean

AllowImages?

boolean

Author?

string

AutoRowsHeight?

boolean

Categories?

string

ColumnsDelimiter?

string

DateTimeFormat?

string

Encoding?

ExportSettingsEncoding

FileFormat?

ExportSettingsFileFormat

FileFormat?

ExportSettingsExceldataFileFormat

FilenameTemplate?

string

NoHeader?

boolean

NumericFormat?

string

NoHeader?

boolean

NumericFormat?

string

OpenXmlStandard?

ExportSettingsOpenXmlStandard

QuotationSymbol?

string

RightToLeft?

boolean

RowsDelimiter?

string

Title?

string

UseCompression?

boolean

AddTimestamp?: boolean


AllowImages?: boolean


Author?: string


AutoRowsHeight?: boolean


Categories?: string


ColumnsDelimiter?: string


DateTimeFormat?: string


Encoding?: ExportSettingsEncoding


FileFormat?: ExportSettingsExceldataFileFormat


FilenameTemplate?: string


NoHeader?: boolean


NumericFormat?: string


OpenXmlStandard?: ExportSettingsOpenXmlStandard


QuotationSymbol?: string


RightToLeft?: boolean


RowsDelimiter?: string


Title?: string


UseCompression?: boolean



ExportSettingsExtension

ExportSettingsExceldataFileFormat

Ƭ ExportSettingsExceldataFileFormat: "Xlsx" | "Csv"

key

description

Xlsx

Xlsx

Csv

Csv


ExportSettingsExtension

Ƭ ExportSettingsExtension: ExportSettingsCsvExtension


Deprecated


This type will be removed in future releases, use ExportSettingsCsvExtension instead.

ExportSettingsFileFormat

Ƭ ExportSettingsFileFormat: ExportSettingsExcelFileFormat


Deprecated


This type will be removed in future releases, use ExportSettingsExcelFileFormat instead.


ExportSettingsHorizontalPaddings

Ƭ ExportSettingsHorizontalPaddings: ExportSettingsTxtHorizontalPaddings


Deprecated


This type will be removed in future releases, use ExportSettingsTxtHorizontalPaddings instead.


ExportSettingsHtml

Ƭ ExportSettingsHtml: Object

Type declaration

Name

Type

AddTimestamp?

boolean

EmbedImages?

boolean

EndPage?

number

FilenameTemplate?

string

Fragment?

boolean

LinkTarget?

string

OutputTOC?

boolean

RenderMode?

ExportSettingsHtmlRenderMode

RenderingEngine?

ExportSettingsHtmlRenderingEngine

AddTimestamp?: boolean


EmbedImages?: boolean


EndPage?: number


FilenameTemplate?: string


Fragment?: boolean


LinkTarget?: string


OutputTOC?: boolean


RenderMode?: ExportSettingsHtmlRenderMode


RenderingEngine?: ExportSettingsHtmlRenderingEngine


StyleStream?: boolean


ExportSettingsHtmlRenderMode

Ƭ ExportSettingsHtmlRenderMode: "Galley" | "Paginated"

key

description

Galley

Galley

Paginated

Paginated


ExportSettingsHtmlRenderingEngine

Ƭ ExportSettingsHtmlRenderingEngine: "Html" | "Mixed"

key

description

Html

Html

Mixed

Mixed


ExportSettingsImage

Ƭ ExportSettingsImage: Object

Type declaration

Name

Type

AddTimestamp?

boolean

Dither?

boolean

DpiX?

number

DpiY?

number

EndPage?

number

FilenameTemplate?

string

ImageType?

ExportSettingsImageType

Pagination?

boolean

PrintLayoutMode?

ExportSettingsPrintLayoutMode

Quality?

number

SizeToFit?

boolean

StartPage?

number

WatermarkAngle?

number

WatermarkColor?

ExportSettingsWatermarkColor

WatermarkFontBold?

boolean

WatermarkFontFamily?

ExportSettingsWatermarkFontFamily

WatermarkFontItalic?

boolean

WatermarkFontSize?

number

WatermarkFontStrikeout?

boolean

WatermarkFontUnderline?

boolean

WatermarkTitle?

string

AddTimestamp?: boolean


Dither?: boolean


DpiX?: number


DpiY?: number


EndPage?: number


FilenameTemplate?: string


ImageType?: ExportSettingsImageType


Pagination?: boolean


PrintLayoutMode?: ExportSettingsPrintLayoutMode


Quality?: number


SizeToFit?: boolean


StartPage?: number


WatermarkAngle?: number


WatermarkColor?: ExportSettingsWatermarkColor


WatermarkFontBold?: boolean


WatermarkFontFamily?: ExportSettingsWatermarkFontFamily


WatermarkFontItalic?: boolean


WatermarkFontSize?: number


WatermarkFontStrikeout?: boolean


WatermarkFontUnderline?: boolean


WatermarkTitle?: string



ExportSettingsImageInterpolation

Ƭ ExportSettingsImageInterpolation: ExportSettingsPdfImageInterpolation


Deprecated


This type will be removed in future releases, use ExportSettingsPdfImageInterpolation instead


ExportSettingsImageType

Ƭ ExportSettingsImageType: "Png" | "Jpeg" | "Gif" | "Bmp" | "Tiff"

key

description

Png

PNG

Jpeg

JPEG

Gif

GIF

Bmp

BMP

Tiff

TIFF


ExportSettingsJson

Ƭ ExportSettingsJson: Object

Type declaration

Name

Type

AddTimestamp?

boolean

FilenameTemplate?

string

Formatted?

boolean

QuotePropertyNames?

boolean

AddTimestamp?: boolean


FilenameTemplate?: string


Formatted?: boolean


QuotePropertyNames?: boolean



ExportSettingsMap

Ƭ ExportSettingsMap: Object

Type declaration

Name

Type

csv

ExportSettingsCsv

docx

ExportSettingsDocx

excel

ExportSettingsExcel

exceldata

ExportSettingsExceldata

html

ExportSettingsHtml

image

ExportSettingsImage

json

ExportSettingsJson

pdf

ExportSettingsPdf

txt

ExportSettingsTxt

xml

ExportSettingsXml

csv: ExportSettingsCsv


docx: ExportSettingsDocx


excel: ExportSettingsExcel


exceldata: ExportSettingsExceldata


html: ExportSettingsHtml


image: ExportSettingsImage


json: ExportSettingsJson


pdf: ExportSettingsPdf


txt: ExportSettingsTxt


xml: ExportSettingsXml



ExportSettingsOpenXmlStandard

Ƭ ExportSettingsOpenXmlStandard: "Transitional" | "Strict"

key

description

Transitional

Transitional

Strict

Strict


ExportSettingsOrientation

Ƭ ExportSettingsOrientation: "Default" | "Portrait" | "Landscape"

key

description

Default

Default

Portrait

Portrait

Landscape

Landscape


ExportSettingsOutputFormat

Ƭ ExportSettingsOutputFormat: "Transitional" | "Strict"

Ƭ ExportSettingsOutputFormat: ExportSettingsExcelOutputFormat


Deprecated


This type will be removed in future releases, use ExportSettingsExcelOutputFormat instead.


ExportSettingsPaperSize

Ƭ ExportSettingsPaperSize: "Default" | "Letter" | "LetterSmall" | "Tabloid" | "Ledger" | "Legal" | "Statement" | "Executive" | "A3" | "A4" | "A4Small" | "A5" | "B4" | "B5" | "Folio" | "Quarto" | "Standard10x14" | "Standard11x17" | "Note" | "Number9Envelope" | "Number10Envelope" | "Number11Envelope" | "Number12Envelope" | "Number14Envelope" | "CSheet" | "DSheet" | "ESheet" | "DLEnvelope" | "C5Envelope" | "C3Envelope" | "C4Envelope" | "C6Envelope" | "C65Envelope" | "B4Envelope" | "B5Envelope" | "B6Envelope" | "ItalyEnvelope" | "MonarchEnvelope" | "PersonalEnvelope" | "USStandardFanfold" | "GermanStandardFanfold" | "GermanLegalFanfold" | "IsoB4" | "JapanesePostcard" | "Standard9x11" | "Standard10x11" | "Standard15x11" | "InviteEnvelope" | "LetterExtra" | "LegalExtra" | "TabloidExtra" | "A4Extra" | "LetterTransverse" | "A4Transverse" | "LetterExtraTransverse" | "APlus" | "BPlus" | "LetterPlus" | "A4Plus" | "A5Transverse" | "B5Transverse" | "A3Extra" | "A5Extra" | "B5Extra" | "A2" | "A3Transverse" | "A3ExtraTransverse" | "JapaneseDoublePostcard" | "A6" | "JapaneseEnvelopeKakuNumber2" | "JapaneseEnvelopeKakuNumber3" | "JapaneseEnvelopeChouNumber3" | "JapaneseEnvelopeChouNumber4" | "LetterRotated" | "A3Rotated" | "A4Rotated" | "A5Rotated" | "B4JisRotated" | "B5JisRotated" | "JapanesePostcardRotated" | "JapaneseDoublePostcardRotated" | "A6Rotated" | "JapaneseEnvelopeKakuNumber2Rotated" | "JapaneseEnvelopeKakuNumber3Rotated" | "JapaneseEnvelopeChouNumber3Rotated" | "JapaneseEnvelopeChouNumber4Rotated" | "B6Jis" | "B6JisRotated" | "Standard12x11" | "JapaneseEnvelopeYouNumber4" | "JapaneseEnvelopeYouNumber4Rotated" | "Prc16K" | "Prc32K" | "Prc32KBig" | "PrcEnvelopeNumber1" | "PrcEnvelopeNumber2" | "PrcEnvelopeNumber3" | "PrcEnvelopeNumber4" | "PrcEnvelopeNumber5" | "PrcEnvelopeNumber6" | "PrcEnvelopeNumber7" | "PrcEnvelopeNumber8" | "PrcEnvelopeNumber9" | "PrcEnvelopeNumber10" | "Prc16KRotated" | "Prc32KRotated" | "Prc32KBigRotated" | "PrcEnvelopeNumber1Rotated" | "PrcEnvelopeNumber2Rotated" | "PrcEnvelopeNumber3Rotated" | "PrcEnvelopeNumber4Rotated" | "PrcEnvelopeNumber5Rotated" | "PrcEnvelopeNumber6Rotated" | "PrcEnvelopeNumber7Rotated" | "PrcEnvelopeNumber8Rotated" | "PrcEnvelopeNumber9Rotated" | "PrcEnvelopeNumber10Rotated"

key

description

Default

Default

Default

Default

Letter

Letter (8.5" x 11")

LetterSmall

Letter Small (8.5" x 11")

Tabloid

Tabloid (11" x 17")

Ledger

Ledger (17" x 11")

Legal

Legal (8.5" x 14")

Statement

Statement (5.5" x 8.5")

Executive

Executive (7.25" x 10.5")

A3

A3 (29.7cm x 42cm)

A4

A4 (21cm x 29.7cm)

A4Small

A4 Small (21cm x 29.7cm)

A5

A5 (14.8cm x 21cm)

B4

B4 (25cm x 35.3cm)

B5

B5 (17.6cm x 25cm)

Folio

Folio (8.5" x 13")

Quarto

Quarto (21.5cm x 27.5cm)

Standard10x14

Standard (10" x 14")

Standard11x17

Standard (11" x 17")

Note

Note (8.5" x 11")

Number9Envelope

#9 Envelope (3.875" x 8.875")

Number10Envelope

#10 Envelope (4.125" x 9.5")

Number11Envelope

#11 Envelope (4.5" x 10.375")

Number12Envelope

#12 Envelope (4.75" x 11")

Number14Envelope

#14 Envelope (5" x 11.5")

CSheet

C (17" x 22")

DSheet

D (22" x 34")

ESheet

E (34" x 44")

DLEnvelope

DL Envelope (11cm x 22cm)

C5Envelope

C5 Envelope (16.2cm x 22.9cm)

C3Envelope

C3 Envelope (32.4cm x 45.8cm)

C4Envelope

C4 Envelope (22.9cm x 32.4cm)

C6Envelope

C6 Envelope (11.4cm x 16.2cm)

C65Envelope

C65 Envelope (11.4cm x 22.9cm)

B4Envelope

B4 Envelope (25cm x 35.3cm)

B5Envelope

B5 Envelope (17.6cm x 25cm)

B6Envelope

B6 Envelope (17.6cm x 12.5cm)

ItalyEnvelope

Italy Envelope (11cm x 23cm)

MonarchEnvelope

Monarch Envelope (3.875" x 7.5")

PersonalEnvelope

6 3/4 Envelope (3.625" x 6.5")

USStandardFanfold

US Standard Fanfold (14.875" x 11")

GermanStandardFanfold

German Standard Fanfold (8.5" x 12")

GermanLegalFanfold

German Legal Fanfold (8.5" x 13")

IsoB4

ISO B4 (25cm x 35.3cm)

JapanesePostcard

Japanese Postcard (10cm x 14.8cm)

Standard9x11

Standard (9" x 11")

Standard10x11

Standard (10" x 11")

Standard15x11

Standard (15" x 11")

InviteEnvelope

Invitation Envelope (22cm x 22cm)

LetterExtra

Letter Extra (9.275" x 12")

LegalExtra

Legal Extra (9.275" x 15")

TabloidExtra

Tabloid Extra (11.69" x 18")

A4Extra

A4 Extra (23.6cm x 32.2cm)

LetterTransverse

Letter Transverse (8.275" x 11")

A4Transverse

A4 Transverse (21cm x 29.7cm)

LetterExtraTransverse

Letter Extra Transverse (9.275" x 12")

APlus

SuperA/SuperA/A4 (22.7cm x 35.6cm)

BPlus

SuperB/SuperB/A3 (30.5cm x 48.7cm)

LetterPlus

Letter Plus (8.5" x 12.69")

A4Plus

A4 Plus (21cm x 33cm)

A5Transverse

A5 Transverse (14.8cm x 21cm)

B5Transverse

JIS B5 Transverse (18.2cm x 25.7cm)

A3Extra

A3 Extra (32.2cm x 44.5cm)

A5Extra

A5 Extra (17.4cm x 23.5cm)

B5Extra

B5 Extra (20.1cm x 27.6cm)

A2

A2 (42cm x 59.4cm)

A3Transverse

A3 Transverse (29.7cm x 42cm)

A3ExtraTransverse

A3 Extra Transverse (32.2cm x 44.5cm)

JapaneseDoublePostcard

Japanese Double Postcard (20cm x 14.8cm)

A6

A6 (10.5cm x 14.8cm)

JapaneseEnvelopeKakuNumber2

Japanese Kaku #2 Envelope

JapaneseEnvelopeKakuNumber3

Japanese Kaku #3 Envelope

JapaneseEnvelopeChouNumber3

Japanese Chou #3 Envelope

JapaneseEnvelopeChouNumber4

Japanese Chou #4 Envelope

LetterRotated

Letter Rotated (11" x 8.5")

A3Rotated

A3 Rotated (42cm x 29.7cm)

A4Rotated

A4 Rotated (29.7cm x 21cm)

A5Rotated

A5 Rotated (21cm x 14.8cm)

B4JisRotated

JIS B4 Rotated (36.4cm x 25.7cm)

B5JisRotated

JIS B5 Rotated (25.7cm x 18.2cm)

JapanesePostcardRotated

Japanese Rotated Postcard (14.8cm x 10cm)

JapaneseDoublePostcardRotated

Japanese Rotated Double Postcard (14.8cm x 20cm)

A6Rotated

A6 Rotated (14.8cm x 10.5cm)

JapaneseEnvelopeKakuNumber2Rotated

Japanese Rotated Kaku #2 Envelope

JapaneseEnvelopeKakuNumber3Rotated

Japanese Rotated Kaku #3 Envelope

JapaneseEnvelopeChouNumber3Rotated

Japanese Rotated Chou #3 Envelope

JapaneseEnvelopeChouNumber4Rotated

Japanese Rotated Chou #4 Envelope

B6Jis

JIS B6 (12.8cm x 18.2cm)

B6JisRotated

JIS B6 Rotated (18.2cm x 12.8cm)

Standard12x11

Standard (12" x 11")

JapaneseEnvelopeYouNumber4

Japanese You #4 Envelope

JapaneseEnvelopeYouNumber4Rotated

Japanese You #4 Rotated Envelope

Prc16K

16K (14.6cm x 21.5cm)

Prc32K

32K (9.7cm x 15.1cm)

Prc32KBig

32K Big (9.7cm x 15.1cm)

PrcEnvelopeNumber1

#1 Envelope (10.2cm x 16.5cm)

PrcEnvelopeNumber2

#2 Envelope (10.2cm x 17.6cm)

PrcEnvelopeNumber3

#3 Envelope (12.5cm x 17.6cm)

PrcEnvelopeNumber4

#4 Envelope (11cm x 20.8cm)

PrcEnvelopeNumber5

#5 Envelope (11cm x 22cm)

PrcEnvelopeNumber6

#6 Envelope (12cm x 23cm)

PrcEnvelopeNumber7

#7 Envelope (16cm x 23cm)

PrcEnvelopeNumber8

#8 Envelope (12cm x 30.9cm)

PrcEnvelopeNumber9

#9 Envelope (22.9cm x 32.4cm)

PrcEnvelopeNumber10

#10 Envelope (32.4cm x 45.8cm)

Prc16KRotated

16K Rotated (14.6cm x 21.5cm)

Prc32KRotated

32K Rotated (9.7cm x 15.1cm)

Prc32KBigRotated

32K Big Rotated (9.7cm x 15.1cm)

PrcEnvelopeNumber1Rotated

#1 Rotated Envelope (16.5cm x 10.2cm)

PrcEnvelopeNumber2Rotated

#2 Rotated Envelope (17.6cm x 10.2cm)

PrcEnvelopeNumber3Rotated

#3 Rotated Envelope (17.6cm x 12.5cm)

PrcEnvelopeNumber4Rotated

#4 Rotated Envelope (20.8cm x 11cm)

PrcEnvelopeNumber5Rotated

#5 Rotated Envelope (22cm x 11cm)

PrcEnvelopeNumber6Rotated

#6 Rotated Envelope (23cm x 12cm)

PrcEnvelopeNumber7Rotated

#7 Rotated Envelope (23cm x 16cm)

PrcEnvelopeNumber8Rotated

#8 Rotated Envelope (30.9cm x 12cm)

PrcEnvelopeNumber9Rotated

#9 Rotated Envelope (32.4cm x 22.9cm)

PrcEnvelopeNumber10Rotated

#10 Rotated Envelope (45.8cm x 32.4cm)


ExportSettingsPdf

Ƭ ExportSettingsPdf: Object

Type declaration

Name

Type

AddTimestamp?

boolean

Application?

string

Author?

string

CenterWindow?

boolean

DisplayMode?

ExportSettingsPdfDisplayMode

DisplayTitle?

boolean

DuplexMode?

ExportSettingsPdfDuplexMode

EmbedFonts?

ExportSettingsPdfEmbedFonts

EndPage?

number

FilenameTemplate?

string

FitWindow?

boolean

HideMenubar?

boolean

HideToolbar?

boolean

HideWindowUI?

boolean

ImageInterpolation?

ExportSettingsPdfImageInterpolation

Keywords?

string

NeverEmbedFonts?

string

NumberOfCopies?

number

OwnerPassword?

string

PaperSourceByPageSize?

boolean

Permissions?

ExportSettingsPermissions

Permissions?

ExportSettingsPdfPermissions

PrintOnOpen?

boolean

PrintPageRange?

string

SizeToFit?

boolean

StartPage?

number

Subject?

string

Title?

string

Use128Bit?

boolean

UserPassword?

string

Version?

ExportSettingsVersion

WatermarkColor?

ExportSettingsWatermarkColor

WatermarkFontBold?

boolean

WatermarkFontFamily?

ExportSettingsWatermarkFontFamily

WatermarkFontItalic?

boolean

WatermarkFontSize?

number

WatermarkFontStrikeout?

boolean

WatermarkFontUnderline?

boolean

WatermarkTitle?

string

AddTimestamp?: boolean


Application?: string


Author?: string


CenterWindow?: boolean


DisplayMode?: ExportSettingsPdfDisplayMode


DisplayTitle?: boolean


DuplexMode?: ExportSettingsPdfDuplexMode


EmbedFonts?: ExportSettingsPdfEmbedFonts


Encrypt?: boolean


EndPage?: number


FilenameTemplate?: string


FitWindow?: boolean


HideMenubar?: boolean


HideToolbar?: boolean


HideWindowUI?: boolean


ImageInterpolation?: ExportSettingsPdfImageInterpolation


IsPaginated?: boolean


Keywords?: string


NeverEmbedFonts?: string


NumberOfCopies?: number


OwnerPassword?: string


PaperSourceByPageSize?: boolean


Permissions?: ExportSettingsPdfPermissions


PrintLayoutMode?: ExportSettingsPrintLayoutMode


PrintOnOpen?: boolean


PrintPageRange?: string


SizeToFit?: boolean


StartPage?: number


Subject?: string


Title?: string


Use128Bit?: boolean


UserPassword?: string


Version?: ExportSettingsPdfVersion


WatermarkAngle?: number


WatermarkColor?: ExportSettingsWatermarkColor


WatermarkFontBold?: boolean


WatermarkFontFamily?: ExportSettingsWatermarkFontFamily


WatermarkFontItalic?: boolean


WatermarkFontSize?: number


WatermarkFontStrikeout?: boolean


WatermarkFontUnderline?: boolean


WatermarkTitle?: string



ExportSettingsPdfDisplayMode

Ƭ ExportSettingsPdfDisplayMode: "None" | "Outlines" | "Thumbs" | "FullScreen"

key

description

None

None

Outlines

Outlines

Thumbs

Thumbs

FullScreen

FullScreen


ExportSettingsPdfDuplexMode

Ƭ ExportSettingsPdfDuplexMode: "Simplex" | "DuplexFlipLongEdge" | "DuplexFlipShortEdge"

key

description

Simplex

Simplex

DuplexFlipLongEdge

Duplex Flip Long Edge

DuplexFlipShortEdge

Duplex Flip Short Edge


ExportSettingsPdfEmbedFonts

Ƭ ExportSettingsPdfEmbedFonts: "Partial" | "All" | "None"

key

description

Partial

Partial

All

All

None

None


ExportSettingsPdfImageInterpolation

Ƭ ExportSettingsPdfImageInterpolation: "Default" | "None"

key

description

Default

Default

None

None


ExportSettingsPdfPermissions

Ƭ ExportSettingsPdfPermissions: "None" | "AllowPrint" | "AllowModifyContents" | "AllowCopy" | "AllowModifyAnnotations" | "AllowFillIn" | "AllowAccessibleReaders" | "AllowAssembly" | "Default"

key

description

None

None

AllowPrint

Allow To Print

AllowModifyContents

Allow To Modify Contents

AllowCopy

Allow To Copy

AllowModifyAnnotations

Allow To Modify Annotations

AllowFillIn

Allow To Fill In

AllowAccessibleReaders

Allow Accessible Readers

AllowAssembly

Allow Assembly

Default

Default


ExportSettingsPdfVersion

Ƭ ExportSettingsPdfVersion: "Pdf12" | "Pdf13" | "Pdf14" | "Pdf15" | "Pdf16" | "Pdf17" | "PdfA1a" | "PdfA1b" | "PdfA2a" | "PdfA2b" | "PdfA2u" | "PdfA3a" | "PdfA3b" | "PdfA3u" | "PdfUA1"

key

description

Pdf12

PDF-1.2

Pdf13

PDF-1.3

Pdf14

PDF-1.4

Pdf15

PDF-1.5

Pdf16

PDF-1.6

Pdf17

PDF-1.7

PdfA1a

PDF/A-1a

PdfA1b

PDF/A-1b

PdfA2a

PDF/A-2a

PdfA2b

PDF/A-2b

PdfA2u

PDF/A-2u

PdfA3a

PDF/A-3a

PdfA3b

PDF/A-3b

PdfA3u

PDF/A-3u

PdfUA1

PDF/UA-1


ExportSettingsPermissions

Ƭ ExportSettingsPermissions: ExportSettingsPdfPermissions


Deprecated


This type will be removed in future releases, use ExportSettingsPdfPermissions instead


ExportSettingsPrintLayoutMode

Ƭ ExportSettingsPrintLayoutMode: "OneLogicalPageOnSinglePhysicalPage" | "TwoLogicalPagesOnSinglePhysicalPage" | "FourLogicalPagesOnSinglePhysicalPage" | "EightLogicalPagesOnSinglePhysicalPage" | "BookletMode"

key

description

OneLogicalPageOnSinglePhysicalPage

One Logical Page On Single Physical Page

TwoLogicalPagesOnSinglePhysicalPage

Two Logical Pages On Single Physical Page

FourLogicalPagesOnSinglePhysicalPage

Four Logical Pages On Single Physical Page

EightLogicalPagesOnSinglePhysicalPage

Eight Logical Pages On Single Physical Page

BookletMode

Booklet Mode


ExportSettingsRenderMode

Ƭ ExportSettingsRenderMode: ExportSettingsHtmlRenderMode


Deprecated


This type will be removed in future releases, use ExportSettingsHtmlRenderMode instead


ExportSettingsRenderingEngine

Ƭ ExportSettingsRenderingEngine: ExportSettingsHtmlRenderingEngine


Deprecated


This type will be removed in future releases, use ExportSettingsHtmlRenderingEngine instead

ExportSettingsTxt

Ƭ ExportSettingsTxt: Object

Type declaration

Name

Type

AddTimestamp?

boolean

CharHeightInTwips?

number

CharWidthInTwips?

number

FilenameTemplate?

string

HorizontalPaddings?

ExportSettingsHorizontalPaddings

HorizontalPaddings?

ExportSettingsTxtHorizontalPaddings

AddTimestamp?: boolean


CharHeightInTwips?: number


CharWidthInTwips?: number


FilenameTemplate?: string


HorizontalPaddings?: ExportSettingsTxtHorizontalPaddings


LineEnding?: string


ExportSettingsTxtHorizontalPaddings

Ƭ ExportSettingsTxtHorizontalPaddings: "Adjust" | "Remove" | "Keep"

key

description

Adjust

Adjust

Remove

Remove

Keep

Keep


ExportSettingsVersion

Ƭ ExportSettingsVersion: ExportSettingsPdfVersion


Deprecated


This type will be removed in future releases, use ExportSettingsPdfVersion instead.

ExportSettingsVersion


ExportSettingsWatermarkColor

Ƭ ExportSettingsWatermarkColor: "Transparent" | "Black" | "DarkSlateGray" | "SlateGray" | "LightSlateGray" | "DimGray" | "Gray" | "DarkGray" | "Silver" | "LightGrey" | "Gainsboro" | "WhiteSmoke" | "White" | "Snow" | "HoneyDew" | "MintCream" | "Azure" | "AliceBlue" | "GhostWhite" | "SeaShell" | "Beige" | "OldLace" | "FloralWhite" | "Ivory" | "AntiqueWhite" | "Linen" | "LavenderBlush" | "MistyRose" | "Pink" | "LightPink" | "HotPink" | "DeepPink" | "PaleVioletRed" | "MediumVioletRed" | "LightSalmon" | "Salmon" | "DarkSalmon" | "LightCoral" | "IndianRed" | "Crimson" | "FireBrick" | "DarkRed" | "Red" | "OrangeRed" | "Tomato" | "Coral" | "DarkOrange" | "Orange" | "Yellow" | "LightYellow" | "LemonChiffon" | "LightGoldenrodYellow" | "PapayaWhip" | "Moccasin" | "PeachPuff" | "PaleGoldenrod" | "Khaki" | "DarkKhaki" | "Gold" | "Cornsilk" | "BlanchedAlmond" | "Bisque" | "NavajoWhite" | "Wheat" | "BurlyWood" | "Tan" | "RosyBrown" | "SandyBrown" | "Goldenrod" | "DarkGoldenrod" | "Peru" | "Chocolate" | "SaddleBrown" | "Sienna" | "Brown" | "Maroon" | "DarkOliveGreen" | "Olive" | "OliveDrab" | "YellowGreen" | "LimeGreen" | "Lime" | "LawnGreen" | "Chartreuse" | "GreenYellow" | "SpringGreen" | "MediumSpringGreen" | "LightGreen" | "PaleGreen" | "DarkSeaGreen" | "MediumAquamarine" | "MediumSeaGreen" | "SeaGreen" | "ForestGreen" | "Green" | "DarkGreen" | "Aqua" | "Cyan" | "LightCyan" | "PaleTurquoise" | "Aquamarine" | "Turquoise" | "MediumTurquoise" | "DarkTurquoise" | "LightSeaGreen" | "CadetBlue" | "DarkCyan" | "Teal" | "LightSteelBlue" | "PowderBlue" | "LightBlue" | "SkyBlue" | "LightSkyBlue" | "DeepSkyBlue" | "DodgerBlue" | "CornflowerBlue" | "SteelBlue" | "RoyalBlue" | "Blue" | "MediumBlue" | "DarkBlue" | "Navy" | "MidnightBlue" | "Lavender" | "Thistle" | "Plum" | "Violet" | "Orchid" | "Fuchsia" | "Magenta" | "MediumOrchid" | "MediumPurple" | "BlueViolet" | "DarkViolet" | "DarkOrchid" | "DarkMagenta" | "Purple" | "Indigo" | "DarkSlateBlue" | "RebeccaPurple" | "SlateBlue" | "MediumSlateBlue"

key

description

Transparent

Transparent

Black

Black

DarkSlateGray

DarkSlateGray

SlateGray

SlateGray

LightSlateGray

LightSlateGray

DimGray

DimGray

Gray

Gray

DarkGray

DarkGray

Silver

Silver

LightGrey

LightGrey

Gainsboro

Gainsboro

WhiteSmoke

WhiteSmoke

White

White

Snow

Snow

HoneyDew

HoneyDew

MintCream

MintCream

Azure

Azure

AliceBlue

AliceBlue

GhostWhite

GhostWhite

SeaShell

SeaShell

Beige

Beige

OldLace

OldLace

FloralWhite

FloralWhite

Ivory

Ivory

AntiqueWhite

AntiqueWhite

Linen

Linen

LavenderBlush

LavenderBlush

MistyRose

MistyRose

Pink

Pink

LightPink

LightPink

HotPink

HotPink

DeepPink

DeepPink

PaleVioletRed

PaleVioletRed

MediumVioletRed

MediumVioletRed

LightSalmon

LightSalmon

Salmon

Salmon

DarkSalmon

DarkSalmon

LightCoral

LightCoral

IndianRed

IndianRed

Crimson

Crimson

FireBrick

FireBrick

DarkRed

DarkRed

Red

Red

OrangeRed

OrangeRed

Tomato

Tomato

Coral

Coral

DarkOrange

DarkOrange

Orange

Orange

Yellow

Yellow

LightYellow

LightYellow

LemonChiffon

LemonChiffon

LightGoldenrodYellow

LightGoldenrodYellow

PapayaWhip

PapayaWhip

Moccasin

Moccasin

PeachPuff

PeachPuff

PaleGoldenrod

PaleGoldenrod

Khaki

Khaki

DarkKhaki

DarkKhaki

Gold

Gold

Cornsilk

Cornsilk

BlanchedAlmond

BlanchedAlmond

Bisque

Bisque

NavajoWhite

NavajoWhite

Wheat

Wheat

BurlyWood

BurlyWood

Tan

Tan

RosyBrown

RosyBrown

SandyBrown

SandyBrown

Goldenrod

Goldenrod

DarkGoldenrod

DarkGoldenrod

Peru

Peru

Chocolate

Chocolate

SaddleBrown

SaddleBrown

Sienna

Sienna

Brown

Brown

Maroon

Maroon

DarkOliveGreen

DarkOliveGreen

Olive

Olive

OliveDrab

OliveDrab

YellowGreen

YellowGreen

LimeGreen

LimeGreen

Lime

Lime

LawnGreen

LawnGreen

Chartreuse

Chartreuse

GreenYellow

GreenYellow

SpringGreen

SpringGreen

MediumSpringGreen

MediumSpringGreen

LightGreen

LightGreen

PaleGreen

PaleGreen

DarkSeaGreen

DarkSeaGreen

MediumAquamarine

MediumAquamarine

MediumSeaGreen

MediumSeaGreen

SeaGreen

SeaGreen

ForestGreen

ForestGreen

Green

Green

DarkGreen

DarkGreen

Aqua

Aqua

Cyan

Cyan

LightCyan

LightCyan

PaleTurquoise

PaleTurquoise

Aquamarine

Aquamarine

Turquoise

Turquoise

MediumTurquoise

MediumTurquoise

DarkTurquoise

DarkTurquoise

LightSeaGreen

LightSeaGreen

CadetBlue

CadetBlue

DarkCyan

DarkCyan

Teal

Teal

LightSteelBlue

LightSteelBlue

PowderBlue

PowderBlue

LightBlue

LightBlue

SkyBlue

SkyBlue

LightSkyBlue

LightSkyBlue

DeepSkyBlue

DeepSkyBlue

DodgerBlue

DodgerBlue

CornflowerBlue

CornflowerBlue

SteelBlue

SteelBlue

RoyalBlue

RoyalBlue

Blue

Blue

MediumBlue

MediumBlue

DarkBlue

DarkBlue

Navy

Navy

MidnightBlue

MidnightBlue

Lavender

Lavender

Thistle

Thistle

Plum

Plum

Violet

Violet

Orchid

Orchid

Fuchsia

Fuchsia

Magenta

Magenta

MediumOrchid

MediumOrchid

MediumPurple

MediumPurple

BlueViolet

BlueViolet

DarkViolet

DarkViolet

DarkOrchid

DarkOrchid

DarkMagenta

DarkMagenta

Purple

Purple

Indigo

Indigo

DarkSlateBlue

DarkSlateBlue

RebeccaPurple

RebeccaPurple

SlateBlue

SlateBlue

MediumSlateBlue

MediumSlateBlue


ExportSettingsWatermarkFontFamily

Ƭ ExportSettingsWatermarkFontFamily: "Arial" | "Arial Black" | "Comic Sans MS" | "Courier New" | "Geneva" | "Georgia" | "Helvetica" | "Impact" | "Lucida Console" | "Meiryo" | "Meiryo UI" | "MingLiU" | "MingLiU-ExtB" | "MS Gothic" | "MS Mincho" | "MS PGothic" | "MS PMincho" | "MS Song" | "MS UI Gothic" | "NSimSun" | "Osaka" | "PMingLiU" | "PMingLiU-ExtB" | "SimSun" | "SimSun-ExtB" | "Song" | "Tahoma" | "Times New Roman" | "Trebuchet MS" | "Verdana" | "Yu Gothic"

key

description

Arial

Arial

Arial Black

Arial Black

Comic Sans MS

Comic Sans MS

Courier New

Courier New

Geneva

Geneva

Georgia

Georgia

Helvetica

Helvetica

Impact

Impact

Lucida Console

Lucida Console

Meiryo

Meiryo

Meiryo UI

Meiryo UI

MingLiU

MingLiU

MingLiU-ExtB

MingLiU-ExtB

MS Gothic

MS Gothic

MS Mincho

MS Mincho

MS PGothic

MS PGothic

MS PMincho

MS PMincho

MS Song

MS Song

MS UI Gothic

MS UI Gothic

NSimSun

NSimSun

Osaka

Osaka

PMingLiU

PMingLiU

PMingLiU-ExtB

PMingLiU-ExtB

SimSun

SimSun

SimSun-ExtB

SimSun-ExtB

Song

Song

Tahoma

Tahoma

Times New Roman

Times New Roman

Trebuchet MS

Trebuchet MS

Verdana

Verdana

Yu Gothic

Yu Gothic


ExportSettingsXml

Ƭ ExportSettingsXml: Object

Type declaration

Name

Type

AddTimestamp?

boolean

DefaultDateFormat?

string

FilenameTemplate?

string

Formatted?

boolean

OutputHiddenMatrixMembers?

boolean

OutputTextboxConstantValues?

boolean

WriteEmptyAttributes?

boolean

AddTimestamp?: boolean


DefaultDateFormat?: string


FilenameTemplate?: string


Formatted?: boolean


OutputHiddenMatrixMembers?: boolean


OutputTextboxConstantValues?: boolean


WriteEmptyAttributes?: boolean



ExportType

Ƭ ExportType: "pdf" | "excel" | "exceldata" | "docx" | "csv" | "html" | "image" | "json" | "txt" | "xml"

All supported exports.


GetLocalizationResourcesErrorResult

Ƭ GetLocalizationResourcesErrorResult: Object

Type of error result returned by the GrapeCity.WynReports.Viewer.getLocalizationResources() function.

Type declaration

Name

Type

errorCaption

string

errorDetails

string[]

type

"error"

errorCaption: string

Error caption.


errorDetails: string[]

Error details.


type: "error"

Error result type.



GetLocalizationResourcesResult

Ƭ GetLocalizationResourcesResult: GetLocalizationResourcesSuccessResult | GetLocalizationResourcesErrorResult

Type of result returned by the GrapeCity.WynReports.Viewer.getLocalizationResources() function.


GetLocalizationResourcesSuccessResult

Ƭ GetLocalizationResourcesSuccessResult: Object

Type of success result returned by the GrapeCity.WynReports.Viewer.getLocalizationResources() function.

Type declaration

Name

Type

resourceBundles

LocalizationResourceBundle[] | undefined

type

"success"

resourceBundles: LocalizationResourceBundle[] | undefined

Localization resource bundles.


type: "success"

Success result type.



HoverChartAnimationOptions

Ƭ HoverChartAnimationOptions: Object

Describes hover chart animations that can be applied to the report view.

Type declaration

Name

Type

enabled?

boolean

enabled?: boolean

Enable hover chart animation. Default value: false.

Example

enabled: true


HoverTableAnimationOptions

Ƭ HoverTableAnimationOptions: Object

Describes hover table and tablix animations that can be applied to the report view.

Type declaration

Name

Type

backgroundColor?

string

enabled?

boolean

textColor?

string

backgroundColor?: string

Specifies the background color when hovering over the table and tablix row.

  • Default value: '$theme'.

  • '$theme' - background color is used from theme background color.

  • '$none' - background color remains unchanged.

  • 'LightGray'|'#6495ed'|... - background color is used from value.

See this link for more information on colors.

Example

backgroundColor: 'LightGray'

enabled?: boolean

Enable hover table and tablix animations. Default value: false.

Example

enabled: true

textColor?: string

Specifies the text color on hover over the table and tablix row.

  • Default value: '$theme'.

  • '$theme' - text color is used from theme text color.

  • '$none' - text color remains unchanged.

  • 'LightGray'|'#6495ed'|... - text color is used from value.

See this link for more information on colors.

Example

textColor: 'DarkGray'


HyperlinkOptions

Ƭ HyperlinkOptions: Object

Describes hyperlink text color options.

Type declaration

Name

Type

hoveredTextColor?

string

textColor?

string

visitedTextColor?

string

hoveredTextColor?: string

Specifies the hovered hyperlink text color on urls, bookmarks, and reports.

  • Default value: '#0000cc'.

  • '$theme' - hovered hyperlink text color is used from theme hyperlink text color.

  • '$none' - hovered hyperlink text color remains unchanged.

  • 'LightGray'|'#6495ed'|... - hovered hyperlink text color is used from value.

See this link for more information on colors.

Example

hoveredTextColor: '#5f5fee'

textColor?: string

Specifies the hyperlink text color on urls, bookmarks, and reports.

  • Default value: '#0000ff'.

  • '$theme' - hyperlink text color is used from theme hyperlink text color.

  • '$none' - hyperlink text color remains unchanged.

  • 'LightGray'|'#6495ed'|... - hyperlink text color is used from value.

See this link for more information on colors.

Example

textColor: '#0000ee'

visitedTextColor?: string

Specifies the visited hyperlink text color on urls, bookmarks, and reports.

  • Default value: '#800080'.

  • '$theme' - visited hyperlink text color is used from theme hyperlink text color.

  • '$none' - visited hyperlink text color remains unchanged.

  • 'LightGray'|'#6495ed'|... - visited hyperlink text color is used from value.

See this link for more information on colors.

Example

visitedTextColor: '#551a8b'


InitViewerOptions

Ƭ InitViewerOptions: InitViewerOptionsBase & InitViewerOptionsOther

The following options can be set during initialization or at runtime while working with the Viewer.


InitViewerOptionsBase

Ƭ InitViewerOptionsBase: Object

The base primary options of the InitViewerOptions type.

Type declaration

Name

Type

element

string

locale?

string

portalUrl?

string

referenceToken?

string

referenceTokenKey?

string

reportId?

string

reportParameters?

Parameter[]

element: string

A DOMString that specifies the element hosting the Viewer control.

Example

element: 'report-viewer-app'

locale?: string

Specifies locale used for displaying Viewer.

If locale is not specified explicitly here, the locale corresponding to the browser preferences is used.

Example

locale: 'zh'

portalUrl?: string

Wyn Portal URL.

Example

portalUrl: 'https://wyn-portal.com/'

referenceToken?: string

The reference key needed to access the Wyn API.

Example

referenceToken: '<referenceToken>'

referenceTokenKey?: string

The reference key name used in query parameters is configured in the Wyn Config file.

If referenceTokenKey is not specified, default value is 'token'.

Example

referenceTokenKey: '<referenceTokenKey>';

reportId?: string

The ID of the report to be shown by the Viewer.

Deprecated

Use

await viewer.openReport('<reportId>', { parameters: [{ name: 'myString', values: ['123'] }] });

Example

reportId: '<reportId>'

reportParameters?: Parameter[]


The array of the {name, value} pairs that describe the parameters values used to run the report.


Deprecated


Use

await viewer.openReport('<reportId>', { parameters: [{ name: 'myString', values: ['123'] }] });

Example

// String parameters
reportParameters: [{ name: 'myString', values: ['123'] }]

// Float parameters
reportParameters: [{ name: 'myFloat', values: [23.4] }]

// Integer parameters
reportParameters: [{ name: 'myInteger', values: [345] }]

// DateTime parameters
reportParameters: [{ name: 'myDateTime', values: ['2020-11-13T16:47:59.000Z'] }]

// Date parameters
reportParameters: [{ name: 'myDate', values: ['2020-11-13T16:47:59.000Z'] }]

// Boolean parameters
reportParameters: [{ name: 'myBoolean', values: [true] }]

// Multivalue string parameters
reportParameters: [{ name: 'Country', values: ['China', 'Russia'] }]

InitViewerOptionsOther

Ƭ InitViewerOptionsOther: Object

The other secondary options of the InitViewerOptions type.

Type declaration

Name

Type

animation?

AnimationOptions

availableExports?

ExportType[]

disableFocusTimer?

boolean

displayType?

DisplayType

hideSearch?

boolean

hideToolbar?

boolean

hyperlink?

HyperlinkOptions

isFullscreen?

boolean

makeTitle?

(reportName: string) => string

pageViewOptions?

PageViewOptions

paramPanelPosition?

PanelsLocation

paramPanelShowMode?

ParamPanelShowMode

parameterPanel?

ParameterPanelOptions

toolbarSize?

"small" | "medium" | "large"

viewMode?

ViewMode

zoomMode?

ZoomMode

animation?: AnimationOptions

The report's view animation options. By default, animation is disabled.

Example

animation: { hoverTable: { enabled: true } }

availableExports?: ExportType[]

The array of export types available via Export functionality of Viewer. By default, all ExportType values are used.

Example

availableExports: ['xml', 'pdf']

disableFocusTimer?: boolean

Disables focus highlighting timer for better accessibility.

Example

disableFocusTimer: false

displayType?: DisplayType

Set up the display type. The default value is report display type.

Example

displayType: 'Galley'

hideSearch?: boolean

A flag specifying whether to hide the search panel. Default value: false.

Example

hideSearch: true

hideToolbar?: boolean

A flag specifying whether to hide the toolbars. Default value: false.

Example

hideToolbar: true

hyperlink?: HyperlinkOptions

Defines hyperlink text color settings.

Example

hyperlink: { textColor: '#0000ee', visitedTextColor: '#551a8b', hoveredTextColor: '#5f5fee' }

isFullscreen?: boolean

A flag specifying whether to enable fullscreen mode. Default value: fullscreen mode value specified in the opened report.

Example

isFullscreen: true

makeTitle?: (reportName: string) => string

Makes the Viewer display the custom title.

Example

makeTitle: (reportName) => reportName + ' - Wyn Enterprise'

pageViewOptions?: PageViewOptions

Defines horizontal alignment and view for the report page, like part of the WebPage or 'paper view'.

Example

pageViewOptions: { horizontalAlignment: 'right', withoutPaperView: true }

paramPanelPosition?: PanelsLocation

Set up the parameters for panel position. Default value: 'Right'.

Deprecated

Example

paramPanelPosition: 'Top'

paramPanelShowMode?: ParamPanelShowMode

Set up a rule for showing the parameter panel. If the value is 'Always', the parameter panel is shown anyway on the document opening event. Default value: 'Default'.

Deprecated

Example

paramPanelShowMode: 'Always'

parameterPanel?: ParameterPanelOptions

Defines parameter panel options.

Example

parameterPanel: { position: 'Right', showMode: 'Always', roundedControls: true, enableInlinePreviewButton: false }

toolbarSize?: "small" | "medium" | "large"

Defines toolbar size. Default value: 'large'.

Example

toolbarSize: 'small'

viewMode?: ViewMode

Set up a single or continuous page. Default value: 'Single'.

Example

viewMode: 'Continuous'

zoomMode?: ZoomMode

Set up zoom mode. Default value is 'Default'.

Example

zoomMode: 'FitToWidth'


LoadChartAnimationOptions

Ƭ LoadChartAnimationOptions: Object

Describes load chart animations that can be applied to the report view.

Type declaration

Name

Type

enabled?

boolean

enabled?: boolean

Enable load chart animation. Default value: false.

Example

enabled: true


LocalizationResourceBundle

Ƭ LocalizationResourceBundle: Object

Type of the GetLocalizationResourcesSuccessResult.resourceBundles array element.

Type declaration

Name

Type

ns

string

resources

Record<string, any>

ns: string

Bundle namespace.


resources: Record<string, any>

Localization resources.



OpenReportOptions

Ƭ OpenReportOptions: Object

Describes the open report options.

Type declaration

Name

Type

parameters?

Parameter[]

parameters?: Parameter[]

The array of the report parameters values.

Example

// String parameters
parameters: [{ name: 'Country', values: ['China'] }, { name: 'Category', values: ['City'] }])

// Float parameters
parameters: [{ name: 'myFloat', values: [23.4] }])

// Integer parameters
parameters: [{ name: 'myInteger', values: [345] }])

// DateTime parameters
parameters: [{ name: 'myDateTime', values: ['2020-11-13T16:47:59.000Z'] }])

// Date parameters
parameters: [{ name: 'myDate', values: ['2020-11-13T16:47:59.000Z'] }])

// Boolean parameters
parameters: [{ name: 'myBoolean', values: [true] }])

// Multivalue string parameters
parameters: [{ name: 'Country', values: ['China', 'Russia'] }])

OverridableToolbarButton

Ƭ OverridableToolbarButton: "$print"

Key

Description

$print

'Print' button.


PageViewOptions

Ƭ PageViewOptions: Object

Describes the page view options.

Type declaration

Name

Type

horizontalAlignment?

"left" | "right" | "center"

withoutPaperView?

boolean

horizontalAlignment?: "left" | "right" | "center"

Defines horizontal alignment for report pages inside the view area. Default value: 'center'.

Example

horizontalAlignment: 'left'

withoutPaperView?: boolean

Removes 'gray' backgrounds, shadows, paper borders, and other things that make 'paper view'. Default value: false.

Example

withoutPaperView: true


PanelsLocation

Ƭ PanelsLocation: "Top" | "Right"

All supported panel locations.


ParamPanelShowMode

Ƭ ParamPanelShowMode: "Default" | "Always"

All supported parameter panel show modes.


Parameter

Ƭ Parameter: Object

Describes the parameter value used to run the report.

Type declaration

Name

Type

name

string

values

any[]

name: string

The name of the parameter.

Example

name: 'Parameter1'

values: any[]

The value(s) of the parameter.

Example

values: ['a', 'b', 'c']

ParameterPanelInitValidationMode

Ƭ ParameterPanelInitValidationMode: "Full" | "Fast"


Parameter panel's init validation modes.


ParameterPanelOptions

Ƭ ParameterPanelOptions: Object

Describes parameter panel options.

Type declaration

Name

Type

enableInlinePreviewButton?

boolean

initValidationMode?

ParameterPanelInitValidationMode

position?

PanelsLocation

roundedControls?

boolean

showMode?

ParamPanelShowMode

enableInlinePreviewButton?: boolean


Specifies whether to enable inline Preview button in Multivalue parameter dropdown.

If set to true, inline Preview button will be shown inside dropdown if any value is selected.

Default value: true.


initValidationMode?: ParameterPanelInitValidationMode


Specifies validation mode on parameter panel's initialization.

  • If this option is set to 'Full' then all validation will be performed as usual.

  • If this option is set to 'Fast' then only basic validation of parameters will take place. This might increase Viewer opening speed significantly, however please ensure that all passed parameters values are valid.

    When this option is set to 'Fast', parameter panel will be initialized with parameter's default values or values passed to Viewer on initialization (from URL, Jump To options, Viewer API, or Data Filters). This option takes effect only if all parameters values are defined constants.

  • If any of the parameters values are not set or invalid then 'Full' validation mode will be used.

    Default value: 'Full'.

position?: PanelsLocation

Set up the parameters for panel position. Default value: 'Right'.


roundedControls?: boolean

Enables rounded corners of the parameter panel's controls. Default value: false.


showMode?: ParamPanelShowMode

Set up a rule for showing the parameter panel. If value is 'Always', parameter panel is shown anyway on the document opening event. Default value: 'Default'.


PartialDeep

Ƭ PartialDeep<K>: { [attr in keyof K]?: K[attr] extends object ? PartialDeep<K[attr]> : K[attr] }


Generic to create a type from another type with all keys and nested keys set to optional.

Type parameters

Name

K


PartialDeepViewerOptionsOther

Ƭ PartialDeepViewerOptionsOther: PartialDeep<InitViewerOptionsOther>


This type is derived from InitViewerOptionsOther but all its properties are recursively optional.


ReportInfo

Ƭ ReportInfo: Object

Information on the opened report.

Type declaration

Name

Type

displayType

DisplayType

name

string

displayType: DisplayType

The display type of the report.


name: string

The name of the report.



ReportRenderedEventArgs

Ƭ ReportRenderedEventArgs: Object

The reportRendered event args.

Type declaration

Name

Type

cancelled?

boolean

reportId

string

totalPages

number

cancelled?: boolean

Tells whether the report rendering was cancelled. If the value is false or undefined, it means the report was fully rendered.


reportId: string

Report ID.


totalPages: number

Number of rendered report pages.



SearchOptions

Ƭ SearchOptions: Object

Describes the search options.

Type declaration

Name

Type

matchCase?

boolean

wholePhrase?

boolean

matchCase?: boolean

Specifies whether the search is case-sensitive. Default value: false.

Example

matchCase: true

wholePhrase?: boolean

Specifies whether the search should look for a whole phrase. Default value: false.

Example

wholePhrase: true


SearchResult

Ƭ SearchResult: Object

Describes the search result.

Type declaration

Name

Type

DisplayText

string

PageIndex

number

DisplayText: string

Text to display.


PageIndex: number

The index of the page where the occurrence is found.



SetViewModeValue

Ƭ SetViewModeValue: ViewMode | "Galley"


SetZoomModeValue

Ƭ SetZoomModeValue: number | "FitToWidth" | "FitToPage"


UnregisterEventHandler

Ƭ UnregisterEventHandler: () => void

Type declaration

▸ (): void

Unregister event handler.

Returns

void


ViewMode

Ƭ ViewMode: typeof ALL_VIEW_MODES[number]

All supported view modes.


Viewer

Ƭ Viewer: Object

Type representing a Viewer instance.

Type declaration

Name

Type

backToParent

() => void

destroy

() => void

export

<T>(exportType: T, options?: ExportOptions<T>) => Promise<ExportResult>

getCurrentPage

() => number

getPageCount

() => number

goToPage

(pageNumber: number) => void

onReportRendered

() => Event<ReportRenderedEventArgs>

openReport

(reportId: string, options?: OpenReportOptions) => Promise<ReportInfo>

overrideToolbarAction

(toolbarButton: OverridableToolbarButton, action: () => void) => void

print

() => Promise<void>

refresh

() => void

search

(searchTerm: string, options?: SearchOptions) => Promise<SearchResult[]>

setViewMode

(value: SetViewModeValue) => void

setZoomMode

(value: SetZoomModeValue) => void

toggleFullscreen

(enable?: boolean) => void

toggleSidebar

(show?: boolean) => void

backToParent: () => void

Makes the viewer to display the parent report of the drill-down report.

Example

viewer.backToParent();

destroy: () => void

Removes the Viewer content from the element.

Example

viewer.destroy();

export: <T>(exportType: T, options?: ExportOptions<T>) => Promise<ExportResult>

Exports the currently displayed report.

Example

await viewer.export('pdf', { settings: { Title: '1997 Annual Report' } });

getCurrentPage: () => number

Gets the currently displayed page number.

Example

const currentPage = viewer.getCurrentPage();
console.log(currentPage);

getPageCount: () => number

Gets the page count of the currently displayed report.

Example

const pageCount = viewer.getPageCount();
console.log(pageCount);

goToPage: (pageNumber: number) => void

Makes the viewer to display the specific page. Page numbering starts with 1.

Example

viewer.goToPage(1);

onReportRendered: () => Event<ReportRenderedEventArgs>

Set and register reportRendered event that occurs once a document is fully rendered.

Example

const unregister = viewer.onReportRendered().register((args) => { console.log('Report was rendered!', args); });
// It is possible to unregister this event handler when it is not needed anymore.
unregister();

openReport: (reportId: string, options?: OpenReportOptions) => Promise<ReportInfo>

Opens report.

Example

const reportInfo = await viewer.openReport('<reportId>', { parameters: [{ name: 'myString', values: ['123'] }] });
console.log('The report ' + reportInfo.name + ' was successfully loaded!')

overrideToolbarAction: (toolbarButton: OverridableToolbarButton, action: () => void) => void

Customize toolbar action.

Example

viewer.overrideToolbarAction('$print', () => { console.log('Print'); })

print: () => Promise<void>

Prints the currently displayed report, if any.

Example

await viewer.print();

refresh: () => void

Refreshes the report preview.

Example

viewer.refresh();

search: (searchTerm: string, options?: SearchOptions) => Promise<SearchResult[]>

Performs the search of a specific term with specific search options.

Example

const searchResult = await viewer.search('a', { matchCase: true, wholePhrase: false });
console.log(searchResult);

setViewMode: (value: SetViewModeValue) => void

Sets view mode.

Example

viewer.setViewMode('Galley');

setZoomMode: (value: SetZoomModeValue) => void

Sets zoom mode.

Example

Set zoom mode to 'FitToPage'.

viewer.setZoomMode('FitToPage');

Example

Zoom mode can be specified as a factor. Valid values are from this interval: [0.25, 3].

viewer.setZoomMode(1.2);

toggleFullscreen: (enable?: boolean) => void

Sets or toggles fullscreen mode.

Example

Enable fullscreen mode

viewer.toggleFullscreen(true);

Example

Disable fullscreen mode

viewer.toggleFullscreen(false);

Example

Toggle fullscreen mode

viewer.toggleFullscreen();

toggleSidebar: (show?: boolean) => void

Sets or toggles the sidebar's panels visibility.

Example

Show panel

viewer.toggleSidebar(true);

Example

Hide panel

viewer.toggleSidebar(false);

Example

Toggle visibility

viewer.toggleSidebar();


ViewerApi

Ƭ ViewerApi: Object

Type of the GrapeCity.WynReports.Viewer object.

Type declaration

Name

Type

addLocalization

(lng: string, resourceBundles: LocalizationResourceBundle[]) => AddLocalizationResult

create

(options: InitViewerOptions) => Viewer

getLocalizationResources

(lng: string, portalUrl: string, referenceToken?: string) => Promise<GetLocalizationResourcesResult>

addLocalization: (lng: string, resourceBundles: LocalizationResourceBundle[]) => AddLocalizationResult

Adds custom localization resources for the Report Viewer. Then it is required to pass lng to initViewerOptions.locale to apply the added resources.

Example

const result = GrapeCity.WynReports.Viewer.addLocalization('zh-CN', resourceBundles);
if (result.type === 'success') initViewerOptions.locale = 'zh-CN';
else console.error([result.errorCaption, ...result.errorDetails].join('\n'));

create: (options: InitViewerOptions) => Viewer

Creates and initializes Viewer.

Example

const viewer = GrapeCity.WynReports.Viewer.create({
	element: 'report-viewer-app',
	portalUrl: 'http://wyn-portal.com/',
	referenceToken: '<referenceToken>',
	reportId: '<reportId>',
});

getLocalizationResources: (lng: string, portalUrl: string, referenceToken?: string) => Promise<GetLocalizationResourcesResult>

Gets custom localization resources provided by the Wyn API. Obtained resources are intended for GrapeCity.WynReports.Viewer.addLocalization().

Example

const result = GrapeCity.WynReports.Viewer.getLocalizationResources('zh-CN', '<portalUrl>', '<referenceToken>');
if (result.type === 'success') GrapeCity.WynReports.Viewer.addLocalization('zh-CN', result.resourceBundles);
else console.error([result.errorCaption, ...result.errorDetails].join('\n'));


ZoomMode

Ƭ ZoomMode: typeof ALL_ZOOM_MODES[number]

All supported zoom modes.