How go I get the HTML for the chart image AREA mapI am generating my chart dynamically using a separate file (httpHandler). Is there a way to get the HTML &lt;area/&gt; tag content that the image create when it is rendered im an ASPX page?<br/><br/> <p><span style="font-size:x-small;color:#2b91af"><span style="font-size:x-small;color:#2b91af"><span style="color:#000000">chart</span>.<span style="color:#000000">RenderType</span> = RenderType</span></span><span style="font-size:x-small">.ImageMap;<br/></span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">string</span></span><span style="font-size:x-small"> result = chart.GetHtmlImageMap(</span><span style="font-size:x-small;color:#a31515"><span style="font-size:x-small;color:#a31515">&quot;trendmap&quot;</span></span><span style="font-size:x-small">);<br/><br/>The solution above returns a blank &lt;map/&gt; tag shown below:<br/><br/>&lt;map name=&quot;trendmap&quot;&gt;<br/>    &lt;area shape=&quot;rct&quot; coords=&quot;0,0,0,0&quot; alt=&quot;&quot;/&gt;<br/>&lt;/map&gt;<br/><br/>Is there any property I am missing?<br/></span></p>© 2009 Microsoft Corporation. All rights reserved.Fri, 11 Sep 2009 17:55:45 Z3d1007d0-5c8f-4431-841a-3c735acaf04fhttp://social.msdn.microsoft.com/Forums/en-US/MSWinWebChart/thread/3d1007d0-5c8f-4431-841a-3c735acaf04f#3d1007d0-5c8f-4431-841a-3c735acaf04fhttp://social.msdn.microsoft.com/Forums/en-US/MSWinWebChart/thread/3d1007d0-5c8f-4431-841a-3c735acaf04f#3d1007d0-5c8f-4431-841a-3c735acaf04fbennybhttp://social.msdn.microsoft.com/Profile/en-US/?user=bennybHow go I get the HTML for the chart image AREA mapI am generating my chart dynamically using a separate file (httpHandler). Is there a way to get the HTML &lt;area/&gt; tag content that the image create when it is rendered im an ASPX page?<br/><br/> <p><span style="font-size:x-small;color:#2b91af"><span style="font-size:x-small;color:#2b91af"><span style="color:#000000">chart</span>.<span style="color:#000000">RenderType</span> = RenderType</span></span><span style="font-size:x-small">.ImageMap;<br/></span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">string</span></span><span style="font-size:x-small"> result = chart.GetHtmlImageMap(</span><span style="font-size:x-small;color:#a31515"><span style="font-size:x-small;color:#a31515">&quot;trendmap&quot;</span></span><span style="font-size:x-small">);<br/><br/>The solution above returns a blank &lt;map/&gt; tag shown below:<br/><br/>&lt;map name=&quot;trendmap&quot;&gt;<br/>    &lt;area shape=&quot;rct&quot; coords=&quot;0,0,0,0&quot; alt=&quot;&quot;/&gt;<br/>&lt;/map&gt;<br/><br/>Is there any property I am missing?<br/></span></p>Wed, 01 Jul 2009 18:05:00 Z2009-07-02T13:51:37Zhttp://social.msdn.microsoft.com/Forums/en-US/MSWinWebChart/thread/3d1007d0-5c8f-4431-841a-3c735acaf04f#1c3970f2-bd83-44c2-9694-5a3e51f516a1http://social.msdn.microsoft.com/Forums/en-US/MSWinWebChart/thread/3d1007d0-5c8f-4431-841a-3c735acaf04f#1c3970f2-bd83-44c2-9694-5a3e51f516a1DelianThttp://social.msdn.microsoft.com/Profile/en-US/?user=DelianTHow go I get the HTML for the chart image AREA mapTo get Chart.<span style="font-size:xx-small">GetHtmlImageMap result you have to render the chart first.<br/>Call SaveImage(System.IO.Stream.Null) before <span style="font-size:x-small">Chart.</span><span style="font-size:xx-small">GetHtmlImageMap.<br/><br/>Delian</span></span>Fri, 03 Jul 2009 04:09:09 Z2009-07-03T04:09:09Zhttp://social.msdn.microsoft.com/Forums/en-US/MSWinWebChart/thread/3d1007d0-5c8f-4431-841a-3c735acaf04f#8f33c9ee-2ed5-4839-b6ca-d9e1fc9d8356http://social.msdn.microsoft.com/Forums/en-US/MSWinWebChart/thread/3d1007d0-5c8f-4431-841a-3c735acaf04f#8f33c9ee-2ed5-4839-b6ca-d9e1fc9d8356Merita23http://social.msdn.microsoft.com/Profile/en-US/?user=Merita23How go I get the HTML for the chart image AREA mapHi <br/><br/>I implemet this, but I cant' see the image<br/><br/><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff"><font size=2 color="#0000ff"><font size=2 color="#0000ff"> <p>Protected</p> </font></font></span><font size=2 color="#0000ff"> <p> </p> </font></span> <p><span style="font-size:x-small"> </span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">Sub</span></span><span style="font-size:x-small"> Page_Load(</span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">ByVal</span></span><span style="font-size:x-small"> sender </span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">As</span></span><span style="font-size:x-small"> </span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">Object</span></span><span style="font-size:x-small">, </span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">ByVal</span></span><span style="font-size:x-small"> e </span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">As</span></span><span style="font-size:x-small"> System.EventArgs) </span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">Handles</span></span><span style="font-size:x-small"> </span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">Me</span></span><span style="font-size:x-small">.Load<br/></span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">Dim</span></span><span style="font-size:x-small"> chart1 </span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">As</span></span><span style="font-size:x-small"> Chart = GetChart()<br/>chart1.RenderType = RenderType.ImageMap<br/>chart1.SaveImage(System.IO.Stream.Null)<br/></span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">Dim</span></span><span style="font-size:x-small"> map </span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">As</span></span><span style="font-size:x-small"> </span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">String</span></span><span style="font-size:x-small"> = chart1.GetHtmlImageMap(</span><span style="font-size:x-small;color:#a31515"><span style="font-size:x-small;color:#a31515">&quot;trendmap&quot;</span></span><span style="font-size:x-small">)<br/></span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">End</span></span><span style="font-size:x-small"> </span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">Sub</span></span></p> <span style="font-size:x-small"><font size=2> <p> </p> </font></span> <p><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">Function</span></span><span style="font-size:x-small"> GetChart() </span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">As</span></span><span style="font-size:x-small"> Chart<br/></span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">Dim</span></span><span style="font-size:x-small"> Dates1 </span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">As</span></span><span style="font-size:x-small"> </span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">Date</span></span><span style="font-size:x-small"> = Today<br/></span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">Dim</span></span><span style="font-size:x-small"> mySelectQuery </span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">As</span></span><span style="font-size:x-small"> </span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">String</span></span><span style="font-size:x-small"> = </span><span style="font-size:x-small;color:#a31515"><span style="font-size:x-small;color:#a31515">&quot;SELECT Dates,Line,Loan FROM XCHART_200907 where Fecha &gt;='&quot;</span></span><span style="font-size:x-small"> &amp; Dates1 &amp; </span><span style="font-size:x-small;color:#a31515"><span style="font-size:x-small;color:#a31515">&quot;' order by Fecha&quot;<br/></span></span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">Dim</span></span><span style="font-size:x-small"> myConnection </span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">As</span></span><span style="font-size:x-small"> </span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">New</span></span><span style="font-size:x-small"> SqlConnection(myConnectionString)<br/></span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">Dim</span></span><span style="font-size:x-small"> myReader </span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">As</span></span><span style="font-size:x-small"> SqlDataReader<br/></span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">Dim</span></span><span style="font-size:x-small"> myCommand </span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">As</span></span><span style="font-size:x-small"> </span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">New</span></span><span style="font-size:x-small"> SqlCommand(mySelectQuery, myConnection)<font size=2> <p> </p> </font></span></p> <p><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">Dim</span></span><span style="font-size:x-small"> adapter </span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">As</span></span><span style="font-size:x-small"> </span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">New</span></span><span style="font-size:x-small"> SqlDataAdapter(mySelectQuery, myConnection)<br/></span><span style="font-size:x-small">myConnection.Open()<br/></span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">Dim</span></span><span style="font-size:x-small"> ax() </span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">As</span></span><span style="font-size:x-small"> DateTime, ay1, ay2, unidades</span></p> <span style="font-size:x-small"><font size=2> <p> </p> </font></span> <p><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">ReDim</span></span><span style="font-size:x-small"> ax(NumPuntos - 1)<br/></span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">ReDim</span></span><span style="font-size:x-small"> ay1(NumPuntos - 1)<br/></span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">ReDim</span></span><span style="font-size:x-small"> ay2(NumPuntos - 1)<br/></span><span style="font-size:x-small">myReader = myCommand.ExecuteReader()<font size=2> <p> </p> </font></span></p> <p><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">While</span></span><span style="font-size:x-small"> myReader.Readax(i) = myReader.GetValue(0)<br/>ay1(i) = myReader.GetValue(1)<br/>ay2(i) = myReader.GetValue(2)<br/>i = i + 1<br/></span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">End</span></span><span style="font-size:x-small"> </span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">While<br/></span></span><span style="font-size:x-small">myReader.Close()<font size=2> <p> </p> </font></span></p> <p><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">Dim</span></span><span style="font-size:x-small"> chart = </span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">New</span></span><span style="font-size:x-small"> Chart()<font size=2> <p>chart.IsMapEnabled =</p> </font></span></p> <p><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">True<br/></span></span><span style="font-size:x-small">chart.Width = 600<br/>chart.Height = 150<br/></span><span style="font-size:x-small">chart.Series.Add(</span><span style="font-size:x-small;color:#a31515"><span style="font-size:x-small;color:#a31515">&quot;one&quot;</span></span><span style="font-size:x-small">)<br/>chart.Series.Add(</span><span style="font-size:x-small;color:#a31515"><span style="font-size:x-small;color:#a31515">&quot;two&quot;</span></span><span style="font-size:x-small">)<font size=2> <p>chart.Series(</p> </font></span></p> <p><span style="font-size:x-small;color:#a31515"><span style="font-size:x-small;color:#a31515">&quot;one&quot;</span></span><span style="font-size:x-small">).Points.DataBindXY(ax, ay1)<br/>chart.Series(</span><span style="font-size:x-small;color:#a31515"><span style="font-size:x-small;color:#a31515">&quot;two&quot;</span></span><span style="font-size:x-small">).Points.DataBindXY(ax, ay2)<br/><br/></span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">Return</span></span><span style="font-size:x-small"> chart<font size=2> <p> </p> </font></span></p> <p><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">End</span></span><span style="font-size:x-small"> </span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">Function<br/></span></span></p>Fri, 11 Sep 2009 17:55:44 Z2009-09-11T17:55:44Z