Returns the page format.

syntaxSyntax:
DlxGraphixDocument.SetPageFormat(format, portrait)

Parameters

Parameter Description
format A string containing the name of the page format.
portrait Specify true if page is to be oriented in portrait mode or false for landscape mode.

Return Value

Returns true if the document is open and the page size is set correctly. Returns false if the document is closed.

Example

  Copy codeCopy code
var doc = DlxApp.GetJob().FindDocument("Examples Sch", DlxApp.DOCTYPE_SCHEMATIC);
if (doc.IsValid() && !doc.SetPageFormat("A3", false))
{
  DlxApp.Printf("Unable to set the page size.");
}

See also