SetProperty¶
Description
Changes a part of the print settings.
There are 2 types of syntax to change the print settings: the syntax that uses the property ID defined in PropertyId, and the syntax that specifies it as a numerical value.
With the syntax (a), the API changes a part of the print settings using the property ID defined in PropertyId.
With the syntax (b), the API changes a part of the print settings by specifying the property ID as a numerical value.
Syntax
(a) ErrorCode SetProperty( IntPtr devmode, PropertyId id, byte[] data, ref uint size )
(b) ErrorCode SetProperty( IntPtr devmode, byte id, byte[] data, ref uint size )
Parameter
devmode
Devmode address
Specify the Devmode address.
id
Property ID
Specify the property ID of the print settings to be changed.
Specify (a) when using the property ID defined in PropertyId.
Specify (b) when specifying the property ID as a numerical value.
See "Property ID" for specifiable values.
data
Buffer of data to set
Specify the buffer in which the print settings to be changed is stored.
size
Size of data to set
Specify the buffer size in which the print settings to be changed is stored.
Return value
Returns an error code. See "Error Code List" for details of the error code.