Forked from atirtahirgroupdocs/Examples-CSharp-GroupDocs.AssemblyExamples-GenerateReport-GenerateInTableListWithAlternateContentFromXMLinOpenPresentationFormat.cs
Created
December 16, 2015 13:21
-
-
Save Bostonncity/83a3b26f36954f070843 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // For complete examples and data files, please go to https://github.com/groupdocsassembly/GroupDocs_Assembly_NET | |
| //Setting up source open presentation template | |
| const String strPresentationTemplate = "Presentation Templates/In-Table List with Alternate Content_XML_OpenDocument.odp"; | |
| //Setting up destination open presentation report | |
| const String strPresentationReport = "Presentation Reports/In-Table List with Alternate Content_XML Report.odp"; | |
| try | |
| { | |
| //Instantiate DocumentAssembler class | |
| DocumentAssembler assembler = new DocumentAssembler(); | |
| //Call AssembleDocument to generate In-Table List with Alternate Content Report in open presentation format | |
| assembler.AssembleDocument(CommonUtilities.GetSourceDocument(strPresentationTemplate), CommonUtilities.SetDestinationDocument(strPresentationReport), DataLayer.GetAllDataFromXML(), "ds"); | |
| } | |
| catch (Exception ex) | |
| { | |
| Console.WriteLine(ex.Message); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment