// For complete examples and data files, please go to https://github.com/groupdocs-assembly/GroupDocs.Assembly-for-Java
String srcDocument = "/Text Templates/Single Row.txt";
String docReport = "/Text Reports/Single Row_report.txt";
try {
Manager manager = new DataStorage().getManagers().iterator().next();
DocumentAssembler assembler = new DocumentAssembler();
assembler.assembleDocument(CommonUtilities.getDataPath(srcDocument),
CommonUtilities.getOutPath(docReport), manager, "manager");
} catch (Exception exp) {
System.out.println("Exception: " + exp.getMessage());
}