Skip to main content

SpreadsheetDocument.ConvertToCompactMode

ConvertToCompactMode

Syntax

ConvertToCompactMode(<Width>, <WidthUse>)

Parameters

<Width> (optional)

Type: Number. Specifies the maximum spreadsheet document content width (in "average characters"). The spreadsheet document width wiil be reduced to this value. If the parameter is not specified, the maximum width is calculated automatically based on the end user device information. If this data is not available, the default value of 20 is used,

<WidthUse> (optional)

Type: UseSpreadsheetDocumentWidthReduction. Specifies the usage of the width that is passed in the first parameter.

Description

Converts current spreadsheet document to a compact form. The converted document width does not exceed the passed value. If the passed value is too small, the convertion will be canceled. If you want to reduce the width of a spreadsheet document embedded in a form to the width of the spreadsheet document field, it is recommended that you use the return value of GetRecommendedReductionWidth method of the spreadsheet document form field extension as the new width.

Availability

Server, thick client.

See also

Form field extension for a spreadsheet document field, method GetRecommendedReductionWidth

Translation

Русская версия: ТабличныйДокумент.ПреобразоватьВКомпактныйДокумент (SpreadsheetDocument.ConvertToCompactMode)