GroupDocsGists
10/24/2017 - 1:13 PM

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

// For complete examples and data files, please go to https://github.com/groupdocs-assembly/GroupDocs.Assembly-for-Java
String srcDocument = "/Word Templates/Common Master-Detail.docx";
String docReport = "/Word Reports/Common Master-Detail_report.docx";
try {
	Manager manager = new DataStorage().getManagers().iterator().next();
	DocumentAssembler assembler = new DocumentAssembler();
	assembler.assembleDocument(CommonUtilities.getTestDataPath(srcDocument),
			CommonUtilities.getTestOutPath(docReport), new DataStorage(), null);
} catch (Exception exp) {
	System.out.println("Exception: " + exp.getMessage());
}