InsertNewFootnoteAt Method (Python)
Inserts a new footnote for the specified layer dimension.
Syntax
index=SpssLayerLabels.InsertNewFootnoteAt(index,string)
Parameters
index. Index of the layer dimension
string. New footnote text
Return Value
index. Integer (to be used to insert the footnote in other cells if it is a shared footnote)
Example
This example inserts a footnote for the layer dimension with index
0 (in the layer label array), and then inserts a shared footnote for
the layer dimension with index 1. It assumes that PivotTable
is an SpssPivotTable
object.
Labels = PivotTable.LayerLabelArray()
index = Labels.InsertNewFootnoteAt(0,"My footnote")
Labels.InsertSharedFootnoteAt(1,index)