请教: 如何用代码直接打印Word报表? Post By:2014/9/18 11:10:00 [显示全部帖子]
例如我有如下代码可以显示Word报表"合同文本.doc"
Dim TemplateName As String = ProjectPath & "报表模板\合同文本L_模板.doc" Dim ReportName As String = ProjectPath & "报表\合同文本.doc" Dim wrt As New WordReport(Tables("合同概况"), TemplateName, ReportName) wrt.BuildOne(Tables("合同概况").Current) wrt.Show()