Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save GroupDocsGists/4e9929b8e6f24ecf73efb8f430f6e264 to your computer and use it in GitHub Desktop.
Save GroupDocsGists/4e9929b8e6f24ecf73efb8f430f6e264 to your computer and use it in GitHub Desktop.
// 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