Sign in to follow this  
Jeff Yates

Create server side images to attach to emails within C# .NET project class

Recommended Posts

Hi there,

 

We have been using a FusionCharts DLL, namely FusionChartsImageSaver to generate an Image file using flash on the server (not in a browser) before we attach it to an email.

 

using FusionCharts; // namespace

 public MemoryStream GetChartImage(int width, int height, string chartType, string format, string chartData, bool useFlash=true)
        {
            try
            {
                var memoryStream = new MemoryStream();
 
                var swfPath = Paths.OurPath + @"\js\fusion_charts-3.2.2\" + chartType + ".swf" : "";
 
                ServerSideImageHandler.ImageType imgType = ServerSideImageHandler.ImageType.JPG;
 
                var ssh = new ServerSideImageHandler(swfPath, width, height, chartData, "", memoryStream, imgType, 72f);
 
                ssh.SetChartVersion("3.2.2.0");
 
                // Begins the capture process                  
                var isSuccess = ssh.BeginCapture();
 
                return memoryStream;
}

 

Now that we have upgraded to the latest version of Fusion Charts 3.11.3 we would like to do exactly the same thing but without using flash and I can't find any way this is possible. 

 

Can you advise please? 

 

Thanks!

 

 

Share this post


Link to post
Share on other sites

Hi,

 

I am afraid that you are using too older version please upgrade your FusionCharts to it's latest version because the Flash based version is deprecated. 

 

Please try to implement FusionCharts supported ASP.NET private export server. For further reference please visit http://www.fusioncharts.com/dev/exporting-charts/server-side-export/setup-private-export-server-asp-net.html

 

You could download the scaled down sample implementing  FusionChrts ASP.NET Private export server from the below given DropBox link.

 

https://www.dropbox.com/s/kvji3kt4i7n5e5g/Demo%20asp.net%20export%20handler%20for%20save%20as.zip?dl=0

 

Please check the sample and try to implement the same at your end.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this