[CLOSED] How to Export SVG chart from code behind

  1. #1

    [CLOSED] How to Export SVG chart from code behind

    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 :

    Dashboard.pdf
    Last edited by Daniil; Jun 20, 2012 at 1:44 PM. Reason: [CLOSED]
  2. #2
    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.
  3. #3
    Thanks for the question and sharing the solution.
  4. #4
    Quote Originally Posted by feanor91 View Post
    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
  5. #5
    Quote Originally Posted by JCarlosF View Post
    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

Similar Threads

  1. [CLOSED] Export Chart as Image
    By jchau in forum 2.x Legacy Premium Help
    Replies: 7
    Last Post: Feb 28, 2014, 5:14 AM
  2. [CLOSED] export chart to SVG
    By CarpFisher in forum 2.x Legacy Premium Help
    Replies: 30
    Last Post: Jun 07, 2012, 7:49 AM
  3. [CLOSED] How to manage column colors in a chart from code behind.
    By feanor91 in forum 2.x Legacy Premium Help
    Replies: 4
    Last Post: Jun 04, 2012, 12:34 PM
  4. Replies: 1
    Last Post: Jun 02, 2012, 7:12 AM
  5. Replies: 0
    Last Post: May 30, 2012, 8:44 PM

Posting Permissions