WIA and MODi.MiDocView question

Posted on 2006-04-10
Last Modified: 2009-01-20
I hope you can help me!
How can I pass a image (scanned from WIA or from a picturebox control) to MODI.document or MODi.MiDocView?

I just want to add a new scanned image to the MODI.document opened in the MODi.MiDocView.
When I trie t do that it gives the error "IO Error"


vb 6, or c#
Question by:asimoes
    1 Comment
    LVL 3

    Accepted Solution

    This is code I did from a prior answer.
    It may not exactly answer your question but I hope it is close or at least gives you an idea.

    This was actually how to parse text from an image using ocr.

    Module Module1

        Sub Main()

            Dim docScannedImage As MODI.IDocument = New MODI.DocumentClass
            docScannedImage.Create("your path to an image file")

            Dim docViewer As MODI.IMiDocView = New MODI.MiDocViewClass
            Dim images As MODI.IImages = docScannedImage.Images
            Dim image As MODI.IImage

                For Each image In images


            Catch ex As Exception
            End Try


        End Sub

    End Module

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Find Ransomware Secrets With All-Source Analysis

    Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

    Suggested Solutions

    Title # Comments Views Activity
    Facebook custom search 4 114
    countHi challenge 25 61
    delphi parse string to params 3 45
    Copy Files - Python 7 28
    How to remove superseded packages in windows w60 or w61 installation media (.wim) or online system to prevent unnecessary space. w60 means Windows Vista or Windows Server 2008. w61 means Windows 7 or Windows Server 2008 R2. There are various …
    The purpose of this article is to demonstrate how we can use conditional statements using Python.
    This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
    This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.

    737 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

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now