无法合并文档

新建一个word文档,按照如下顺序:点击插入-选择附件-选择文件中的文字后-选中所有文档-点击打开,弹出所有文档,无法合并所有选中的文档在同一个文档内。

广东省
浏览 31
收藏
1
分享
1 +1
4
+1
全部评论 4
 
wils

创作者俱乐部成员

选文件对话框现在有bug,不妨用批处理凑活一下 具体意思问ai,十分详细 回贴不能超过500字,所以分两部分,需要保存成ansi的bat批处理来用 #ANSI编码&cls&powershell -Version 5.1 -NoLogo -NoProfile "gc '%~0'|out-string|iex"&pause&exit Add-Type -AssemblyName System.Windows.Forms $FileBrowser = New-Object System.Windows.Forms.OpenFileDialog -Property @{ InitialDirectory = [Environment]::GetFolderPath('Desktop') Filter = "All Files (*.*)|*.*" Multiselect = $true } [void]$FileBrowser.ShowDialog()
· 广东省
回复
wils

创作者俱乐部成员

$wps = new-Object -ComObject kwps.application $wps.Visible = $true $d = $wps.Documents.Add() $FileBrowser.FileNames | %{ $t = $wps.Documents.Open($_) $t.Content.Copy() $dd = $d.Content $dd.Collapse(0) $dd.Paste() $d.Content.InsertAfter("`n") $t.Close() }
· 广东省
回复
 
Mr Chen

创作者俱乐部成员

这个问题目前已经反馈过了
· 甘肃省
回复