By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,952 Members | 1,438 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,952 IT Pros & Developers. It's quick & easy.

Working with word object (S.O.S)

P: n/a
Hi
I Am working with word object in vb.net and i need to know two thing
1. what is the rows number in the current page ?
2. in what row am i ?
--
Thank For The Help
Eran
Nov 21 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Do you mean line number? Show us the sample that you don't understand.

chanmm

"Eran AMiel" <Er*******@discussions.microsoft.com> wrote in message
news:9C**********************************@microsof t.com...
Hi
I Am working with word object in vb.net and i need to know two thing
1. what is the rows number in the current page ?
2. in what row am i ?
--
Thank For The Help
Eran

Nov 21 '05 #2

P: n/a
Hi, i will try to explain myself better.
first , i don't have a code sample , i need one.
second, i have a word document that i am writing lines to it
what i need to know is in what line am i , and how much lines there are
in this current page so i can know when i a m moving to the next page.
thanks
eran

"chanmmn" wrote:
Do you mean line number? Show us the sample that you don't understand.

chanmm

"Eran AMiel" <Er*******@discussions.microsoft.com> wrote in message
news:9C**********************************@microsof t.com...
Hi
I Am working with word object in vb.net and i need to know two thing
1. what is the rows number in the current page ?
2. in what row am i ?
--
Thank For The Help
Eran


Nov 21 '05 #3

P: n/a
Hi Eran

Happy New Year!!!

To get the line numbers:

Selection.Information(wdFirstCharacterLineNumber) - will return the line
number where the cursor is.

Documents.item(docname).ComputeStatistics(wdStatis ticLines) - will
return the total number of lines in a document.

Selection.Information(wdActiveEndPageNumber) - will return the current
page number.

Hope this helps.
Jay
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 21 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.