PDA

View Full Version : [CLOSED] How to Export SVG chart from code behind



feanor91
Jun 20, 2012, 9:12 AM
Hello

Is ther a way to achive that :



Ext.draw.engine.SvgExporter.self.generate(null, App.chart1.surface)


in code behind, assumin I access the chart from my code behind?

i will say it works fine from JS and all, but I have a problem when saving charts to disk with SVG dll : the files created are blocked by IIS process so I coulnd't delete them exept if I kill W3WP process, that is not really fair, so I will try to deal with this from code behind to handle all charts needed into memorystreams to pass them to a function. The goal to all that stuff is to generate that :

4385

feanor91
Jun 20, 2012, 11:56 AM
Finally I have found a way to make it. In place to access the surface from code behind, I save the SVG string into a file and deal with that file in my pdf generation procedure.

It works flawlessly.

Daniil
Jun 20, 2012, 1:45 PM
Thanks for the question and sharing the solution.

JCarlosF
Jun 26, 2013, 7:29 PM
Finally I have found a way to make it. In place to access the surface from code behind, I save the SVG string into a file and deal with that file in my pdf generation procedure.

It works flawlessly.

can you post the code that saves the chart to a SVG in code behind please im trying with :


chrt1.Save(ChartExportType.PNG, 100, 100)

but dont works

thnks

Daniil
Jun 27, 2013, 6:20 AM
can you post the code that saves the chart to a SVG in code behind please im trying with :


chrt1.Save(ChartExportType.PNG, 100, 100)

but dont works

thnks

The issue is being discussed here.
http://forums.ext.net/showthread.php?25448