以下是引用有点甜在2014-4-18 16:43:00的发言:
查了下资料,vba打印word报表代码,如下
Dim app As New MSWord.Application
try
Dim fileName = "e:\test.doc"
app.Documents.Open(fileName)
'app.Documents(fileName).PrintPreview
'app.Visible = True
app.Documents(fileName).PrintOut '打印
catch ex As exception
msgbox(ex.message)
finally
app.Quit
End try
[此贴子已经被作者于2014-4-18 16:47:30编辑过]
藏宝阁中备用。