以文本方式查看主题 - Foxtable(狐表) (http://foxtable.com/bbs/index.asp) -- 专家坐堂 (http://foxtable.com/bbs/list.asp?boardid=2) ---- word报表 (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=146051) |
-- 作者:rgbjwjb -- 发布时间:2020/2/15 9:14:00 -- word报表 在设计word报表后预览报表有数据,但在通过下面代码执行“打印”后没有数据,请问报表哪里设置有问题还是代码有问题? Dim tm As String = ProjectPath & "Attachments\\委托投资协议书.doc" Dim fl As String = ProjectPath & "Reports\\委托投资协议书.doc" Dim wrt As New WordReport(Tables("收款明细表"),tm,fl) wrt.Build() Dim Proc As New Process Proc.File = fl Proc.Verb = "Print" Proc.Start() 谢谢指教!!
|
-- 作者:有点蓝 -- 发布时间:2020/2/15 9:49:00 -- 表格有没有加载数据?这样测试弹出的文档有没有数据? Dim tm As String = ProjectPath & "Attachments\\委托投资协议书.doc" Dim fl As String = ProjectPath & "Reports\\委托投资协议书.doc" Dim wrt As New WordReport(Tables("收款明细表"),tm,fl) wrt.Build() wrt.Show
|