当前位置:编程学习 > C#/ASP.NET >>

.net的图表控件MsChart保存图片问题

调用MsChart保存图片的方法SaveImage时保存的图片是空图片是什么情况?
前台代码:
<asp:Chart ID="ChartZhiBiao" runat="server" ImageStorageMode="UseHttpHandler">
                <Series>
                    <asp:Series Name="Series1">
                    </asp:Series>
                </Series>
                <ChartAreas>
                    <asp:ChartArea Name="ChartArea1" BorderColor="64, 64, 64, 64" BorderDashStyle="Solid"
                        BackSecondaryColor="White" BackColor="OldLace" ShadowColor="Transparent" BackGradientStyle="TopBottom">
                        <AxisY LineColor="64, 64, 64, 64">
                            <LabelStyle Font="Trebuchet MS, 8.25pt, style=Bold" />
                            <MajorGrid LineColor="64, 64, 64, 64" />
                        </AxisY>
                        <AxisX LineColor="64, 64, 64, 64">
                            <LabelStyle Font="Trebuchet MS, 8.25pt, style=Bold" />
                            <MajorGrid LineColor="64, 64, 64, 64" />
                        </AxisX>
                    </asp:ChartArea>
                </ChartAreas>
            </asp:Chart>

后台保存代码:
ChartZhiBiao.ImageType = ChartImageType.Jpeg;
                ChartZhiBiao.SaveImage("D:\\images\\test.jpeg", ChartImageFormat.Jpeg); 图片 控件 .net --------------------编程问答-------------------- 有没有用过这个控件的?为什么一直是空图片? --------------------编程问答-------------------- http://www.cnblogs.com/Renn/archive/2010/07/09/2048353.html --------------------编程问答--------------------
解决了,服务器按钮回发了导致图表一直没有数据。汗。
补充:.NET技术 ,  图表区
CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,