DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
start date: Sat, 30 Jun 2007 17:38:01 -0700,    posted on: microsoft.public.dotnet.framework.interop        back       

Thread Index
  1    Steve Wood


Microsoft Office Document Imaging, Interop.MODI reporting corrupt   
I'm using the Microsoft Office Document Imaging 11.0 Type Library and 
performing OCR on images.  What I'm doing is starting with a 1600x900 32-bit 
image then using the system.drawing.bitmap class to extract smaller images 
and then performing OCR on them.  When I select a 480x28 pixel image it works 
fine, but if I select a 400x24 pixel image I get the following message when I 
go to get the text from the layout object:

Error: -2147467261: Attempted to read or write protected memory. This is 
often a
n indication that other memory is corrupt.

Here's my code:
Dim tmpStr As String
Dim miDoc As MODI.Document
Dim miImage As MODI.Image
Dim miImageLayout As MODI.ILayout
miDoc = New MODI.Document
miDoc.Create(fileName)
miImage = miDoc.Images.Item(0)
miImage.OCR()
miImageLayout = miImage.Layout
tmpStr = miImageLayout.Text

Is there some restriction on the dimensions of the source image?
Date:Sat, 30 Jun 2007 17:38:01 -0700   Author:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us