Skip to content

Commit

Permalink
Switched to a more recent SVG lib.
Browse files Browse the repository at this point in the history
  • Loading branch information
imclem committed Jan 22, 2014
1 parent 3163a4d commit 76cf6a3
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 14 deletions.
Binary file modified Exporting_Demo_website/Bin/Svg.dll
Binary file not shown.
Binary file modified Exporting_Demo_website/Bin/Tek4.Highcharts.Exporting.dll
Binary file not shown.
Binary file modified Exporting_Demo_website/Bin/Tek4.Highcharts.Exporting.pdb
Binary file not shown.
19 changes: 8 additions & 11 deletions Exporting_Demo_website/web.config
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ rev. 2011-12-24 Latest Svg.dll requires .NET 3.5
rev. 2011-08-18 .NET 2.0
-->
<configuration>
<!-- THIS WEB.CONFIG IS FOR .NET VERSION 3.5 -->
<!--
<!-- THIS WEB.CONFIG IS FOR .NET VERSION 3.5 -->
<!--
This configures the HttpHandler option (HighchartsExport.axd). With this
option you can delete the HighchartsExport.aspx page. This section is not
required if you prefer the .aspx page and don't want to use the HttpHandler.
Expand All @@ -44,12 +44,9 @@ rev. 2011-08-18 .NET 2.0
- An HttpHandler exists in all site subdirectories and child web applications
so there is no need to send an explicit URL path to Highcharts JS.
-->
<system.web>
<httpHandlers>
<add verb="POST"
path="HighchartsExport.axd"
type="Tek4.Highcharts.Exporting.HttpHandler, Tek4.Highcharts.Exporting"/>
</httpHandlers>
</system.web>

</configuration>
<system.web>
<httpHandlers>
<add verb="POST" path="HighchartsExport.axd" type="Tek4.Highcharts.Exporting.HttpHandler, Tek4.Highcharts.Exporting"/>
</httpHandlers>
<compilation debug="true"/></system.web>
</configuration>
4 changes: 2 additions & 2 deletions Tek4.Highcharts.Exporting/Exporter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ namespace Tek4.Highcharts.Exporting
using iTextSharp.text.pdf;
using Svg;
using Svg.Transforms;
using System.Xml;

/// <summary>
/// .NET chart exporting class for Highcharts JS JavaScript charts.
Expand Down Expand Up @@ -166,8 +167,7 @@ private SvgDocument CreateSvgDocument()
using (MemoryStream streamSvg = new MemoryStream(
Encoding.UTF8.GetBytes(this.Svg)))
{
// Create and return SvgDocument from stream.
svgDoc = SvgDocument.Open(streamSvg);
svgDoc = SvgDocument.Open<SvgDocument>(streamSvg);
}

// Scale SVG document to requested width.
Expand Down
5 changes: 4 additions & 1 deletion Tek4.Highcharts.Exporting/Tek4.Highcharts.Exporting.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,10 @@
</PropertyGroup>
<ItemGroup>
<Reference Include="itextsharp, Version=5.1.3.0, Culture=neutral, PublicKeyToken=8354ae6d2174ddca, processorArchitecture=MSIL" />
<Reference Include="Svg, Version=0.5.2.17984, Culture=neutral, processorArchitecture=MSIL" />
<Reference Include="Svg, Version=1.5.2.33180, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>ThirdParty\Svg.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Drawing" />
<Reference Include="System.Web" />
Expand Down
Binary file modified Tek4.Highcharts.Exporting/ThirdParty/Svg.dll
100644 → 100755
Binary file not shown.

0 comments on commit 76cf6a3

Please sign in to comment.