急急..,teechart控件生成图片怎么保存到本机中(代码实现)
IT流渊 2007-11-22 05:12:57 teechart控件生成的图片怎么样才能实现把图片保存到本地机子上啊?
郁闷啊,看了一下午没找到方法。
之前用的整张页面保存下来的方法,在这里不好用。如下图:
onclick="go(document.getElementById('WebChart1').src)"
<iframe id="frame1" style="DISPLAY:none; Z-INDEX:101; LEFT:8px; POSITION:absolute; TOP:104px">
</iframe>
<asp:Image id="Image1" style="Z-INDEX: 102; LEFT: 48px; POSITION: absolute; TOP: 488px" runat="server"></asp:Image>
<script language="JScript">
var n=0;
function go(url){
n==0?new function(){frames("frame1").location=url,n=1}:null;
document.all("frame1").readyState!="complete"?setTimeout(go,10):so();
function so(){frames("frame1").document.execCommand("SaveAs"),n=0};
}
</script>
不知道有没有其他的办法啊????????