FusionCharts ASP.NET Export Handler
=====================================
What is FusionCharts .NET export handler?
-----------------------------------------
FusionCharts Suite XT uses JavaScript to generate charts in the browser, using SVG and VML (for older IE). If you need
to export the charts as images or PDF, you need a server-side helper library to convert the SVG to image/PDF. These
export handlers allow you to take the SVG from FusionCharts charts and convert to image/PDF.
How does the export handler work?
---------------------------------
- A chart is generated in the browser. When the export to image or PDF button is clicked, the chart generates the SVG string
to represent the current state and sends to the export handler. The export handler URL is configured via chart attributes.
- The export handler accepts the SVG string along with chart configuration like chart type, width, height etc., and uses
SharpVectors library to convert to image or PDF.
- The export handler either writes the image or PDF to disk, based on the configuration provided by chart, or streams it
back to the browser.
Requirements
------------
- .NET Framework 3.5 or higher
Installation
------------
- Unzip the 'asp-net-export-handler.zip' in your IIS wwwroot folder (e.g. C:\inetpub\wwwroot)
- Add an application in your server and set physical path to the above folder
- Set the URL of 'FCExporter.aspx' from the above web application into the chart's 'exportHandler' attribute
- Make sure 'IUSR' has proper read/write permission in the 'Exported_Images' folder
- FusionCharts' export request contains some XML data, which is restricted in .NET 4 or above. You may need to add the following configuration in your 'web.config' file:
<system.web>
<httpRuntime requestValidationMode="2.0"/>
</system.web>
Licensing
---------
FUSIONCHARTS:
Copyright (c) FusionCharts Technologies LLP
License Information at <http://www.fusioncharts.com/license>
SHARPVECTORS:
The SharpVectors software modified and redistributed herein is covered under the New BSD License (BSD),
and is subject to the following conditions from that license:
Copyright (c) 2010, SharpVectorGraphics
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
following conditions are met:
* Redistributions of source code must retain the above copyright notice, this list of conditions and the
following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the
following disclaimer in the documentation and/or other materials provided with the distribution.
* Neither the name of SharpVectorGraphics nor the names of its contributors may be used to endorse or promote
products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
SharpVectors source code is available from https://sharpvectors.codeplex.com/
没有合适的资源?快使用搜索试试~ 我知道了~
FusionCharts图片导出的代码
共17个文件
dll:8个
jpg:2个
cs:2个
需积分: 9 10 下载量 33 浏览量
2015-11-26
17:01:18
上传
评论
收藏 336KB RAR 举报
温馨提示
用过的人都知道FusionCharts生成的图片非常漂亮,那么怎么导出来呢? 大家肯定第一反应是想到了一个属性:exportaction。不过,这个属性提供了服务器端下载以及客户端下载,但是经过我多次试验后发现一个BUG:exportaction,/如果是SAVE则没反应 图片也没有下载到服务器上,但是能回调函数;download可以下载图片 但是没有回调函数。此代码完美解决了这个问题。请参照我博客里面一篇文章来看这个代码,你就会很容易知道怎么导出了。
资源推荐
资源详情
资源评论
收起资源包目录
FusionChartsAspExportHandler.rar (17个子文件)
FusionChartsAspExportHandler
FCExporterServerDown.aspx.cs 62KB
Web.config 2KB
CheckImgFinished.ashx 757B
aspnet_client
system_web
4_0_30319
FCExporter.aspx 126B
Exported_Images
3568f846-7bf8-81c6-94ac-18e529956801.jpg 26KB
82ed3be1-33dc-0fe6-caa4-be70d96a3e94.jpg 31KB
FCExporter.aspx.cs 67KB
Bin
FusionCharts.SharpVectors.Converters.dll 60KB
FusionCharts.SharpVectors.Css.dll 76KB
FusionCharts.SharpVectors.Model.dll 948KB
FusionCharts.SharpVectors.Core.dll 104KB
FusionCharts.SharpVectors.Rendering.Wpf.dll 97KB
FusionCharts.SharpVectors.Dom.dll 44KB
FusionCharts.SharpVectors.Rendering.Gdi.dll 72KB
FusionCharts.SharpVectors.Runtime.dll 44KB
FCExporterServerDown.aspx 149B
readme.txt 4KB
共 17 条
- 1
资源评论
容妞
- 粉丝: 26
- 资源: 7
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 上市公司-人工智能的采纳程度面板数据(2003-2021年).xlsx
- 第5章spring-mvc请求映射处理
- 2023-04-06-项目笔记 - 第一百十六阶段 - 4.4.2.114全局变量的作用域-114 -2024.04.27
- app-release.apk.1
- soap json 等系列化方式
- c++的五子棋代码,在vs6.0上完美运行
- 基于Javaee的影视创作论坛的设计与实现.rar
- Python导出Mysql数据字典(部分表或全表)
- Java工具类实现输入一个路径,强创建路径、并且鉴权目标路径是否具备修改权限,用于增强程序的健壮性与稳定性,快速开发!
- 资源【STM32+HAL】三轴按键PS2摇杆
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功