InputPagebreak Method

[Top]  [Chapter]  [Previous]  [Next]

Applies to

IWPTextCursor

Declaration

procedure InputPagebreak;

Description

Creates a page break. If the current position is not at the start of a paragraph it will first create a paragraph break at the current position and insert the page break before the new paragraph.


InputPagebreak Example

 

Merge RTF files and create table-of-contents

The Text uses _TocXXXX Bookmarks around headline text, in the RTF code this reads as {\*\bkmkstart _Toc133939675}Section Header{\*\bkmkend _Toc133939675}

wpdllInt1.Memo.TextCursor.GotoStart();

wpdllInt1.Memo.SetBProp(WPDynamic.BPropSel.wpWriteObjectMode,5,1);

wpdllInt1.Memo.wpaProcess("InsertToc","");

wpdllInt1.Memo.TextCursor.InputPagebreak();

wpdllInt1.Memo.LoadFromFile(@"C:\Title.rtf",true,"RTF");

wpdllInt1.Memo.LoadFromFile(@"C:\Body.rtf",true,"RTF");

wpdllInt1.Memo.TextCursor.InputPagebreak();  wpdllInt1.Memo.LoadFromFile(@"C:\Title2.rtf",true,"RTF");

wpdllInt1.Memo.LoadFromFile(@"C:\Body2.rtf",true,"RTF");

 


[idh_iwptextcursor_inputpagebreak.htm]    Copyright © 2007 by WPCubed GmbH