InputFooter Method

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

Applies to

IWPTextCursor

Declaration

void InputFooter(int Range, string name, string Text)

Description

Create a footer with the specified "Range" selection. Please also see InputHeader and BlockAdd.

 

Parameters

Range

wpraOnAllPages =0; // use on all pages

wpraOnOddPages =1; // use on odd pages (1,3,5,...)

wpraOnEvenPages=2; // use on even pages (2,4,6,...)

wpraOnFirstPage=3; // print on first page only

wpraOnLastPage=4; // print on last page only

wpraNotOnFirstAndLastPages=5; // Not on first or last pages

wpraNotOnLastPage=6; // on all but not on last page

wpraNamed=7; // Use event OnGetSpecialText to select header or footer

wpraIgnored=8; // Dont use this header or footer

wpraNotOnFirstPage=9; // On all but not on first page

Name

A name for the footer, usually "" except for Range=wpraNamed

Text

The initialization text, if no text was specified the footer will be cleared and the cursor will be placed within.

The text which is passed as parameter "Text" may be contain RTF or HTML formatting tags. When using HTML you can use the following proprietary closed HTML tags:

<pagenr/>: Print the current page number

<pagecount/>: Print the page count

<tab/>: Insert a tabchar and create a tabstop: left, right, center, decimal=twips-value

<field/>: create a merge field. Use name and command parameter.

 


[idh_iwptextcursor_inputfooter.htm]    Copyright © 2007 by WPCubed GmbH