Jan 6th, 2009, 08:05 PM
#1
Thread Starter
Junior Member
Open Tiff File In Vb6.0
Is it Possible to open a tiff file from VB6.0? I can open BMP or JPEG file using Pic or Image controls
Thanks
Jan 6th, 2009, 08:58 PM
#2
Re: Open Tiff File In Vb6.0
TIFFs are not supported so you may need to find some third party's component to handle that..
Jan 6th, 2009, 09:20 PM
#3
Re: Open Tiff File In Vb6.0
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.
Attached Files
Jan 6th, 2009, 10:38 PM
#4
Re: Open Tiff File In Vb6.0
Originally Posted by
dilettante
No, VB6 does not natively support TIFF images - only via third party.
Any add-in is a third party as far as VB6 concerns despite it is made by MS.
Jan 6th, 2009, 10:49 PM
#5
Re: Open Tiff File In Vb6.0
You could shell the tiff using the picture and fax viewer. Then use SetParent API to nest the viewer in your form.
VB/Office Guru™ (AKA: Gangsta Yoda ™ ® )
I dont answer coding questions via PM. Please post a thread in the appropriate forum.
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it!
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6
Jan 7th, 2009, 12:03 AM
#6
Addicted Member
Re: Open Tiff File In Vb6.0
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.
And another cool thing with WIA Library is you can print your images using the Windows Photo Print Wizard!
Jan 7th, 2009, 05:46 AM
#7
Re: Open Tiff File In Vb6.0
Picture and Fax Viewer doesn't exist in Vista or later though.
Jan 7th, 2009, 07:53 AM
#8
Re: Open Tiff File In Vb6.0
Yes it does, its only renamed. I have some code to do it in Vista on the forums.
VB/Office Guru™ (AKA: Gangsta Yoda ™ ® )
I dont answer coding questions via PM. Please post a thread in the appropriate forum.
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it!
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6
Jan 7th, 2009, 09:29 AM
#9
Thread Starter
Junior Member
Re: Open Tiff File In Vb6.0
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
Jan 7th, 2009, 01:50 PM
#10
Re: Open Tiff File In Vb6.0
What about just unloading the control?
VB/Office Guru™ (AKA: Gangsta Yoda ™ ® )
I dont answer coding questions via PM. Please post a thread in the appropriate forum.
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it!
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6
Jan 7th, 2009, 06:36 PM
#11
Re: Open Tiff File In Vb6.0
Originally Posted by
RobDog888
Yes it does, its only renamed. I have some code to do it in Vista on the forums.
That's very helpful.
Jan 7th, 2009, 06:59 PM
#12
Re: Open Tiff File In Vb6.0
VB/Office Guru™ (AKA: Gangsta Yoda ™ ® )
I dont answer coding questions via PM. Please post a thread in the appropriate forum.
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it!
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6
Posting Permissions
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Rules
Click Here to Expand Forum to Full Width