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);
footer.setCenterText("[&Дата] ([&Date])");
System.out.println(footer.getVerticalAlign());
System.out.println(footer.getCenterText());
//==================
spreadsheetDocument.writeTXT("C:\\Developer\\Temp\\testRTXT.txt");
}