添加收藏
 系统管理
 联系方式
  汉南在线网页设计Asp动态程序

在ASP中操作word
作  者:汉南居士
关键字:ASP技术应用



<HTML>
<HEAD>
<meta HTTP-EQUIV="Content-Type" content="text/html; charset=gb_2312-80">
<link rel="stylesheet" type="text/css" href="edit.css">
<title>保存为Word文档</title>
</HEAD>
<script language="javascript">
   window.returnValue=0
</script>
<BODY>
<font color="#000080"><strong><div id="strHint" align="center">数据处理中,请等待...<br>
Data processing, please wait...</div></strong></font><font color="#0080C0">


   <script language="vbscript">

    On Error Resume Next

    Dim wApp
   
    Set wApp = CreateObject("Word.Application")
    If Err.number > 0 Then
        Alert "没法保存为Word文件,请正确安装Word97"
    else
    wApp.visible = True
    wApp.Documents.add
   
                     wApp.Selection.TypeParagraph
                     wApp.Selection.Font.Bold = True
                     wApp.Selection.TypeText "九八Joy ASP维护工作意见"
                    
                     wApp.Selection.ParagraphFormat.Alignment = 1
                      rem 居 中
                                         
                     wApp.Selection.TypeParagraph  
                     wApp.Selection.Font.Bold = false                 
                    
                        wApp.Selection.TypeText "-- 飞鸟"
                       
                     wApp.Selection.TypeParagraph  
                    
                     wApp.Selection.ParagraphFormat.LeftIndent = wApp.CentimetersToPoints(0)
                     wApp.Selection.ParagraphFormat.FirstLineIndent = wApp.CentimetersToPoints(0.72/2*2)
                     
                     wApp.Selection.TypeParagraph
                     wApp.Selection.Font.Bold = false
                     wApp.Selection.ParagraphFormat.Alignment = 0
                    
                      
                        wApp.Selection.TypeText "认真落实CHINA ASP为网友解难题,办实事精神,强化运行管理,优化网络;坚持以网管为龙头,以提高接通率为重点,做好运维工作,保证全网运行安全、高效、畅通。认真落实局内六十项奋斗目标,围绕效益工程、形象工程、福利工程,开动脑筋、解放思想,以改革为动力,推动维护、服务、管理工作更上台阶。"                        
                        wApp.Selection.TypeParagraph  
                    
                      rem 居 右
                     wApp.Selection.TypeParagraph  
                     wApp.Selection.Font.Bold = false                 
                     wApp.Selection.TypeText "一九九九年五月"
                     wApp.Selection.TypeParagraph  
                    
  end if
</script>
<center><br><strong>数据处理完毕!</strong></center>

<p>
</p><div align='center'><center><input type=button class=buttonface name='cmdOK' onclick="window.returnValue=0;window.close();" value=" 确 定 " ></center></div>

</BODY>
</HTML>



来源:互联网
阅读:340
日期:2005-5-30

【 双击滚屏 】 【 推荐朋友 】 【 收藏 】 【 打印 】 【 关闭 】 【 字体: 】 
上一篇:IP地址分段计算
下一篇:万能数据库连接程序

  >> 相关文章
 
  ·几个经典的ASP应用(1)
  ·ASP Function在程序中的使用
  ·用ASP制作多个域名绑定一个空间的页面
  ·asp作品保护方案
  ·ASP分页函数

5.12汶川大地震遇难同胞默哀 | 汉南在线总站 | 免费电影 | BT电影下载 | 东莞信息网 | 流行购商城

授权使用:汉南在线 http://hnzx.hzwz.net/
经营许可证:陕ICP备05000109号 Powered by:汉南在线
Copyright (c) 2002-2007 汉南在线. All Rights Reserved .