如何得到数据行的高度?

oyj 2003-05-02 10:37:10
我在汇总栏插入了一个子数据窗口,但是汇总栏不会自动调整高度以适应完整显示整个子数据窗口,只有算出子数据窗口内每列所占的高度,然后乘以行数,得出总高度,然后设定汇总栏的高度。问题是如何得出每个数据行的高度?(包括行与行间的空白)

...全文
30 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
zhoufenghubei 2003-05-04
  • 打赏
  • 举报
回复
The composite DataWindow is displayed in a DataWindow control called dw_news and the reports are named open_orders and current_inv. The following code in the Open event of the window that contains dw_news provides a retrieval argument for open_orders:

FOR EXAMPLE:

DataWindowChild dwc_orders

dw_news.GetChild("open_orders", dwc_orders)

dwc_orders.SetTransObject(SQLCA)

dwc_orders.Retrieve("open")
oyj 2003-05-04
  • 打赏
  • 举报
回复
忘记说了,我是嵌套子报表,不知道如何得到子数据窗口的句柄,所以dw_1.Object.DataWindow.Detail.Height无法使用。
oyj 2003-05-04
  • 打赏
  • 举报
回复
我用的是嵌套报表,不是复合数据窗口,getchild没有用
tchatcha 2003-05-03
  • 打赏
  • 举报
回复
dw_1.Object.DataWindow.Detail.Height
zhoufenghubei 2003-05-02
  • 打赏
  • 举报
回复
w_1.Object.DataWindow.Detail.Height

609

社区成员

发帖
与我相关
我的任务
社区描述
PowerBuilder DataWindow
社区管理员
  • DataWindow社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧