Hello...
I've seen about 10 ways to do this, and for whatever
reason I cant insert page breaks or linebreaks (or rather
I can, but they dont appear to happen in the resulting
document.
I get a reference to the endofdocument bookmark range
then I can create a paragraph based on that, and do
oPara.Range.InsertAfter("Hello world"); //which works fine
But if I add a reference to wdPageBreak and then do
oPara.Range.InsertBreak(ref oPageBreak); it does nothing.
Ultimate result I am shooting for
Find end of document, insert page, or insert page break to
get a new page.. insert some manual data there, then
insert another pagebreak... effectively adding 1page.
Thanks for any advice...
Weston
Weston Weems - 27 Oct 2004 18:45 GMT
I found that I was trying to stick a pagebreak in a
paragraph which i dont think is supposed to work. So I
went ahead and stuck it in EndDocument range, and it did
infact create a pagebreak, but what I found is that the
order in which I was spitting data out to the document is
completely inverted.
...InsertAfter("Second Item");
...InsertAfter("First Item");
To get the items to display properly.
Has *ANYONE* seen this strange behaviour?
>-----Original Message-----
>Hello...
[quoted text clipped - 21 lines]
>Weston
>.