PageSetupSetFooter Method

Sets a script formatting the footer of an Excel file.

Namespace:  Aspose.Cells
Assembly:  Aspose.Cells (in Aspose.Cells.dll) Version: 20.9.0.0 (20.9)
Syntax
public void SetFooter(
	int section,
	string footerScript
)

Parameters

section
Type: SystemInt32

0:Left Section.

1:Center Section

2:Right Section

footerScript
Type: SystemString
Footer format script.
Remarks

Script commands:

Command¡¡Description¡¡
&PCurrent page number¡¡
&NPage count¡¡
&DCurrent date¡¡
&TCurrent time
&ASheet name
&FFile name without path
&"<FontName>"Font name, for exampe: &"Arial"
&"<FontName>, <FontStyle>"Font name and font style, for exampe: &"Arial,Bold"
&<FontSize>Font size. If this command is followed by a plain number to be printed in the header, it will be separated from the font height with a space character.
&GImage script
For example: "&Arial,Bold&8Footer Note"
See Also