Imaginecorp
IS-IT--Management
Mike I came across this code you wrote for converting .Tiff to Text.
This is exactly what I need but is there a way to retain the layout?
I need to convert and read an incoming fax to be able to populate a VFP9 form.
Any help/advice would be greatly appreceated... Thanks
Code:
Local miDoc,miLayout,lcStr
lcStr=''
CREATE CURSOR mondocument (mondococr m)
miDoc = Createobject('MODI.Document')
miDoc.Create( "C:\era\beacon0001.tif")
miDoc.Images(0).OCR
miLayout = miDoc.Images(0).Layout
strLayoutInfo ="Language: " + Transform(miLayout.Language )+Chr(13)+Chr(10)
strLayoutInfo=strLayoutInfo+"Number of characters: " + Transform(miLayout.NumChars)+Chr(13)+Chr(10)
strLayoutInfo=strLayoutInfo+"Number of fonts: "+ Transform(miLayout.NumFonts )+Chr(13)+Chr(10)
strLayoutInfo=strLayoutInfo+"Number of words: " + Transform(miLayout.NumWords)+Chr(13)+Chr(10)+Chr(13)+Chr(10)
strLayoutinfo = strLayoutinfo+miLayout.text
INSERT INTO mondocument (mondococr) VALUES (strLayoutinfo)
MODIFY MEMO mondocument.mondococr
I need to convert and read an incoming fax to be able to populate a VFP9 form.
Any help/advice would be greatly appreceated... Thanks