SpreadsheetDocument.CheckPut

Syntax:

CheckPut(<Tables>)

Parameters:

<Tables> (required)

Type: Array; SpreadsheetDocument.
Array consisting of tables being checked or spreadsheet document.

Returned value:

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

Description:

Checks whether given spreadsheet documents can be placed into one page 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.
It should be noted that if margins for a spreadsheet document are smaller than those set for the printer which will print the document, the content of some strings may not fit the page, even if the method returns value True.

Example:

T.Add(DocumentHeader);
T.Add(DocumentRow);
T.Add(DocumentFooter);
If 
Not Spreadsheet.CheckPut(T) Then
    Message("Document doesn't fit the page");
EndIf
;

See also:

SpreadsheetDocument, method CheckAttachment

    

1C:Enterprise Developer's Community