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
%>
一亿小目标手游
如果让你的人生从来,你可以像王健林一样霸气的表示一亿小目标吗
一亿小目标手机版2019
一亿小目标手机版2019趣味休闲模拟游戏,玩家在游戏中将会通
巴啦啦梦幻餐厅
巴啦啦梦幻餐厅是一款充满魔幻色彩的二次元模拟经营手游,游戏界
恋爱进行时九游版
恋爱进行时九游版是一款以模拟恋爱玩法为核心的角色扮演手游,精
皇室对决fr(Null’s Royale)
皇室对决fr,即皇室战争的私服变态版本,在该版本中玩家能够拥