Hi.
May be this can help you ...
chExcelApplication:ActiveSheet
ageSetup:RightHeader = "Pag &P" + " de " + "&#". /* Page n of n' */
chExcelApplication:ActiveSheet
ageSetup:LeftHeader = "First Line~nSegunda Linea~nHola Pag &P~n &F". /* Text, new lines, page number and Today */
chExcelApplication:ActiveSheet
ageSetup:CenterHeader = "En el Centro~n&G". /* Text and a picture */
chExcelApplication:ActiveSheet
ageSetup:CenterHeaderPicture:FILENAME = SEARCH('mylogo.jpg'). /* The picture */
chExcelApplication:ActiveSheet
ageSetup:HeaderMargin = chExcelApplication:InchesToPoints(0.8). /* New top */
chExcelApplication:ActiveSheet
ageSetup:topMargin = chExcelApplication:InchesToPoints(1.5). /* New data top */
/* Take care with your logo size. If it's big, may ocult the data */
/* For the footer use the same changing Header for Footer */
/* For the header. If you only want repeat some lines then use */
chExcelApplication:ActiveSheet
ageSetup
rintTitleRows = '$1:$5'.
/* This repeats the lines 1 to 5 each page */
Bye.
MRobles