Promotic
WikipediaLinkedInYoutubeTwitterFacebook

Params - property of object PmPrinter

Description:
In the property the full description of the concrete printer is available in the text form. It is possible to save the text, for example, to a disk and whenever then to set the object by this string. The property is meant, first of all, for setting the printer after the interruption (stop, shutdown of the computer) of the application run. The property is changed automatically, for example, by calling the SetPrinter method.
Syntax:
Params(nAttr As Variant) As String
Calling:
oPrinter.Params(nAttr) = s
Parameters:
nAttr(Variant) Attribute indicating if the printer properties names or mode are read/set.
0 - the printer property names is read/set
1 - the printer property mode is read/set
Note:
Property access for read and write.
Example1:
Saving the printer properties into the string
Dim sMode,sNames
sNames = oPrinter.Params(0)
sMode = oPrinter.Params(1)
Example2:
Reading the printer properties from the string
Dim sMode,sNames
oPrinter.Params(0) = sNames
oPrinter.Params(1) = sMode
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice