When using the print preview, this method scales the screen resolution to the resolution of the output printer.
[Visual Basic] [ Boolean
=
]imagekitcontrolname.PrintDraw.PreviewInit(phDC
As LONG_PTR, dhDC As LONG_PTR)
[Visual C++] [
BOOL =
]imagekitcontrolname.GetPrintDraw().PreviewInit(LONG_PTR
phDC, LONG_PTR dhDC)
[VB.NET] [ Boolean =
]imagekitcontrolname.PrintDraw.PreviewInit(phDC
As Integer(x86) or Long(x64), dhDC As Integer(x86) or
Long(x64))
[C#.NET] [ bool =
]imagekitcontrolname.PrintDraw.PreviewInit(int(x86)
or long(x64) phDC, int(x86) or long(x64) dhDC)
* (x86) refers to the 32 bit version, (x64) refers to the 64 bit version.
Parameters
Name | Explanation |
---|---|
phDC | The device context of the output printer |
dhDC | The device context of the preview screen |
Return Value
Returns True (nonzero) if successful. Returns False (0) if unsuccessful.
Explanation
When using the print preview, the PreviewInit method scales the screen resolution to the resolution of the output printer.
Differences between the ImageKit7/8
The phDC and dhDC arguments' type has changed.