读书人

vb.net中怎么判断一个word/excel/powe

发布时间: 2012-12-25 16:18:29 作者: rapoo

vb.net中怎样判断一个word/excel/powerpoint文档是否关闭
vb.net中怎样判断一个word/excel/powerpoint文档是否关闭
[最优解释]


Private Function isopen(ByVal path_string As String) As Boolean
Try
Dim fs As New IO.FileStream(path_string, IO.FileMode.OpenOrCreate, IO.FileAccess.Read)
fs.Dispose()
Return False
Catch ex As Exception
Return True
End Try
End Function

'下面是调用方法:
If isopen("e:\1.doc") = True Then
MsgBox("打开")
Else
MsgBox("未打开")
End If

[其他解释]
求详细代码 在线等
[其他解释]
没人知道么?
[其他解释]
参考。。。。。。。
[其他解释]
谢谢 问题已解决 结贴了

读书人网 >VB Dotnet

热点推荐