convert gif image to word RRS feed

  • Question

  •  I have a gif file which contains writing which is shown below i have tried modi but it is not successful can any suggest solution to the above mentioned problem.example


    • Edited by vinayrajaram Wednesday, June 26, 2013 11:35 AM chnage
    • Moved by Min Zhu Monday, July 8, 2013 6:36 AM off-topic
    Wednesday, June 26, 2013 11:35 AM

All replies

  • Hi vinay,

    I didn't see anything below. Could you please kindly elaborate what would you want to convert? Thanks.

    Best regards,

    Min Zhu
    MSDN Community Support | Feedback to us
    Develop and promote your apps in Windows Store
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Thursday, June 27, 2013 2:36 AM
  • It does not look like you are asking for help in writing software, which is the topic of this web site. If you are looking for help in using Word, visit answers.microsoft.com. 

    Visual C++ MVP

    Thursday, June 27, 2013 11:13 PM
  • I am getting ocr error i am not able to read gif image file text

    for example text would be in similar fashion i want to convert it to word

     private void button1_Click(object sender, EventArgs e)

            public void CheckFileType(string directoryPath)
                IEnumerator files = Directory.GetFiles(directoryPath).GetEnumerator();
                while (files.MoveNext())
                //get file extension
                string fileExtension = Path.GetExtension(Convert.ToString(files.Current));

                //get file name without extenstion
                string fileName=Convert.ToString(files.Current).Replace(fileExtension,string.Empty);

                //Check for GIF File Format
                if (fileExtension == ".gif" || fileExtension == ".GIF") // or // ImageFormat.Jpeg.ToString()
                //OCR Operations ...
                MODI.Document md = new MODI.Document();
                md.OCR(MODI.MiLANGUAGES.miLANG_ENGLISH, true, true);
                MODI.Image image = (MODI.Image)md.Images[0];

                //create text file with the same Image file name
                FileStream createFile = new FileStream(fileName+ DateTime.Now.ToLongDateString()  + ".txt",FileMode.CreateNew);

                //save the image text in the text file
                StreamWriter writeFile = new StreamWriter(createFile);
                catch (Exception ex)
                //MessageBox.Show("This Image hasn't a text or has a problem",
                //"OCR Notifications",
                //MessageBoxButtons.OK, MessageBoxIcon.Information);



    Friday, June 28, 2013 7:37 AM
  • For help in using Office document imaging, visit the forums under the office development category.

    Visual C++ MVP

    Friday, June 28, 2013 1:12 PM