InputHeader Method

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

Applies to

IWPTextCursor

Declaration

void InputHeader(int Range, string Name, string Text)

Description

Create a header with the specified "Range" selection.

 

Parameters Range, Name, Text have same meaning as for function InputFooter().

 

Please also see Memo.BlockAdd and Memo.BlockFind.

 

InputHeader Example

 

WPDLLInt1.TextCursor.InputHeader(

 0,   // OnAllPages

 "",  // no name

 // The text with HTML tags

 "Custom <b>Header</b>"+

 // Insert tab char and set right tab at 9000 twips

 "<tab right=9000/>"+

 // Insert page number text object

 "page <pagenr/>"+

 // Insert page count text object

 "/<pagecount/>");

 

 

Tip: To insert page numbers in code use IWPTextCursor.InputFieldObject

 

To delete a block (such a header or footer text) call the "Delete" method published by the interface IWPDataBlock which is returned by Memo.BlockFind.


[idh_iwptextcursor_inputheader.htm]    Copyright © 2007 by WPCubed GmbH