Working with word object (S.O.S)

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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 ?
 
Do you mean line number? Show us the sample that you don't understand.

chanmm
 
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 said:
Do you mean line number? Show us the sample that you don't understand.

chanmm
 
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(wdStatisticLines) - will
return the total number of lines in a document.

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

Hope this helps.
Jay
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top