hello friends,
i am trying to use microsoft office document imaging library in my c# application to add OCR functionality to my application.However when i tried to run the following piece of code the compiler threw an error
"
Retrieving the COM class factory for component with CLSID {56F963EC-6EFC-4A6B-9A1E-5BFE545C89D0} failed due to the following error: 80040154.
"
my code goes as follows:
..
md = new MODI.Document();
md.Create("OCR.tif"); //OCR.tif is name of image
md.OCR(MODI.MiLANGUAGES.miLANG_ENGLISH, true, true);
md.Close(false);
//ERROR WAS SHOWN IN FOLLOWING LINE
MODI.Image image = new MODI.Image();
MODI.Layout layout = image.Layout;
MODI.Word word = (MODI.Word)layout.Words[5];
....
i have added reference to MODI and MSOFFICE LIBRARY but doesn't work.