jasonlassen
asked on
viewing multipage TIFs in VB6 ActiveX control
I need to be able to view multipage TIF documents using a Vb ActiveX control. I tried the 'preview' control in Vb6, but I cannot figure out how to navigate between pages. ideas?
I forgot:
Use >> ImgEdit1.SelectionRectangl e = False << to turn off the Selection Rectangle if you don't need it.
Here are some useful methods, and properties for managing images:
ImgEdit1.Zoom = 100 'Set the zoom percentage
ImgEdit1.PrintImage 'Send image to printer
ImgEdit1.ScrollImage 'If image is bigger than the control window that is displaying it then use this to scroll image
ImgEdit1.Flip 'Rotate 180 deg.
ImgEdit1.RotateRight 'Rotate 90 deg.
ImgEdit1.RotateLeft 'Rotate 270 deg.
Use >> ImgEdit1.SelectionRectangl
Here are some useful methods, and properties for managing images:
ImgEdit1.Zoom = 100 'Set the zoom percentage
ImgEdit1.PrintImage 'Send image to printer
ImgEdit1.ScrollImage 'If image is bigger than the control window that is displaying it then use this to scroll image
ImgEdit1.Flip 'Rotate 180 deg.
ImgEdit1.RotateRight 'Rotate 90 deg.
ImgEdit1.RotateLeft 'Rotate 270 deg.
ASKER
Thanks for the help, but those files do not exist on my machine. I am running XP Pro and have VB6 installed.
XP doesn't provide theese controls, and I think they don't work on XP.
Sorry, but I can't help you further. I never used any other controls.
Sorry, but I can't help you further. I never used any other controls.
ASKER
Thanks anyway for the help.
Any other ideas out there?
Any other ideas out there?
Hi again.
If you are still interested in imgedit.ocx, then there is a way to make it work under WinXP. I just found that out recently.
Copy theese files to your System32 folder:
IMGADMIN.OCX
IMGCMN.DLL
IMGEDIT.OCX
IMGHELP.HLP
IMGMGT.CHM
IMGMGT.HLP
IMGSCAN.OCX
IMGSHL.DLL
IMGTASKS.CHM
IMGTHUMB.OCX
IMGVIEW.CHM
JPEG1X32.DLL
JPEG2X32.DLL
KODAKIMG.EXE
KODAKPRV.EXE
OIENG400.DLL
OIPRT400.DLL
OISLB400.DLL
OISSQ400.DLL
OITWA400.DLL
OIUI400.DLL
TIFFLT.DLL
XIFFR3_0.DLL
Then Start -> Run: Regsvr32 imgedit.ocx
This should enable Image Edit control in Project/Properties
If you are still interested in imgedit.ocx, then there is a way to make it work under WinXP. I just found that out recently.
Copy theese files to your System32 folder:
IMGADMIN.OCX
IMGCMN.DLL
IMGEDIT.OCX
IMGHELP.HLP
IMGMGT.CHM
IMGMGT.HLP
IMGSCAN.OCX
IMGSHL.DLL
IMGTASKS.CHM
IMGTHUMB.OCX
IMGVIEW.CHM
JPEG1X32.DLL
JPEG2X32.DLL
KODAKIMG.EXE
KODAKPRV.EXE
OIENG400.DLL
OIPRT400.DLL
OISLB400.DLL
OISSQ400.DLL
OITWA400.DLL
OIUI400.DLL
TIFFLT.DLL
XIFFR3_0.DLL
Then Start -> Run: Regsvr32 imgedit.ocx
This should enable Image Edit control in Project/Properties
ASKER
#1 - where do I get these files?
#2 - will this allow me to view multi-page tiff files without the editing capabilities? (I don't want to edit, I only want to view. It sounds as if this has something to do with editing - imgEDIT.ocx?)
Thanks again!
#2 - will this allow me to view multi-page tiff files without the editing capabilities? (I don't want to edit, I only want to view. It sounds as if this has something to do with editing - imgEDIT.ocx?)
Thanks again!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Thanks!
ImgEdit, and ImgThumbnail are the controls that you need.
ImgEdit is used to display and/or edit a single page of a certain TIF, and ImgThumbnail is used to display all of the pages in a single TIF.
Here are some examples:
To display a TIF inside a thumbnail control, use: >> ImgThumbnail1.Image = "E:\temp\picture.tif" << This will display thumbnails of all the pages in that TIF
To display it in full size inside a ImgEdit:
ImgEdit1.Image = "E:\temp\picture.tif" 'Load a TIF
ImgEdit1.Page = 3 'Set which page to display
ImgEdit1.FitTo 0, True 'Autofit
ImgEdit1.Display 'Display
Thieese controls can display some other formats as well, but are designed for TIF, and should be already installed on your machine.
If you can't locate them, their file names are: ImgEdit.ocx and ImgThumb.ocx