WIA and MODi.MiDocView question

Hello
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"

Thanks

vb 6, vb.net or c#
asimoesAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

gsalierCommented:
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

        Try
            For Each image In images

                image.OCR(MODI.MiLANGUAGES.miLANG_ENGLISH)
                Console.WriteLine(image.Layout.Text)

            Next
        Catch ex As Exception
            Console.WriteLine(ex.ToString())
        End Try

        docScannedImage.Close(False)
        Console.ReadLine()

    End Sub

End Module

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Programming Languages-Other

From novice to tech pro — start learning today.