ocr阅读器 [英] ocr reader

查看:151
本文介绍了ocr阅读器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我添加了微软办公文档成像的modi.dll的参考资料

I have added refrence of modi.dll of microsoft office document imaging

文档d =新文档();

             d。创建("C:\\Users \\Hiren \\Desktop\\college-3rd.gif");

      ;        d.OCR(MiLANGUAGES.miLANG_ENGLISH,true,true);

            MODI.Layout l =(MODI.Layout)d.Images [0];

            for(int i = 0; i< d.Images.Count - 1; i ++)

            {

                MessageBox.Show(l.Text);


              


            }

Document d = new Document();
            d.Create("C:\\Users\\Hiren\\Desktop\\college-3rd.gif");
            d.OCR(MiLANGUAGES.miLANG_ENGLISH ,true ,true);
            MODI.Layout l = (MODI.Layout )d.Images[0];
            for (int i = 0; i < d.Images.Count - 1; i++)
            {
                MessageBox.Show(l.Text);
              
            }

但它在文档对象创建中给出了错误....

but it's giving error in document object creation....

错误的os:

由于以下错误,检索具有CLSID {40942A6C-1520-4132-BDF8-BDC1F71F547B}的组件的COM类工厂失败:80040154。

Retrieving the COM class factory for component with CLSID {40942A6C-1520-4132-BDF8-BDC1F71F547B} failed due to the following error: 80040154.

推荐答案

Hi Hiren2009 ,

你办公室的版本是什么?你在64位Windows操作系统上工作吗?据我所知,MS Office文档图像编写器打印机功能
将无法在64位Windows版本上运行,并且64位Windows还有其他限制。

我收集了一篇文章供你参考:

http://www.codeproject.com/KB/office/OCRSampleApplication.aspx?msg=2726696
,你是否像文章中的步骤一样添加了com引用?

我希望这可以帮助你,随时跟进。

最好的问候,

 


这篇关于ocr阅读器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆