<!--#include file="ConnSql.asp"-->
<!--作者:谌忠辉 -->
<!--时间:2004-03-22 -->
<!--修改人:谌忠辉 -->
<!--修改时间:2004-03-22 --><html>

<head>
<title>信封报表打印</title>
</head>

<script language="javascript" src="js/Screen.js"></script>
</head>

<body>

<br>
<%     
   '等到文本缓冲完才显示   
   dim yb(6)
   response.buffer = true
   crmid=request("Crm_Id")
   sql="select Crm_Id,Crm_Xm,Crm_Xxdz,Crm_GzDw,Crm_Yb from Crm_KhXx where Crm_Id="&crmid
   set rs=Conn.DoExecute(sql)
   If (Rs.RecordCount=0) Then
    response.Write "<script language=javascript>alert('没有你所要的数据!');history.go(-1);</script>"
    response.End
   else
   Crm_Yb=rs("Crm_Yb")
   for i=0 to 5
    yb(i)=mid(Crm_Yb,i+1,1)
   next
   '告诉浏览器用word来显示文档内容   
   Response.ContentType = "application/msword"     
   '文档设定    
   response.AddHeader "content-disposition", "inline; filepassword=KhXf.doc"    
   %>
<div align="center">
 <table border="0" width="600" >邮政编码:350002&nbsp;&nbsp; </font></p>
   </td>
  </tr>
 </table>
</div>

</body>

</html><% '关闭记录集    
 rs.close    
 set rs=nothing    
 response.flush    
 response.end
end if  %>

相关文章:

  • 2022-12-23
  • 2022-01-16
  • 2021-09-24
  • 2022-12-23
  • 2021-09-30
  • 2021-04-11
猜你喜欢
  • 2021-07-15
  • 2021-11-17
  • 2021-11-06
  • 2022-01-06
  • 2021-12-30
相关资源
相似解决方案