[CLOSED] Exporting 2 Charts with html table to single PNG

  1. #1

    [CLOSED] Exporting 2 Charts with html table to single PNG

    Hi,

    I have 2 charts and Grid panel giving chart details,i have retrieved both the charts SVG and by combining these SVGs, i have converted it to PNG with the help of below post which i had posted earlier.

    http://forums.ext.net/archive/index.php?t-27293.html

    Now my as per requirement i also want to export Grid Panel with these charts into Single png.

    Below is snapshot of charts & Grid panel which i want to convert to PNG


    I have used the same technique, converted html table to SVG corresponding Grid Panel data and combined these chart & table SVGs into single, but html table is not getting display in converted PNG image with charts

    Below is sample SVG table of Grid Panel

    
    <svg>
    <foreignObject width="500" height="150">
    <table style=" border-collapse:collapse" border="1">
      <tr>
        <th></th>
        <th>P-22</th>
        <th>IRP</th>
       <th>Diff</th>
       <th>Percent</th>
      </tr>
      <tr>
        <td>Median NPV</td>
         <td>51K</td>
        <td>4.2K</td>
        <td>46</td>
        <td>90%</td>
         
      </tr>
      <tr>
       <td>Discounting Rate</td>
        <td>2%</td>
        <td>30%</td>
       
      </tr>
     
    </table>
     </foreignObject>
    <svg>
    So can you please tell me what i am doing wrong or is there any possibility to convert Ext.net Gridpanel to PNG ?

    Thanks
    Attached Thumbnails Click image for larger version. 

Name:	Test.png 
Views:	20 
Size:	50.5 KB 
ID:	15471  
    Last edited by Daniil; Oct 17, 2014 at 6:08 PM. Reason: [CLOSED]
  2. #2
    Hi @PriceRightHTML5team,

    So can you please tell me what i am doing wrong
    Well, it is hard to determine. You say "what" you are doing, but you don't say "how" you are doing that.

    For example, I have no idea how you are doing the following:
    I have used the same technique, converted html table to SVG corresponding Grid Panel data
    is there any possibility to convert Ext.net Gridpanel to PNG ?
    Probably, there is. At least, you somehow convert HTML table to SVG, don't you? As for Ext.NET, there is no any special functionality for that. But I guess it is quite common requirement - converting the HTML markup to an image - and, I guess, there is a possibility to find some information on the internet. You can always deal with a GridPanel on the HTML level. Well, as you've already started to do.
  3. #3
    ok Daniil,

    Thanks..
    Last edited by PriceRightHTML5team; Oct 10, 2014 at 9:16 AM.

Similar Threads

  1. Exporting Grid Data for Excel, CSV, XML, HTML, PDF [EXAMPLE Codes]
    By fatihunal in forum Examples and Extras
    Replies: 6
    Last Post: Oct 07, 2016, 1:50 PM
  2. [CLOSED] Exporting 2 Charts into Single png
    By PriceRightHTML5team in forum 2.x Legacy Premium Help
    Replies: 6
    Last Post: Nov 21, 2013, 6:01 AM
  3. [CLOSED] How to add a HTML table to a Panel control dynamically
    By Fahd in forum 2.x Legacy Premium Help
    Replies: 2
    Last Post: Dec 21, 2012, 7:03 PM
  4. Create Html Table Dynamically
    By DanielU in forum 1.x Help
    Replies: 2
    Last Post: Dec 15, 2012, 4:15 PM
  5. [CLOSED] HTML Table Recommendation
    By bfolger in forum 1.x Legacy Premium Help
    Replies: 5
    Last Post: Aug 20, 2009, 6:18 PM

Posting Permissions