Export Chart

I am trying to export a sfchart via the example in the knowledge base but I am getting the error "The parameter value must be greater than zero." What is causing this error and how can i fix it? See picture below.


7 Replies

DV Divya Venkatesan Syncfusion Team March 2, 2018 08:56 AM UTC

Hi Caleb,

Thanks for using Syncfusion products.

We have analyzed your query and checked chart export with provided code in your update. SfChart export working fine with it. I have attached reference sample in below location, please check it. If you still face the issue, please give more details about your machine details and Syncfusion product version that would be helpful for us to give better solution.

Sample: http://www.syncfusion.com/downloads/support/forum/136194/ze/ExportChartSample-977724830

Regards,
Divya Venkatesan



CK Caleb Kliewer March 5, 2018 07:10 PM UTC

Thanks for the reply but I am trying to do it in the code behind rather than in xaml. I don't understand where pixelWidth is not being set and how to fix it.


DS Durgadevi Selvaraj Syncfusion Team March 6, 2018 03:39 PM UTC

Hi Caleb, 
Thanks for the update.  
We have analyzed the reported problem based on the exception stack trace and we suspect that you are trying to save the chart even it is not in UI. If it so, you need to call Measure() and arrange() methods of chart manually before saving it.  
  
We have prepared a sample based on this and it can be downloaded from the below link, 
 
Sample:Save-SfChart
 
  
If your requirement is different from our solution then we request you to provide some more detail about your exact requirment. It would be more helpful for us to provide a solution as sooner. 
  
Regards,  
Durgadevi S 



CK Caleb Kliewer March 6, 2018 03:57 PM UTC

This solved my issue. Thanks!


DS Durgadevi Selvaraj Syncfusion Team March 6, 2018 04:12 PM UTC

Hi Caleb, 
 
We glad to know that the provided solution resolved your problem. 
 
Please let us know if you need any further assistance on this. 
 
Regards, 
Durgadevi S 
 
 
 




CK Caleb Kliewer March 6, 2018 04:24 PM UTC

I have implemented this solution and can save a chart but chart.Arrange takes a very long time. Is there any way to speed up the sizing? It takes almost 30 seconds to size the chart.


MK Muneesh Kumar G Syncfusion Team March 7, 2018 09:33 AM UTC

Hi Caleb,

We have analyzed your query and we are unable to reproduce the reported problem with our provided sample. Can you please update us chart related code in your application, that would be helpful for us to provide better solution on this.

Regards,
Muneesh Kumar G.

 


Loader.
Up arrow icon