Sign in to follow this  
Followers 0
terro

Array of Ms Word Document sentences

6 posts in this topic

Dear All,

Could you please help me to store every sentence of a .doc document (not a .txt) inside an array

1rst sentence in $i[0]

2nd sentence in $i[1]

etc..

thank you for helping

Guillaume

Share this post


Link to post
Share on other sites



You could use the Word UDF which is part of AutoIt to open the word document and the _WordGetText function which can be found to extract the text.

Then you have to split the text at every "."


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

^ agree but maybe will be better split by ". ", maybe somewhere in text will be "..."


When the words fail... music speaks

Share this post


Link to post
Share on other sites

Thank you very much I will have a look

Guillaume

Share this post


Link to post
Share on other sites

You could use the Word UDF which is part of AutoIt to open the word document and the _WordGetText function which can be found to extract the text.

Then you have to split the text at every "."

Dear Water

you mentioned _WordGetText

I could not find this _WordGetText function in word.au3 or in AutoIt help

Any idea ?

thank you

Guillaume

Share this post


Link to post
Share on other sites

_WordGetText function is at the end of the code box I mentioned in my last post (or please see this )


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0