PrintSettings GitHub

📊 Overview: 5 Properties 1 Constructor 5 Functions

📝 Description

Creates print settings object with optional default values, optionally using system default printer

🕐 Last updated: 2025-12-10T11:45:23.804Z


📑 Table of Contents


Properties

Property Type Default Description
Name Text - Name of the printer to use
Paper Text - Paper size/format name
Orientation Integer - Page orientation: 1=Portrait, 2=Landscape
Copies Integer - Number of copies to print
CurrentPrinter Text - Name of printer that was active before applying settings

Constructor

constructor

[🏗️ constructor]

Class constructor($UseSystemDefaultPrinter : Boolean; $Paper : Text; $Copies : Integer; $Orientation : Integer)

Creates print settings object with optional default values, optionally using system default printer

Parameters:

Name Type Optional Description
$UseSystemDefaultPrinter Boolean - -
$Paper Text - -
$Copies Integer - -
$Orientation Integer - -

Functions

Regular Functions

display

Function display -> $Accepted : Boolean

Displays a dialog for user to select printer settings, returns true if accepted

Returns: Boolean


load

Function load($SettingName : Text; $LoadCopyCount : Boolean) -> cs.PrintSettings

Loads print settings from user-specific settings storage, optionally including copy count

Parameters:

Name Type Optional Description
$SettingName Text - -
$LoadCopyCount Boolean - -

Returns: cs.PrintSettings


save

Function save($SettingName : Text) -> cs.PrintSettings

Saves current print settings to user-specific settings storage

Parameters:

Name Type Optional Description
$SettingName Text - -

Returns: cs.PrintSettings


apply

Function apply -> $Success : Boolean

Applies these print settings to 4D print system, saves current printer for restoration

Returns: Boolean


restore

Function restore -> $Success : Boolean

Restores the printer that was active before apply() was called

Returns: Boolean



Generated from PrintSettings.4dm