Skip to content

Instantly share code, notes, and snippets.

// For complete examples and data files, please go to https://github.com/groupdocs-assembly/GroupDocs.Assembly-for-.NET
//Setting up source open presentation template
const String strPresentationTemplate = "Presentation Templates/In-Table List with Highlighted Rows_DB_OpenDocument.odp";
//Setting up destination open presentation report
const String strPresentationReport = "Presentation Reports/In-Table List with Highlighted Rows_DB Report.odp";
try
{
//Instantiate DocumentAssembler class
DocumentAssembler assembler = new DocumentAssembler();
//Call AssembleDocument to generate In-Table List with Highlighted Rows Report in open presentation format
assembler.AssembleDocument(CommonUtilities.GetSourceDocument(strPresentationTemplate),
CommonUtilities.SetDestinationDocument(strPresentationReport),
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