首页 新闻 会员 周边 捐助

关于window.prient打印的问题

0
[已关闭问题] 关闭于 2008-02-02 05:21
HTML里的body里只有一个label <BR>&lt;body &nbsp; MS_POSITIONING="GridLayout"&gt; <BR>&lt;form &nbsp; id="Form1" &nbsp; method="post" &nbsp; runat="server" &nbsp; style="LEFT: &nbsp; 0px; &nbsp; POSITION: &nbsp; absolute; &nbsp; TOP: &nbsp; 0px"&gt; <BR>&lt;asp:Label &nbsp; id="lblTable" &nbsp; style="LEFT: &nbsp; 0px; &nbsp; POSITION: &nbsp; absolute; &nbsp; TOP: &nbsp; 0px" &nbsp; runat="server"&gt; &lt;/asp:Label&gt; &lt;/TD&gt; <BR>&lt;/form&gt; <BR>&lt;/body&gt; <BR><BR>代码里是把DataTable里的数据写到表格里.用表格来做显示.按纽在另外一个页面打印这个页面的表格,也就是label里的内容. <BR>但打出来是个光的表格,我想在表格上加一个标题.但又不让它在页面上显示出来.怎么弄?? &nbsp; &nbsp; 大家帮我下。..谢谢。 <BR>&nbsp; Try <BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sbTable.Append(" &lt;table &nbsp; width=""100%"" &nbsp; id=""dgPlanList"" &nbsp; bgcolor=""#CECFCE"" &nbsp; border=""0"" &nbsp; cellspacing=""1"" &nbsp; cellpadding=""0"" &nbsp; align=""center""&gt; ") <BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sbTable.Append(" &lt;tr &nbsp; height=""18px"" &nbsp; bgcolor=""#efefef""&gt; ") <BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sbTable.Append(" &lt;td &nbsp; width=""10%"" &nbsp; align=""center"" &nbsp; nowrap&gt; &lt;b&gt; 部门 &lt;/b&gt; &lt;/td&gt; ") <BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sbTable.Append(" &lt;td &nbsp; width=""10%"" &nbsp; align=""center"" &nbsp; nowrap&gt; &lt;b&gt; 序号 &lt;/b&gt; &lt;/td&gt; ") <BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sbTable.Append(" &lt;td &nbsp; width=""10%"" &nbsp; align=""center"" &nbsp; nowrap&gt; &lt;b&gt; 姓名 &lt;/b&gt; &lt;/td&gt; ") <BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sbTable.Append(" &lt;td &nbsp; width=""10%"" &nbsp; align=""center"" &nbsp; nowrap&gt; &lt;b&gt; 工号 &lt;/b&gt; &lt;/td&gt; ") <BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sbTable.Append(" &lt;td &nbsp; width=""10%"" &nbsp; align=""center"" &nbsp; nowrap&gt; &lt;b&gt; 性别 &lt;/b&gt; &lt;/td&gt; ") <BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sbTable.Append(" &lt;td &nbsp; width=""10%"" &nbsp; align=""center"" &nbsp; nowrap&gt; &lt;b&gt; 职位名称 &lt;/b&gt; &lt;/td&gt; ") <BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
cloudgamer的主页 cloudgamer | 菜鸟二级 | 园豆:280
提问于:2008-01-23 20:08
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册