csharp 示例 - CSHARP - 报告 - GenerateReport-GenerateCommonMasterDetailReportFromJsoninSpreadsheet.cs

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了csharp 示例 - CSHARP - 报告 - GenerateReport-GenerateCommonMasterDetailReportFromJsoninSpreadsheet.cs相关的知识,希望对你有一定的参考价值。

// For complete examples and data files, please go to https://github.com/groupdocsassembly/GroupDocs_Assembly_NET
//setting up source 
const String strDocumentTemplate = "Spreadsheet Templates/Common Master-Detail.xlsx";
//Setting up destination 
const String strDocumentReport = "Spreadsheet Reports/Common Master-Detail_Json Report.xlsx";
try
{
    //Instantiate DocumentAssembler class
    DocumentAssembler assembler = new DocumentAssembler();//initialize object of DocumentAssembler class 
    //Call AssembleDocument to generate Common master-detail report in spreadsheet format
    assembler.AssembleDocument(CommonUtilities.GetSourceDocument(strDocumentTemplate), CommonUtilities.SetDestinationDocument(strDocumentReport), DataLayer.GetCustomerDataFromJson(), "customers");
}
catch (Exception ex)
{
    Console.WriteLine(ex.Message);
}

以上是关于csharp 示例 - CSHARP - 报告 - GenerateReport-GenerateCommonMasterDetailReportFromJsoninSpreadsheet.cs的主要内容,如果未能解决你的问题,请参考以下文章

csharp 示例 - CSHARP - 报告 - GenerateReport-GenerateBubbleChartFromJsoninWord.cs

csharp 示例 - CSHARP - 报告 - GenerateReport-GenerateBulletedListFromJsoninExcel.cs

csharp 示例 - CSHARP - 报告 - GenerateReport-GenerateBulletedListFromJsoninPresentation.cs

csharp 示例 - CSHARP - 报告 - GenerateReport-GenerateBulletedListFromJsoninWord.cs

csharp 示例 - CSHARP - 报告 - GenerateReport-GenerateChartWithFilteringGroupingAndOrderingFromJsoninP

csharp 示例 - CSHARP - 报告 - GenerateReport-GenerateChartWithFilteringGroupingAndOrderingFromJsoninS