Copy all the Text in a Document

To copy all the text in a document

  1. Open the document from which you want to copy all the text. See Open for more information.
  2. Use the CanSelectAll method to determine whether all contents in the document can be selected.
  3. Use the SelectAll method.
  4. Use the CanCopy property to determine whether the text can be copied.
  5. Use the Copy method.
  6. Paste the text in another document, such as a text file.