Is it Possible to open a tiff file from VB6.0? I can open BMP or JPEG file using Pic or Image controls
Thanks
Printable View
Is it Possible to open a tiff file from VB6.0? I can open BMP or JPEG file using Pic or Image controls
Thanks
TIFFs are not supported so you may need to find some third party's component to handle that..
On XP SP1 or later you can use Windows® Image Acquisition Automation Library v2.0 Tool: Image acquisition and manipulation component for VB and scripting (Vista already includes it). So they're supported, via an add-on.
Stretch the window in the attached demo, I didn't add scrolling. Most of the attachment's bulk is from two sample TIFFs.
With WIA you can scale, crop, and convert as well as load and display several image formats. Not to mention capture from a scanner, etc.
No, VB6 does not natively support TIFF images - only via third party.Quote:
Originally Posted by dilettante
Any add-in is a third party as far as VB6 concerns despite it is made by MS.
You could shell the tiff using the picture and fax viewer. Then use SetParent API to nest the viewer in your form.
And another cool thing with WIA Library is you can print your images using the Windows Photo Print Wizard!Quote:
On XP SP1 or later you can use Windows® Image Acquisition Automation Library v2.0 Tool: Image acquisition and manipulation component for VB and scripting (Vista already includes it). So they're supported, via an add-on.
Picture and Fax Viewer doesn't exist in Vista or later though.
Yes it does, its only renamed. I have some code to do it in Vista on the forums.
Thanks. I'm able to open Tif file thru MiDocView1 control. The only Problem I have now I can't clear it. I'm working on it.
Thanks for all your Help
What about just unloading the control?
That's very helpful.Quote:
Originally Posted by RobDog888
Thanks, glad to have helped :D
A very quick search...
http://www.vbforums.com/showthread.p...ure+fax+viewer