473,405 Members | 2,334 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Automate office document imaging 2003

hi,

I automate office document imaging in a vb.net application
in order to obtain the ocr's result on a given tiff file.
Everything is ok except that after my subroutine I got a
lock on my tiff file and I can't move or delete the file.

thanks for your help
this is the code I use :

Private Sub scannerFichierTIF(ByVal fichierTiff As String)
Dim doc As MODI.Document
Dim img As MODI.Image
Dim buffer As StreamWriter

'Création du fichier qui recevra le texte
résultant de l'OCR
buffer = File.CreateText("resultatocr.txt")

doc = CType(CreateObject("MODI.Document"),
MODI.Document)
doc.Create(fichierTiff)
doc.OCR(MODI.MiLANGUAGES.miLANG_FRENCH, True, True)
For i As Integer = 0 To doc.Images.Count - 1
img = CType(doc.Images.Item(i), MODI.Image)
Buffer.WriteLine(img.Layout.Text())
Next

'Fermeture des différents fichiers
buffer.Flush()
buffer.Close()
doc.Save()
doc.Close()
doc = Nothing
End Sub

Nov 20 '05 #1
0 3744

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Stedak | last post by:
My application seems to freeze when Microsoft Office Document Imaging is set as the default for loading images. If the Windows Picture and Fax Viewer is used there is no problem. When I set a break...
1
by: Deb_OPPD | last post by:
I have Office 2003 Picture Manager. What OLECLass Property is associated to Picture Manager? What Class Property is associated to Picture Manager? Thanks! Deb
2
by: William LaMartin | last post by:
I have created a program that allows for the automation of things in Word documents, like changing the values of DocVariables and the links to Excel Sheets. I did it using interoperoperatability,...
6
by: SivaSiva | last post by:
Hi, I'm getting the following error when I try convert a word document using asp.net. Application Event Log : Detection of product '{90110409-6000-11D3-8CFE-0150048383C9}', feature...
1
by: BK | last post by:
I have a .NET Solution (currently in 2003, FW 1.1) that uses Office automation for a few things (generates a Word document, dumps datagrids to Excel, etc.). One of my programmers works on the...
0
by: BillHounslow | last post by:
hope someone can help me. Currently, I am printing four, multi-page Access 2003 Reports to MS Document Imaging, then manually combining them to form a single document for distribution. Can...
5
by: bloukopkoggelmander | last post by:
Hi all I hope I am in the right forum here. Th issue I have is as follows. I recently upgraded from Office 2002 to Office 2003 SP3. Now, if I browse the network or my pc and try to launch a...
2
by: =?Utf-8?B?QWxleGFuZGVyIFd5a2Vs?= | last post by:
Is it possible to automate a COM object ebmeded in an excel document run the process and return the results in a C# .NET application? Or better yet extract the com object some how and just run it...
8
by: =?Utf-8?B?SmVycnkgQw==?= | last post by:
I have a web site that automates excel. This site runs in server 2003. iis 6.0 office 2003 installed I moved this app to server 2008 iis 7.0 office 2003 installed Now when I try to automate...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.