Convert a word file to pure txt

Post Reply
elvira
Posts: 516
Joined: Fri Jun 29, 2012 12:49 pm

Convert a word file to pure txt

Post by elvira »

Hi,

How can convert a word file to txt so i can do searches via memoread().

Thank you!
User avatar
anserkk
Posts: 1333
Joined: Fri Jun 13, 2008 11:04 am
Location: Kochi, India

Re: Convert a word file to pure txt

Post by anserkk »

Programmatically Open the word file, then use the Save As method and then choose Plain Text. Now you read this text file via Memoread and do whatever you want.

Another way is to read the entire text contents of a word document to a memory variable and then use it as per your requirement

Code: Select all | Expand

// Read the text contents into the TextContents variable
cTextContents = oWordDoc:Content:Text
Post Reply