Sign in to follow this  
hjavali

Export To Pdf Error In Asp.net

Recommended Posts

I am using FusionCharts 3.2 from ASP.net application using VB.NET.

 

Here is how my chart xml node looks like (only related attributes shown):

 

"<chart exportEnabled='1' exportTargetWindow='_blank' exportHandler='\FusionCharts\ExportHandlers\ASP_Net\FCExporter.aspx' showFCMenuItem='0' baseFontSize='11' " ........

 

I use FusionCharts.RenderChartHTML(""/FusionCharts/ScrollCombi2D.swf" ......) method to reneder the chart.

Chart shows perfectly fine on browser.

 

When I right click on the chart in browser and click export to pdf and I see "captureing data " progress bar for a short time and get the following error on the server for file FusionCharts\ExportHandlers\ASP_Net\FCExporter.aspx.cs

 

.

 

 

Server Error in '/' Application.

 

Compilation Error

Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

 

Compiler Error Message: CS0116: A namespace does not directly contain members such as fields or methods

 

Source Error:

 

Line 1: /**Line 2: Line 3: *

 

 

Clearly there is no namespace in the FCExporter.aspx.cs file and hence this error. Does any one know how to get around this error?

 

Thanks a lot

-Hemanth

Share this post


Link to post
Share on other sites
Guest Basundhara Ghosal

Hi,

 

Welcome to FusionCharts.

 

It seems that you are having an issue with encoding.

 

Please try using the attached file and let us know if it helps.

_FCExporter.aspx.cs.zip

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