Created
September 28, 2018 12:48
-
-
Save GroupDocsGists/4e9929b8e6f24ecf73efb8f430f6e264 to your computer and use it in GitHub Desktop.
This file contains 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/groupdocs-assembly/GroupDocs.Assembly-for-.NET | |
//Setting up source open document template | |
const String strDocumentTemplate = "Word Templates/In-Table List with Filtering, Grouping, and Ordering_DB_OpenDocument.odt"; | |
//Setting up destination open document report | |
const String strDocumentReport = "Word Reports/In-Table List with Filtering, Grouping, and Ordering_DT Report.odt"; | |
try | |
{ | |
//Instantiate DocumentAssembler class | |
DocumentAssembler assembler = new DocumentAssembler(); | |
//Call AssembleDocument to generate In-Table List with Filtering, Grouping, and Ordering Report in open document format | |
assembler.AssembleDocument(CommonUtilities.GetSourceDocument(strDocumentTemplate), | |
CommonUtilities.SetDestinationDocument(strDocumentReport), | |
new DataSourceInfo(DataLayer.GetCustomersAndOrdersDataDT())); | |
} | |
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