[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

TIFF files and VB 6.0

Posted on 2003-12-09
12
Medium Priority
?
3,681 Views
Last Modified: 2012-06-27
At work, we have a program that reads a barcode from a scanned image, and save this barcode in an XML file.  Well, sometimes the image quality is not so well, and the program cannot read the barcode.  I wan wanted to make a manual work around program.  Type in the image name, my program will display it, you type in the Value of the barcode (it is printed under the barcode) and then it will save it in the XML file.

This is where i run into my problem.  
1st, i dont know how to read TIFF files.  (any controls? preferably free, if there are any)
2nd, is there is easy way to read an XML file in VB6.0?  i know there is in .Net, but i do not know .Net yet. (free as well, if possible)

Thanks!
0
Comment
Question by:kmorris1186
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 7
  • 5
12 Comments
 
LVL 18

Accepted Solution

by:
Sethi earned 580 total points
ID: 9903461
FOR TIFF:

Go to Project >> Components, you will find Kodak Image Controls. They can be used to display Tif files. However, there are certain things that you will have to consider before using this controls:
1.      They by default come with the following versions of windows - Win NT4, Win 95, 98 and Windows 2000.
2.      They can not be redistributed.

This link will explain you all about this control:
http://support.microsoft.com/default.aspx?scid=KB;en-us;q190036

In short, you will have to buy an ActiveX control or use this control.

OR

Here is the source code to Convert Tiff into Gif. Then you can display GIF through Picturbox control or Internet Control on your form
http://www.catenary.com/howto/tif2gif.html

OR
If you want to buy an ActiveX Control then - PicturePlus AcitveX DLL is the only one I have seen is affordable. Rest I have not come across any affordable ones. Search google to find link to this control.

OR
Here is a trick to use Kodak control in XP. The URL for this trick is:
http://www.foxite.com/archives/0000012481.htm

Yes, Microsoft did not include the Kodak Imaging in XP. I don't know why, all I know was Eastman Corp. sued Microsoft that ended in an amicable settlement. You can download the Imaging Software Professional copy from http://www3.eistream.com/wmshome/wms/public/sales/products/_97.htm but it's no longer free. You can have the evaluation copy though.

Anyway, if you still have the copy of Kodak Imaging from Win2K and below machines, you can copy the files (as mentioned below) to XP'S Windows\System32 folder. Here are the steps:
-------------------------
If you have Win98/ME
-------------------------
Copy these files from \Windows\System:
AWCODC32.DLL
AWDCXC32.DLL
AWDENC32.DLL
AWKRNL32.DLL
AWRESX32.DLL
AWVIEW32.DLL
IMGADMIN.OCX
IMGCMN.DLL
IMGEDIT.OCX
IMGSCAN.OCX
IMGSHL.DLL
IMGTHUMB.OCX
JPEG1X32.DLL
JPEG2X32.DLL
OIADM400.DLL
OICOM400.DLL
OIDIS400.DLL
OIFIL400.DLL
OIGFS400.DLL
OIPRT400.DLL
OISLB400.DLL
OISSQ400.DLL
OITWA400.DLL
OIUI400.DLL
XFILEXR.DLL

Copy these files from \Windows\Help:
IMGHELP.CNT
IMGHELP.HLP
IMGOCXD.CNT
IMGOCXD.HLP
IMGTASKS.CHM
IMGVIEW.CHM

Copy these files from \Windows:
KODAKIMG.EXE
KODAKPRV.EXE

-----------------------------------
If you have Windows 95 OSR2
-----------------------------------
Copy these files from \Windows\System:
AWCODC32.DLL
AWDCXC32.DLL
AWDENC32.DLL
AWKRNL32.DLL
AWRESX32.DLL
AWVIEW32.DLL
IMGADMIN.OCX
IMGEDIT.OCX
IMGSCAN.OCX
IMGTHUMB.OCX
JPEG1X32.DLL
JPEG2X32.DLL
OIADM400.DLL
OICOM400.DLL
OIDIS400.DLL
OIFIL400.DLL
OIGFS400.DLL
OIPRT400.DLL
OISLB400.DLL
OISSQ400.DLL
OITWA400.DLL
OIUI400.DLL
XFILEXR.DLL
WANGCMN.DLL
WANGSHL.DLL

Copy these files from \Windows\Help:
WANGIMG.CNT
WANGIMG.HLP
WANGOCX.CNT
WANGOCX.HLP
WANGOCXD.CNT
WANGOCXD.HLP
WANGSHL.CNT
WANGSHL.HLP

Copy this file from \Windows:
WANGIMG.EXE

------------------------------
If you have Windows 2000
------------------------------
Copy these files from \Windows\System32:
IMGADMIN.OCX
IMGCMN.DLL
IMGEDIT.OCX
IMGSCAN.OCX
IMGSHL.DLL
IMGTHUMB.OCX
JPEG1X32.DLL
JPEG2X32.DLL
OIENG400.DLL
OIPRT400.DLL
OISLB400.DLL
OISSQ400.DLL
OITWA400.DLL
OIUI400.DLL
TIFFLT.DLL
XIFFR3_0.DLL

Copy these files from \Windows\Help:
IMGHELP.HLP
IMGMGT.CHM
IMGMGT.HLP
IMGTASKS.CHM
IMGVIEW.CHM

Copy these files from \Windows or from \Program Files\Windows NT\Accessories\ImageVue :
KODAKIMG.EXE
KODAKPRV.EXE

After you've done copying, register the four img*.ocx files with,

regsvr32 imgadmin.ocx

Do the rest for the 3 remaining img*.ocx and goodluck.

* I am not sure about the source of this article but it helps a lot so I generally post it.

FOR XML:
you can use Internet Control in VB and display your XML files.


0
 
LVL 7

Author Comment

by:kmorris1186
ID: 9908122
that is a lot of information! thanks!

it will take a day or so to work on this.  I am also trying to get the lisence information for a control that our developers use (Pegasus ImageXpress), but i dont think our deveopment team trusts me with it.

I will get back to you.
0
 
LVL 7

Author Comment

by:kmorris1186
ID: 9908555
ok, the Kodak Image thing worked!  I have tried this before, but i didnt know all the files i needed to copy.  I will play around with the Kodak thing to figure out how to get it work in VB now.

I will keep you updated
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
LVL 18

Expert Comment

by:Sethi
ID: 9908693
Best of luck.
0
 
LVL 7

Author Comment

by:kmorris1186
ID: 9908805
ok i have the Kodak Image control down packed now.

Having problems with the Internet Controls.

Lets say i have an XML file "c:\861C900PC.xml" and i want to open this.
How would i go about doing this?  My MSDN does not have any help on this subject.

thanks!
0
 
LVL 18

Expert Comment

by:Sethi
ID: 9909418
If this file is opeing with normal instance of IE on your system then get an instance of Internet control on your VB form and pass the URL in navigate2 method. To set the refernce to Intenet Browser control go to Components.
0
 
LVL 7

Author Comment

by:kmorris1186
ID: 9909508
actually, i dont think this way will work.  I need to open the XML file, and then Make changes, and Save it.

Right now i am working on it using a FSO, but i am not good at string manipulation.  (find data in a string, and grab only portions of it, etc.)  So i am having problems doing this.

I will go ahead and close the question this yours answer did help me with the Image solution.
0
 
LVL 7

Author Comment

by:kmorris1186
ID: 9909517
i am actually using DreamWeaver to edit this file manually right now.

I think i will stick with the FSO unless you have a better idea
0
 
LVL 18

Expert Comment

by:Sethi
ID: 9909916
I didn't understand your XML problem. Infact I am still confused. You want to edit XML document? If that is the case then Dreamweaver is one of the best. Also have a look at XMLSpy. This is an extremely good software.
0
 
LVL 7

Author Comment

by:kmorris1186
ID: 9909985
I do want to edit it.  But right now, i am opening it up in Dreamweaver and making the changed i need to make.  I want to make a program that will open it up, and make the changes i need to make.

Example:

----- begin XML File -----
<BatchImageList>
      <Image ImageTitle="3C810050007.000" ImageName="\\estfile\MCPData\Images\Stacks\SMA03C81005\Bitonal\3C810050007.000" BarCode="0856772">
</BatchImageList>
------ End XML File -------

If one of our programs doesnt read the Barcode from that Image (hence, the ImageName Path)  It will make BarCode="0".  This is making a lot of problems at work.  All i need my program to do is get that ImageName, Display the Image, and allow the user to look at the image and enter the Correct Barcode Data, then the program will write the correct information into that Barcode section.

Again, right now i am trying to open the XML as plain text with a FSO. This is a lot more work, if i could open it up as a XML, it should save a lot of time, and code.

Let me know if you need any more details.
      

0
 
LVL 18

Expert Comment

by:Sethi
ID: 9910237
I think what you are doing is the best. If I get hold of some ActiveX control in future, I will definately revert back to this thread.
0
 
LVL 7

Author Comment

by:kmorris1186
ID: 9916448
Thanks
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses

649 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question