SpreadsheetDocument.CheckAttachment

Syntax:

CheckAttachment(<Tables>)

Parameters:

<Tables> (required)

Type: Array.
Array of tables being checked.

Returned value:

Type: Boolean.
True - can be placed; False - otherwise.
True - if FitToPage=True.

Description:

Checks whether given spreadsheet documents can be placed into one page by width by printing.

Availability:

Server, thick client, external connection.

Note:

If there is a problem obtaining information about the current printer (for example, no printer is set in the system), exception will be called.

Example:

//Tables - array of tables
//Column - area being added(has the SpreadsheetDocument type)
Tables.Add(Column);
If 
Not Spreadsheet.CheckAttachment(Tables) Then
    Message("Document can't fit the page width!");
EndIf
;

See also:

SpreadsheetDocument, method CheckPut

    

1C:Enterprise Developer's Community