16,554
社区成员
发帖
与我相关
我的任务
分享
Imports Microsoft.Office.Interop
private sub opendoc()
dim opendoc as new openfiledialog
opendoc.Filter = "(*.Doc)|*.Doc"
opendoc.DefaultExt = "*.Doc"
if nfo.ShowDialog()= Windows.Forms.DialogResult.OK then
Dim wrdApp As New Microsoft.Office.Interop.Word.Application
Dim wrdDoc As Microsoft.Office.Interop.Word.Document
wrdapp.Visible=true
wrdDoc = wrdApp.Documents.Open(opendoc.filename)
end if
end sub
Dim strSource As string="原文件路径"
Dim strDest As string="C:\" & TextBox1.Text
system.IO.File.Copy(strSource ,strDest )