word文档中有一table,有如下表格
----------------
|序号 | 名称 |
----------------
| 1 | aa |
----------------
| 2 | bb |
------------------
我要获取名称的值{也就是aa,bb},我用宏来摸索ASP程序,但以下ASP程序报"Set Mysel =
ListWord.Application.Selection"缺少对象?后续程序也不知道正确与否?
<%
Set ListWord = Server.CreateObject("Word.Application")
ListWord.Documents.Add Server.MapPath("weihu/importfile")&"wwww.doc", , , True
ListWord.Visible = True
Set Mysel = ListWord.Application.Selection
Mysel.Find.ClearFormatting
Mysel.Find.Replacement.ClearFormatting
Mysel.Find.Text = "序号"
With ThisDocument.Tables(1)
For I = 1 To .Columns.Count
If InStr(1, .Cell(1, I), "序号") > 0 Then
r = I
Exit For
End If
Next
MsgBox r
End With
ListWord.Quit
Set ListWord = Nothing
%>
方法二
<%
response.ContentType= "application/x-msword "Const adTypeBinary = 1
Dim strFilePathstrFilePath = "c:mainmenu.doc "
Set objStream = Server.CreateObject( "ADODB.Stream ")
objStream.Open
objStream.Type = adTypeBinary
objStream.LoadFromFile strFilePathResponse.BinaryWrite objStream.Read
objStream.Close
Set objStream = Nothing
%>
敢达决战官方正版 安卓版v6.7.9
下载敢达决战 安卓版v6.7.9
下载像素火影骨架佐助 (Perseverance Fire Shadow)手机版v1.16
下载要塞英雄 安卓版v33.20.0-39082670-Android
下载梦想城镇vivo最新版本 安卓版v12.0.1
梦想城镇vivo版是这款卡通风模拟经营类手游的渠道服版本,玩
怦然心动的瞬间 安卓版v1.0
怦然心动的瞬间是一款真人向的恋爱互动游戏,在游戏中玩家将扮演
曼尼汉堡店游戏 安卓版v1.0.3
曼尼汉堡店是一款非常好玩的精品恐怖类型冒险游戏,在这款游戏中
现代总统模拟器去广告版 安卓版v1.0.46
现代总统模拟器是一款休闲养成类游戏,可能对于不少的玩家来说都
现代总统模拟器付费完整版 安卓版v1.0.46
现代总统模拟器高级版在商店是需要付费的,相对于普通版本,高级