GroupDocsGists
10/24/2017 - 1:08 PM

Examples-GroupDocs.Assembly.Examples.Java-src-main-java-com-groupdocs-assembly-examples-GenerateReport-singlerowtxt.java

// 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());
}