Hello everyone,
Does anyone know how to extract text from Word document?
I want to be able to export text to text file while retaining page structure. Saving document as text file creates a file without page breaks. I need to retrieve text from each page and insert it into text file with page break character - chr(12) - between them. I don't know in advance if document will contain tables or any non-text elements. So there has to be some generic approach.
I don't seem to find appropriate object or properties to work with in order to do this. Of course it's mostly because of lack of experience working with Word.
Any help or tips on that would be greatly appreciated.
Thank you.
Does anyone know how to extract text from Word document?
I want to be able to export text to text file while retaining page structure. Saving document as text file creates a file without page breaks. I need to retrieve text from each page and insert it into text file with page break character - chr(12) - between them. I don't know in advance if document will contain tables or any non-text elements. So there has to be some generic approach.
I don't seem to find appropriate object or properties to work with in order to do this. Of course it's mostly because of lack of experience working with Word.
Any help or tips on that would be greatly appreciated.
Thank you.