SfChart to Stream

I'm looking for a way to export an SfChart as a Stream in Blazor, so I can embed the chart in a PDF.

In Xamarin SfChart, there is a GetStream method, but I don't see an equivalent for Blazor.  

The closest I could find is the Export method: https://blazor.syncfusion.com/documentation/chart/chart-print/

However, the Export method can only download to the browser, and I need the chart as a Stream or file on the server.

4 Replies 1 reply marked as answer

SM Srihari Muthukaruppan Syncfusion Team January 5, 2021 11:34 AM UTC

Hi Evan, 
 
We have analyzed your query. From that, we would like to let you know that we can achieve your requirement by using the dataURL in the onExportComplete event. But as of now we are facing difficulties in getting dataURL in the Args and we have already logged a bug task on this. This fix will be available in our upcoming weekly patch release which is scheduled to be rolled out on 12th January 2021. We appreciate your patience until then. You can keep track of the bug from the feedback portal below.  
   
   
The provided feedback link is private, and you need to login to view this feedback.  
   
If you have any more specification/precise replication procedure or a scenario to be tested, you can add it as a comment in the portal.  
   
Regards,  
Srihari M 



ED Evan DeGraff January 5, 2021 05:08 PM UTC

Thanks you for the prompt reply; I look forward to the fix.

It seems I don't have access to the feedback link, even when I'm logged in.


SM Srihari Muthukaruppan Syncfusion Team January 6, 2021 07:08 AM UTC

Hi Evan, 

Sorry for the inconvenience. 

We have included your email id. Now you can access the provided feedback link.  


Let us know if you have any concerns 

Regards, 
Srihari M 



SM Srihari Muthukaruppan Syncfusion Team January 12, 2021 05:51 PM UTC

Hi Evan, 
 
We are glad to announce that our v18.4.34 patch release is rolled out, we have added the fix for the reported scenario. And you can use the latest (18.4.34) Syncfusion.EJ2.Blazor NuGet package version and updated interop CDN file to get rid of the reported issue. 
 
 
 
 
We appreciate your patience in waiting for this release. Kindly let us know if you need further assistance. 
 
Regards, 
Srihari 


Marked as answer
Loader.
Up arrow icon