以文本方式查看主题 - Foxtable(狐表) (http://foxtable.com/bbs/index.asp) -- 专家坐堂 (http://foxtable.com/bbs/list.asp?boardid=2) ---- 专业报表 (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=57435) |
-- 作者:freeants -- 发布时间:2014/9/24 20:21:00 -- 专业报表 Dim cb9 As WinForm.ComboBox = e.Form.Controls("ComboBox9") Dim doc As New PrintDoc \'定义一个报表 Dim ra As New prt.RenderArea Dim rt As prt.RenderText ra.Width = 35.4 \'宽度31毫米 含左右方向的间隔 ra.Height = 23.8 \'高度23.58毫米 含上下面方向的间隔 如果我要定义 rt.height = ra.height / cb9.selectedvalue 用 rt.Height= "Parent.Height / cb9.SelectedValue" 无法反应,请问如何解决呢 |
-- 作者:有点甜 -- 发布时间:2014/9/24 20:22:00 -- 你现在是什么问题?报错还是怎样? |
-- 作者:freeants -- 发布时间:2014/9/24 20:50:00 -- 当cb9.SelectedValue =1 的时候, 用代码 rt.Height= "Parent.Height / cb9.SelectedValue" , 不报错, 直接就不显示 |
-- 作者:有点甜 -- 发布时间:2014/9/24 20:51:00 -- rt.Height= "Parent.Height / " & cb9.SelectedValue |
-- 作者:菲舍尔 -- 发布时间:2014/9/25 2:25:00 -- 以下是引用有点甜在2014-9-24 20:51:00的发言:
rt.Height= "Parent.Height / " & cb9.SelectedValue 类型不对吧 |