GroupDocsGists
10/24/2017 - 1:12 PM

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

// For complete examples and data files, please go to https://github.com/groupdocs-assembly/GroupDocs.Assembly-for-Java
String srcDocument = "/Presentation Templates/Using Presentation as Table of Data.pptx";
String docReport = "/Presentation Reports/Using Presentation as Table of Data_report.pptx";
try {
	Manager manager = new DataStorage().getManagers().iterator().next();
	DocumentAssembler assembler = new DocumentAssembler();
	assembler.assembleDocument(CommonUtilities.getTestDataPath(srcDocument),
			CommonUtilities.getTestOutPath(docReport), DataStorage.presentationData(), "table");
} catch (Exception exp) {
	System.out.println("Exception: " + exp.getMessage());
}