我正在为我的应用程序开发使用IppDotNetSdkForQuickBooksApiV3软件包。我能够从Report Object.Intuit API中获得响应,其中包含复杂的结构,我需要将返回的报告对象转换为DataTable(2D结构)。有什么方法可以做,还是我必须遍历对象以形成数据?
QueryService<Invoice> inService = new QueryService<Invoice>(serviceContext);
Invoice In = inService.ExecuteIdsQuery("SELECT * FROM Invoice").FirstOrDefault();
//Reports
ReportService service = new ReportService(serviceContext);
//service.report_date =
Report report = service.ExecuteReport("ProfitAndLoss");