- AuthorPosts
- October 27, 2006 at 5:29 am #3944dandersonMember
I see that there is a way to get the selection text via macro (editor.ActiveDocument.selection.Text), but I do not see a similar way to get the entire document text via a macro. Is it possible to do this?
October 27, 2006 at 11:14 pm #3949Yutaka EmuraKeymasterThat is true. You cannot get the entire text except by first selecting the entire document by SelectAll() method.
October 27, 2006 at 11:36 pm #3953dandersonMemberThanks. I will use that.
It would be nice to have a simple property. That way I wouldn’t have to save the current select start and end, select the entire document, set the selection start and end back when I want to get the entire document text without changing the selection. It also would prevent the “screen flashing” that occurs. I realize that I am being very picky :)
November 4, 2006 at 11:13 pm #3971dandersonMemberI figured out how to do this without any screen flashing by reordering my code a bit. I also noticed the window.redraw function which I haven’t needed to try. Makes the enhancement more of a nice to have simplification, but not really all that critical. Thanks for the suggestion.
- AuthorPosts
- You must be logged in to reply to this topic.