Device

<< Click to Display Table of Contents >>

Navigation:  Device Control Properties >

Device

Previous pageReturn to chapter overviewNext page

[Windows platform only; not supported by PHP and the Community Edition]

Returns / sets the current output device. After a new output device is successfully selected, all device settings (like DevPaperFormat, etc.) are lost! You are also able to select the default output device by setting device to an empty string ("").

property string VPE.Device

read / write; runtime only

Possible Values:

the name of the output device

Remarks:

In case of an error, LastError is set to VERR_COMMON. An error may occur in case the specified device is not present or not available for some reason.

 

You can enumerate the available devices with DevEnum().

Example:

Doc.Device = "Office Printer"

Selects the device installed as "Office Printer" in the system.

 

Doc.Device = ""

Selects the default device of the system.