以文本方式查看主题

-  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=116803)

--  作者:13775189031
--  发布时间:2018/3/31 14:16:00
--  多值字段在WORD报表中的显示
求教!下拉菜单中多值字段,例如  □1
                                            □2
                                            ?3
                                            □4
                                            ?5

选中3和5
如何在word报表中也这样按行显示?

--  作者:13775189031
--  发布时间:2018/3/31 14:34:00
--  
未选中的也显示出来?


--  作者:有点蓝
--  发布时间:2018/3/31 15:29:00
--  
需要使用代码处理,例如:http://www.foxtable.com/help/scr/2890.htm

代码编辑器注意加上这3个单引号
\'\'\'
Dim tm As String  = ProjectPath & "Attachments\\zbv.doc" \'指定模板文件
Dim fl As String = ProjectPath & "Reports\\zbv.doc" \'指定目标文件
Dim wrt As New WordReport(Tables("订单"),tm,fl) \'定义一个WordReport
wrt.ReplaceOne("<多值>","□1" & vbcr & "? 2" & vbcr & "□3" & vbcr & "? 4")
wrt.BuildOne(Tables("订单").Current)
wrt.Show() \'显示报表
[此贴子已经被作者于2018/3/31 15:35:23编辑过]