joe_pool_is
Contributor
We have a control that is available in an SDK called LabelImage that is defined as follows (providing I don't fat finger anything):
In VB 2005, I have passed the method defined above the PictureBox's Handle as followsCode:
The LabelImage returns True, but still no image.
I tried overloading the OnPaint usingCode:
and the e.Graphics.IsClipEmpty property is False.
So, how do I use the PaintEventArgs to populate PictureBox1?
I want to paint this into a PictureBox control so that I can preview it prior to printing.Object. LabelImage Long hWindow, [Boolean bPrintPreview]
Parameters
hWindow is the handle of the window on which the label image will be painted;
Optional. bPrintPreview is a boolean indicating if all the field's values should be shown when creating the image, as in the case of preview on LabelView QuickPrint window.
Remarks
Paints the current label's image on the user's window.
Return Values
If the label image is painted successfully, the return value is True, otherwise it is False.
In VB 2005, I have passed the method defined above the PictureBox's Handle as followsCode:
obj.LabelImage(PictureBox1.Handle()) ' Handle returns an IntPtr
The LabelImage returns True, but still no image.
I tried overloading the OnPaint usingCode:
Protected Overrides Sub OnPaint(ByVal e As PaintEventArgs)
and the e.Graphics.IsClipEmpty property is False.
So, how do I use the PaintEventArgs to populate PictureBox1?