OCDataCompositionTemplate template = templateComposer.execute(dataCompositionSchema, defaultSettings, details);
OCDataCompositionProcessor processor = rProc.createCompositionProcessor();
processor.initialize(template, structure, details, true);
OCDataCompositionResultSpreadsheetDocumentOutputProcessor spreadSheetProcessor = rProc.createDataCompositionResultSpreadsheetDocumentOutputProcessor();
OCSpreadsheetDocument spreadsheetDocument = rProc.createSpreadsheetDocument();
spreadsheetDocument.clear();
spreadSheetProcessor.setDocument(spreadsheetDocument);
spreadsheetDocument = spreadSheetProcessor.output(processor);
//==================
OCSpreadsheetDocumentHeaderFooter footer = spreadsheetDocument.getHeader();
footer.setEnabled(true);
footer.setStartPage(0);