Created
September 28, 2018 07:42
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 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