Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Reading word doc page by page

Status
Not open for further replies.

FOZDEMIR

Programmer
Jun 7, 2019
3
TR
Can we copy the information from a word page (page 4 for ex)to a richtextbox in a form created in Visual Basic
 
Yes. The problem, though, is that what constitutes a page can vary according to whatever printer driver you're using. That's because Word uses the active printer driver to optimise the page layout.

Cheers
Paul Edstein
[MS MVP - Word]
 
Anyway, for existing printer driver, how can we do this
 
For example:
MsgBox ActiveDocument.ActiveWindow.Panes(1).Pages(4).Rectangles(1).Range.Text
For a RichText textbox, you might want to use .FormattedText instead of .Text.

Cheers
Paul Edstein
[MS MVP - Word]
 
I couldn’t find where the mistake is :(
I have the following error
“No requested element in group”
 
So what's actually on page 4?

Cheers
Paul Edstein
[MS MVP - Word]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top