操作word文件的问题,请帮助
Private Sub btnOpenDOC_Click(sender As System.Object, e As System.EventArgs) Handles btnOpenDOC.Click
If String.IsNullOrEmpty(flbDOC.SelectedItem) = False Then
Dim wordAPP As New Microsoft.Office.Interop.Word.Application()
wordAPP.NormalTemplate.Saved = True
Dim wordDOC As New Microsoft.Office.Interop.Word.Document()
wordAPP = CreateObject("Word.Application")
wordDOC = wordAPP.Documents.Open(strPath & strNodePath & "" & flbDOC.SelectedItem)
wordDOC.Activate()
wordAPP.Visible = True
End If
End Sub
关闭word的时候提示"此文件正由另一应用程序或用户使用"和"所做更改会影响共用模板Normal.dot.是否保存所做修改"
请问如果能把这两个提示去掉.
我只是调用WORD打开指定的DOC文件,没有别的操作.
[解决办法]
Private Sub btnOpenDOC_Click(sender As System.Object, e As System.EventArgs) Handles btnOpenDOC.Click
If String.IsNullOrEmpty(flbDOC.SelectedItem) = False Then
System.Diagnostics.Process.Start(strPath & strNodePath & "" & flbDOC.SelectedItem)
End If
End Sub