Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using .tif's

Status
Not open for further replies.

thelastmuskateer

IS-IT--Management
Sep 9, 2001
1
CA
I am trying to import TIFF's into a VB 6 application. If anyone has any information on how to do that I would greatly appreciate it.

-Scott
 
Hi scott before answering your question i would assume few things. i.e, you want to display a tiff image in your application and as tiff images are multi page images you may want to allow the user to navigate through all the pages

1)
To use tiff in VB you can use Wang Image Control which will be installed when you install VB. Wang image control is actually a group of controls and you need to use only Wang Image Edit control among them.

now to display a tiff image you can use Image property and Display method.

Eg.
ImgEdit1.Image="C:\Test.tif"

after setting the image now you should call display method to display the image

ImgEdit1.Display

2)
To allow the user to navigate through pages you can use PageCount and Page properties and after setting the page number you should call Display method again

Eg.

MsgBox ImgEdit1.PageCount
this will display the number of pages in the image.

To display the 3rd page of the image

ImgEdit1.Page = 3
ImgEdit1.Display

for more information refer the online help of Wang Image Edit Controls

Let me know if you want to know anything more
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top