Recommended Posts

Hi Team,

 

We have problem opening the PDF while chart is converted to PDF.Here is the Javascript Code.

Error image.png.d75d29419eec7f849bd409101e957437.png

<!-- Using ASP.NET FusionCharts Wrapper and JavaScript rendering --><!-- START Script Block for Chart myChart -->
<div id='myChart_div' >
Chart...
</div>
<script type="text/javascript">
FusionCharts && FusionCharts.ready(function () {
if (FusionCharts("myChart") ) FusionCharts("myChart").dispose();
var chart_myChart = new FusionCharts({
"id" : "myChart", 
"width" : "900", 
"dataSource" : "<chart allowRotation='1' showLegend='1' legendPosition='BOTTOM' legendIconScale='1' legendNumColumns='3' skipOverlapLabels = '0' theme='fusion' enableSmartLabels = '1' manageLabelOverflow = '1' caption='Blocked Websites' xAxisName='Category' yAxisName='Blocked' formatNumberScale='0' showBorder='1'  exportEnabled='1' exportAtClient='0' exportAction='save' exportHandler='http://localhost:56919//FCExporter.aspx' exportFileName='uqcnjhmoddqxnb45zwqoami5_Activity_Tab1PieChart' exportFormats='PDF=Save Activity Chart ' showValues='0' ><set label='Viruses and malicious programs [ 1 ] ' value='1' color='406A9C'/><set label='Upon order from judicial authorities or in accordance with the law [ 0 ] ' value='0' color='9E403E'/><set label='Terrorism [ 0 ] ' value='0' color='7F9A4B'/><set label='Supporting criminal acts and skills [ 0 ] ' value='0' color='695087'/><set label='Promotion of or trading in prohibited commodities and services [ 0 ] ' value='0' color='3291B1'/><set label='Prohibited TLD [ 0 ] ' value='0' color='D37434'/><set label='Pornography nudity and vice [ 19 ] ' value='19' color='C64D4E'/><set label='Offences against the UAE and public order [ 0 ] ' value='0' color='ABD49E'/><set label='Medical and pharmaceutical practices in violation of the laws [ 0 ] ' value='0' color='28750D'/><set label='Invasion of Privacy [ 0 ] ' value='0' color='A115D2'/><set label='Insult slander and defamation [ 0 ] ' value='0' color='766ABD'/><set label='Infringement of intellectual property rights [ 0 ] ' value='0' color='83850D'/><set label='Impersonation fraud and phishing [ 8 ] ' value='8' color='A48A47'/><set label='Illegal communication services [ 1 ] ' value='1' color='8FB1B4'/><set label='Illegal Activities [ 0 ] ' value='0' color='6B5B51'/><set label='Gambling [ 5 ] ' value='5' color='14F1AE'/><set label='Drugs [ 5 ] ' value='5' color='F1E814'/><set label='Discrimination racism and contempt of religion [ 1 ] ' value='1' color='0E4343'/><set label='Bypassing Blocked Content [ 4 ] ' value='4' color='31EBEE'/></chart>", 
"type" : "pie3d", 
"height" : "800", 
"renderAt" : "myChart_div", 
"dataFormat" : "xml", 
}).render();
});
</script>
<!-- END Script Block for Chart myChart -->
 

Share this post


Link to post
Share on other sites

Hi Team,

 

We are waiting for your support on this issue.

We Can able to view the PDF when we downloaded in client side. But the file saved in the server folder we are getting this issue.

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