SpreadsheetDocument.Write

Syntax:

Write(<FileName>, <SpreadsheetFileType>)

Parameters:

<FileName> (required)

Type: String.
Name of the file where spreadsheet document is saved.

<SpreadsheetFileType> (optional)

Type: SpreadsheetDocumentFileType.
Format in which spreadsheet document will be saved.
Default value: MXL.

Description:

It records a spreadsheet document into the file.

Availability:

Thin client, web-client, server, thick client, external connection, Mobile application (client), Mobile application (server).

Note:

You cannot save files in XLS95 format when working on the server or the web client or using the COM connection.
Saving Metafile pictures to PDF is not supported.
When working on the web client, the method execution calls the server.
When you work on a mobile platform, only XML and PDF formats can be used for saving.
When written to a PDF file, lines in the document cells can be wrapped somewhat differently from the way they displayed on the monitor. This can impact the height of lines for which the automatic height is specified.
When PDF format is output, fonts that cannot be embedded or are not TrueType or OpenType fonts, are replaced with Arial font. If this font is not found, Helvetica font is used.

Example:

Spreadsheet.Write("C:\My Documents\Table2.mxl");

    

1C:Enterprise Developer's Community