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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problems with Filling Word Bookmarks from VB6

Status
Not open for further replies.

Dreloch

Programmer
Dec 17, 2003
19
US
On the project I am working on, I may have to paste up to 10k characters into bookmarks on a word template. The text goes in just fine but when the block would span the end of a page, it starts on the top of the next page. If it is longer than a page, it trunks at the bottom of the page. Does anyone know how to have the text be broken up in Word without splitting it in VB6? (just got to love those users)
 
Have a try with switching Word to normal view first (instead of layout view):
Code:
Dim wrd as Word.Application
...
If wrd.ActiveWindow.View.SplitSpecial = wdPaneNone Then
    wrd.ActiveWindow.ActivePane.View.Type = wdNormalView
Else
    wrd.ActiveWindow.View.Type = wdNormalView
End If

[blue]The last voice we will hear before the world explodes will be that of an expert saying:
"This is technically impossible!" - Sir Peter Ustinov[/blue]
HP:
 
I put the code in after I set the template path and a couple other places. It seemed to execute the code correctly but I ended up with the same result. Any other suggestions?
 
The text from the Rich text box is copied to the clipboard then pasted into the bookmark in the template. Anyone else have any ideas?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top