Microsoft KB Archive/230488

= How To Print the Contents of the Wang (Kodak) ImageEdit Control =

Article ID: 230488

Article Last Modified on 7/1/2004

-

APPLIES TO


 * Microsoft Visual Basic 5.0 Learning Edition
 * Microsoft Visual Basic 6.0 Learning Edition
 * Microsoft Visual Basic 5.0 Professional Edition
 * Microsoft Visual Basic 6.0 Professional Edition
 * Microsoft Visual Basic 5.0 Enterprise Edition
 * Microsoft Visual Basic 6.0 Enterprise Edition

-



This article was previously published under Q230488



SUMMARY
This article illustrates how to print the image displayed in the Wang (Kodak) ImageEdit control.



MORE INFORMATION
The Wang (Kodak) controls, including ImageEdit, do not ship with Visual Basic, but are included with some versions of Windows. The later versions of the Wang controls are renamed as the Kodak controls. See the REFERENCES section below for more information.

The following code example demonstrates the basics of printing from this control. Please note that you will need to change the .Image property below to a file that is available on your computer.

 Start a new Standard EXE project in Visual Basic. Form1 is created by default. From the Project menu, select Components, select either the Wang Image Edit control or the Kodak Image Edit control, and click OK. Add an instance of the Wang (Kodak) ImageEdit control to Form1.  Add the following code to Form1: With ImgEdit1 .Image = "E:\tiffWANG\Simplicity1024.tif" .Display .PrintImage 1, 1, 0 End With There are a number of other printing features available with this control. It provides the ability to clip, rotate, zoom, size to page, and more. The best way to find more information is to access the Help file that comes with the control. The Help file can be accessed from the Visual Basic object browser, or by pressing the F1 key after selecting the control. 

