ASP.NET打印图表

zhangcy_123 2012-06-07 12:32:07

<body>
<form id="form1" runat="server">
<table width="99%" cellspacing="1" cellpadding="0" class="wzdh" align="center">
<tr>
<td width="20" height="24">
<img src="../images/skin/default/you.gif" width="17" height="16" /></td>
<td align="left" style="padding-top: 3px;" class="style2">
您现在的位置:<a href="../SystemInfo.aspx">后台管理</a> >> <a href='Check.aspx'>新闻统计</a> >> 统计图表</td>
<td align="left" style="padding-top: 3px;" class="style1">
<asp:Label ID="start" runat="server" Text="开始时间:" Visible=false></asp:Label>
<asp:TextBox ID="StartTime" onfocus="setday(this)" runat="server"
Height="16px" Width="109px" Visible=false></asp:TextBox>
</td>
<td align="left" style="padding-top: 3px;" class="style1">
<asp:Label ID="End" runat="server" Text="结束时间:" Visible=false></asp:Label>
<asp:TextBox ID="EndTime" onfocus="setday(this)" runat="server"
Height="16px" Width="109px" Visible=false></asp:TextBox>
</td>
<td align="left" style="padding-top: 3px;" class="style1">
<asp:Button ID="Check" runat="server" Text="统计" Visible=false
onclick="Check_Click"/>
</td>
<td width="50" align="right">
<img src="../images/skin/default/help.gif" align="absmiddle" /></td>
</tr>
</table>
<p>
</p>

<center>
<asp:Label ID="ChName" runat="server" Text="Label" Font-Bold="True" Font-Size="X-Large"
Font-Strikeout="False"></asp:Label>

</center>

<div align="center">
<asp:Chart ID="Chart1" runat="server" BackColor="192, 255, 255"
BackGradientStyle="DiagonalLeft" BorderlineColor="255, 128, 0"
BorderlineDashStyle="Solid" BorderlineWidth="2"
Height="503px" Width="920px">
<Titles>
<asp:Title ShadowColor="32, 0, 0, 0" Font="Trebuchet MS, 14.25pt, style=Bold" ShadowOffset="3"
Text="内蒙古高级人民法院" Alignment="TopLeft"
ForeColor="26, 59, 105">
</asp:Title>
</Titles>
<Legends>
<asp:Legend IsTextAutoFit="False" Name="Default" BackColor="Transparent"
Font="Trebuchet MS, 8.25pt, style=Bold">
</asp:Legend>
</Legends>
<BorderSkin BackColor="Transparent" SkinStyle="FrameThin1" />
<Series>
<asp:Series Name="Series1" CustomProperties="DrawingStyle=Wedge"
Font="Microsoft Sans Serif, 10.8pt" IsValueShownAsLabel="True"
ChartType="Column">
</asp:Series>
<asp:Series BorderWidth="4" ChartArea="ChartArea1" ChartType="Line"
Font="Microsoft Sans Serif, 10.8pt" IsValueShownAsLabel="True"
MarkerBorderColor="Black" MarkerBorderWidth="2" MarkerColor="192, 0, 192"
MarkerSize="10" MarkerStyle="Cross" Name="Series2" YAxisType="Secondary" Color="Red">
</asp:Series>
</Series>
<ChartAreas>
<asp:ChartArea Name="ChartArea1" BackColor="255, 255, 128"
BackGradientStyle="Center">
<AxisY TextOrientation="Stacked" Title="发布数量">
</AxisY>
<AxisX Title="部门">
</AxisX>
<AxisY2 Enabled="True" TextOrientation="Stacked" Title="发布频率">
</AxisY2>
</asp:ChartArea>
</ChartAreas>
</asp:Chart>
</div>
</form>
</body>

请教如何把如上页面中的名为ChName的Lable的内容与图表Chart1打印出来,只打印这些内容,其他的不需要,求指教
...全文
176 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
熙风 2012-06-07
  • 打赏
  • 举报
回复
用水晶报表打印

62,046

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术交流专区
javascript云原生 企业社区
社区管理员
  • ASP.NET
  • .Net开发者社区
  • R小R
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

.NET 社区是一个围绕开源 .NET 的开放、热情、创新、包容的技术社区。社区致力于为广大 .NET 爱好者提供一个良好的知识共享、协同互助的 .NET 技术交流环境。我们尊重不同意见,支持健康理性的辩论和互动,反对歧视和攻击。

希望和大家一起共同营造一个活跃、友好的社区氛围。

试试用AI创作助手写篇文章吧