Good Morning Friends,
I am using OCR for reading the image file . I add the MODI as a reference.
public void readimgfile(string filen)
{
doc = new MODI.Document();
doc.Create(filen);
doc.OCR(MODI.MiLANGUAGES.miLANG_ENGLISH, false, false);
MODI.Layout layout = ((MODI.Image)doc.Images[0]).Layout;
string str = String.Empty;
for (int i = 0; i < layout.Words.Count; i++)
{
MODI.Word word = (MODI.Word)layout.Words[i];
if (str.Length > 0)
{
str += " ";
}
str += word.Text;
}
doc.Close(false);
txt_rename.Text = str;
}
in that String filen i am passing the complete path.
Its showing COM IO error..