Are you using following xml structure?
<afterInit> <call command="attachHeader"><param>1,#cspan,3,#cspan,5,#cspan,7,#cspan</param></call> <call command="attachHeader"><param>1,2,3,4,5,6,7,8</param></call> <call command="attachFooter"><param>1,#cspan,3,#cspan,5,#cspan,7,#cspan</param></call> </afterInit>