Dim tt As Table = Tables("yywrkhtc") Dim lt17 = tt(17)("khtc") & "\" Dim dlg As New OpenFileDialog 'Dim piv As WinForm.PictureViewer = e.Form.Controls("图片") Dim pth As String = lt17 dlg.Filter= "图形文件|*.*" dlg.MultiSelect = True If dlg.ShowDialog = DialogResult.OK Then For Each file As String In dlg.FileNames Tables("表A").AddNew Dim r As Row = Tables("表A").Current r("图片") = r("编号") & ".jpg" FileSys.CopyFile(file,pth & r("ltsu"),True) Next End If
|