Convert a word file to pure txt

Convert a word file to pure txt

Postby elvira » Sat Oct 14, 2023 9:32 am

Hi,

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

Thank you!
elvira
 
Posts: 516
Joined: Fri Jun 29, 2012 12:49 pm

Re: Convert a word file to pure txt

Postby anserkk » Sat Oct 14, 2023 10:28 am

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 view
// Read the text contents into the TextContents variable
cTextContents = oWordDoc:Content:Text
User avatar
anserkk
 
Posts: 1332
Joined: Fri Jun 13, 2008 11:04 am
Location: Kochi, India


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 93 guests