This method retrieves printer information from the handle to the DEVNAMES structure.
[Visual Basic] [ Boolean
=
]imagekitcontrolname.PrintDraw.GetDevNamesInfo
[Visual C++] [
BOOL =
]imagekitcontrolname.GetPrintDraw().GetDevNamesInfo()
[VB.NET] [ Boolean =
]imagekitcontrolname.PrintDraw.GetDevNamesInfo()
[C#.NET] [ Boolean =
]imagekitcontrolname.PrintDraw.GetDevNamesInfo()
Parameters
None
Return Value
Returns True (nonzero) when successful, returns False (0) when not successful.
Explanation
The GetDevNamesInfo method retrieves printer information from the handle to the DEVNAMES structure. To execute this method, the DEVNAMES structure handle must be set into the DevNames property by executing the GetDevModeHandle method. If this method is successful, the PrinterName property and PortName property values will be set.
Even without executing this method, when the GetDevModeHandle method is executed, the string information will be set automatically.