当前位置: 首页 > news >正文

淘宝客怎么做网站推广建设网站请示

淘宝客怎么做网站推广,建设网站请示,品牌logo设计说明,连云港网页设计ActiveReports 报表控件V12新特性 -- 新增JSON和CSV导出 ActiveReports 是一款专注于 .NET 平台的报表控件#xff0c;全面满足 HTML5 / WinForms / ASP.NET / ASP.NET MVC / WPF 等平台下报表设计和开发工作需求#xff0c;作为专业的报表工具为全球超过 300,000 开发人员提… ActiveReports 报表控件V12新特性 -- 新增JSON和CSV导出 ActiveReports 是一款专注于 .NET 平台的报表控件全面满足 HTML5 / WinForms / ASP.NET / ASP.NET MVC / WPF 等平台下报表设计和开发工作需求作为专业的报表工具为全球超过 300,000 开发人员提供了全面的报表开发服务。   最新发布的ActiveReports 12推出了两种新的导出模式 JSON和CSV 这些导出功能类似于我们的其他接口如PDFDocDocx和HTML只需要几行代码就可以实现。   一、 导出 JSON JSON(JavaScript Object Notation) 是一种轻量级的数据交换格式。JSON采用完全独立于语言的文本格式这些特性使JSON成为理想的数据交换语言 1、在报表设计器中导出JSON模式具体操作如下 2、代码中实现 // Provide the page report you want to render. GrapeCity.ActiveReports.PageReport report new GrapeCity.ActiveReports.PageReport(); GrapeCity.ActiveReports.Document.PageDocument reportDocument new GrapeCity.ActiveReports.Document.PageDocument(report); // Create an output directory. System.IO.DirectoryInfo outputDirectory new System.IO.DirectoryInfo(C:\MyJSON); outputDirectory.Create(); // Provide settings for your rendering output. GrapeCity.ActiveReports.Export.Text.Page.JsonRenderingExtension.Settings jsonSettings new GrapeCity.ActiveReports.Export.Text.Page.JsonRenderingExtension.Settings(); jsonSettings.Formatted true; // Set the rendering extension and render the report. GrapeCity.ActiveReports.Export.Text.Page.JsonRenderingExtension jsonRenderingExtensionnew GrapeCity.ActiveReports.Export.Text.Page.JsonRenderingExtension(); GrapeCity.ActiveReports.Rendering.IO.FileStreamProvider outputProvider new GrapeCity.ActiveReports.Rendering.IO.FileStreamProvider(outputDirectory, System.IO.Path.GetFileNameWithoutExtension(outputDirectory.Name)); // Overwrite output file if it already exists. outputProvider.OverwriteOutputFile true; reportDocument.Render(jsonRenderingExtension, outputProvider, jsonSettings);   二、 导出CSV CSV逗号分隔值文件Comma Separated value,是一种用来存储数据的纯文本文件格式。CSV是一种通用的文件格式它可以非常容易的被导入各种PC表格及数据库中CSV文件中的一行即就是数据表中的一行。 1、在报表设计器中导出CSV模式具体操作如下 2、代码中实现 // Provide the page report you want to render. GrapeCity.ActiveReports.PageReport report new GrapeCity.ActiveReports.PageReport(); GrapeCity.ActiveReports.Document.PageDocument reportDocument new GrapeCity.ActiveReports.Document.PageDocument(report); // Create an output directory. System.IO.DirectoryInfo outputDirectory new System.IO.DirectoryInfo(C:\MyCSV); outputDirectory.Create(); // Provide settings for your rendering output. GrapeCity.ActiveReports.Export.Text.Page.CsvRenderingExtension.Settings csvSettings new GrapeCity.ActiveReports.Export.Text.Page.CsvRenderingExtension.Settings(); csvSettings.ColumnsDelimiter ,; csvSettings.RowsDelimiter \r\n; csvSettings.QuotationSymbol ; csvSettings.Encoding Encoding.UTF8; // Set the rendering extension and render the report. GrapeCity.ActiveReports.Export.Text.Page.CsvRenderingExtension csvRenderingExtension new GrapeCity.ActiveReports.Export.Text.Page.CsvRenderingExtension(); GrapeCity.ActiveReports.Rendering.IO.FileStreamProvider outputProvider new GrapeCity.ActiveReports.Rendering.IO.FileStreamProvider(outputDirectory, System.IO.Path.GetFileNameWithoutExtension(outputDirectory.Name)); // Overwrite output file if it already exists. outputProvider.OverwriteOutputFile true; reportDocument.Render(csvRenderingExtension, outputProvider, csvSettings); 定制培训加量全心送凡在2017年12月31日之前购买葡萄城控件团队授权和企业授权的用户不仅可以享受到优惠的价格还可获赠葡萄城技术专家根据客户项目需求提供的定制培训服务。老客户推荐新客户成单也将获得“客户推荐双重感恩礼”。 点击此处了解更多。   关于葡萄城报表 葡萄城报表是一套强大的报表开发和系统搭建工具既能与您开发的报表软件项目紧密集成也可独立部署运行支持多数据源具有无编码、灵活、稳定等特性可以帮您快速搭建专业的报表软件系统实现各类报表的设计、管理、权限控制、数据填报、负载均衡及跨平台发布。 千万种报表同一种选择获知葡萄城报表更多详情请访问如下网站了解报表开发控件http://www.gcpowertools.com.cn/products/activereports_overview.htm了解报表服务器http://www.grapecity.com.cn/enterprise-solutions/activereports_server/ posted on 2017-12-18 15:25 春笋拔节 阅读(...) 评论(...) 编辑 收藏 转载于:https://www.cnblogs.com/chunsunbajie/p/json_csv.html
http://www.sadfv.cn/news/2007/

相关文章: