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 spreadsheet template
const String strSpreadsheetTemplate = "Spreadsheet Templates/In-Table List_DT_OpenDocument.ods";
//Setting up destination open spreadsheet report
const String strSpreadsheetReport = "Spreadsheet Reports/In-Table List_DT Report.ods";
try
{
//Instantiate DocumentAssembler class
DocumentAssembler assembler = new DocumentAssembler();
//Call AssembleDocument to generate In-Table List Report in open spreadsheet format
assembler.AssembleDocument(CommonUtilities.GetSourceDocument(strSpreadsheetTemplate),
CommonUtilities.SetDestinationDocument(strSpreadsheetReport),
new DataSourceInfo(DataLayer.GetCustomersAndOrdersDataDT(), "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