|
-
December 10th, 2009, 05:15 AM
#1
Microsoft.Office.Interop.Word question
Hello, All!
I am using Microsoft.Office.Interop.Word namespace.
I have some editor where some text typed. I have a number of current cursor position (sorry, I'm writing in C++ but resembling questions are in this thread, so I ask here).
m_pSelection->get_Range( &pRange );
long nEnd;
pRange->get_End( &nEnd ); // nEnd is position
How can I get:
1) line where cursor placed
2) text of this line?
Please help.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|