Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save GroupDocsGists/24899d1a3827a0d2b9fb0852d768983b to your computer and use it in GitHub Desktop.
Save GroupDocsGists/24899d1a3827a0d2b9fb0852d768983b 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_DB 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.GetOrdersDataDB(), "orders"));
}
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