Print1.aspx 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. <%@ Page Language="C#" Debug=true EnableEventValidation="false" AutoEventWireup="true" CodeFile="Print1.aspx.cs" Inherits="Print" %>
  2. <%@ Register assembly="Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" namespace="Microsoft.Reporting.WebForms" tagprefix="rsweb" %>
  3. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  4. <html xmlns="http://www.w3.org/1999/xhtml">
  5. <head>
  6. <title></title>
  7. <script language="javascript">
  8. function preview() {
  9. bdhtml = window.document.body.innerHTML;
  10. sprnstr = "<!--startprint-->";
  11. eprnstr = "<!--endprint-->";
  12. prnhtml = bdhtml.substr(bdhtml.indexOf(sprnstr) + 17);
  13. prnhtml = prnhtml.substring(0, prnhtml.indexOf(eprnstr));
  14. window.document.body.innerHTML = prnhtml;
  15. window.print();
  16. //prnform.htext.value=prnhtml;
  17. //prnform.submit();
  18. //alert(prnhtml);
  19. }
  20. </script>
  21. <style type="text/css">
  22. #WebBrowser
  23. {
  24. height: 1px;
  25. width: 47px;
  26. }
  27. .table1{
  28. border:#006 inset 1px;
  29. }
  30. .style1
  31. {
  32. width: 185px;
  33. }
  34. .style2
  35. {
  36. width: 85%;
  37. }
  38. </style>
  39. <body>
  40. <form id="form1" runat="server">
  41. <div align="center">
  42. <OBJECT id=WebBrowser classid=CLSID:8856F961-340A-11D0-A96B-00C04FD705A2>Der5435</OBJECT>
  43. <input type="button" name="print" value="预览并打印" onclick="preview()">
  44. <input onclick="document.all.WebBrowser.ExecWB(7,1)" type="button" value="打印预览" />
  45. <asp:Button ID="Button3" runat="server" onclick="Button3_Click" Text="Button" />
  46. <!--startprint-->
  47. <div style="margin: 0 auto;" id="mainContent">
  48. <p class=MsoNormal align=center style='text-align:center'><b><span style='font-size:14.0pt;font-family:黑体'>教学督导记录</span></b></p>
  49. <table class="table1" border=1 cellspacing=0 cellpadding=0 width="100%">
  50. <tr>
  51. <td nowrap="nowrap" class="style1">姓名(督导)</td>
  52. <td> DDXM</td >
  53. <td width="11%" nowrap="nowrap">督导时间</p></td>
  54. <td width="21%" colspan=2>ZJ</td>
  55. <td width="11%" nowrap="nowrap"> 督导地点</td>
  56. <td width="22%" colspan=2>DDDD</td>
  57. </tr>
  58. <tr>
  59. <td nowrap="nowrap" class="style1">教师姓名</td>
  60. <td class="style2">JSXM</td>
  61. <td width="11%" nowrap="nowrap">授课班级</td>
  62. <td width="21%" colspan=2>BJ</td>
  63. <td width="11%" nowrap="nowrap">课程名称</td>
  64. <td width="22%" colspan=2>KCMC</td>
  65. </tr>
  66. <tr>
  67. <td nowrap="nowrap" class="style1">所在部门</td>
  68. <td class="style2">SZBM</td>
  69. <td width="11%" nowrap="nowrap">星期</td>
  70. <td width="10%">XQ</td>
  71. <td width="10%" nowrap="nowrap">节次</td>
  72. <td width="11%">JC</p></td>
  73. <td width="11%" nowrap="nowrap">评分</td>
  74. <td width="11%" nowrap="nowrap">PF</td>
  75. </tr>
  76. <tr>
  77. <td width="100%" colspan=8>督导情况记录</p>
  78. </td>
  79. </tr>
  80. <tr>
  81. <td style="border-style: none none inset inset">督导签名</td>
  82. <td class="style2"><span style="text-align=right"> 年 月 日 </span></td>
  83. </tr>
  84. <tr>
  85. <td width="100%" colspan=8><p class=MsoNormal><span style='font-size:10.5pt'>督导建议和意见:</span></p>
  86. <p class=MsoNormal>&nbsp;</p>
  87. <p class=MsoNormal>&nbsp;</p></td>
  88. </tr>
  89. <tr>
  90. <td style="border-style: none none inset inset">督导签名</td>
  91. <td width="85%" style='border-style: none inset inset none; text-align:right'
  92. colspan=7><p class=MsoNormal align=right
  93. ><span style='font-size:10.5pt'>年<span lang=EN-US>&nbsp; </span>月<span lang=EN-US>&nbsp;&nbsp; </span>日 </span></p></td>
  94. </tr>
  95. <tr style="border-bottom-style: dotted">
  96. <td width="100%" colspan=8><p class=MsoNormal
  97. style='border-bottom-style: dashed; border-bottom-width: 1px;'><span class=GramE><span style='font-size:10.5pt'>裁</span></span><span
  98. lang=EN-US style='font-size:10.5pt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span style='font-size:10.5pt'>剪<span lang=EN-US>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>线<span lang=EN-US>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></p></td>
  99. </tr>
  100. <tr>
  101. <td width="100%" colspan=8>&nbsp;</td>
  102. </tr>
  103. <tr>
  104. <td width="100%" colspan=8><p class=MsoNormal style="text-align: left"><span style='font-size:10.5pt'>督导建议和意见<span lang=EN-US>-</span>(此栏反馈给督导对象):</span></p>
  105. <br /><br /><br /><br /></td>
  106. </tr>
  107. <tr>
  108. <td style="border-style: none none inset inset">督导签名</td>
  109. <td width="85%" style='border-style: none inset inset none; text-align:right'
  110. colspan=7><p class=MsoNormal align=right
  111. ><span style='font-size:10.5pt'>年<span lang=EN-US>&nbsp; </span>月<span lang=EN-US>&nbsp;&nbsp; </span>日 </span></p></td>
  112. </tr>
  113. </table>
  114. </div>
  115. <!--endprint-->
  116. </div>
  117. </form>
  118. </body>
  119. </html>