【文件属性】:
文件名称:实战演练-python for kids(高清)pdf
文件大小:12.53MB
文件格式:PDF
更新时间:2021-07-09 13:42:13
图文教程
4.5 实战演练
4.5.1 打印表
4.5.1.1 通用代码
数据表通用打印代码:
Dim doc As New PrintDoc '定义一个新报表
Dim rt As New prt.RenderTable '定义一个新表格
Dim tb as Table = Tables("订单")
rt.Width = "Auto" '表格宽度为自动,也帱是等于各列设置宽度之和
rt.SplitHorzBehavior = prt.SplitBehaviorEnum.SplitIfNeeded '表格宽度超
出页宽时,可以渴平换页
rt.Style.Font = tb.Font