尧图建网站 尧图建网站 YAOTU WEB BUILD 免费咨询
ARTICLE DETAIL

资讯详情

深耕网站建设与建站编程的一线实战洞察。

学习C#开源报表组件Seal Report(24:Seal Report Designer界面布局-20)

学习C#开源报表组件Seal Report(24:Seal Report Designer界面布局-20) Seal Report Designer内Views节点支持添加Tab Control View视图控件该控件属于布局视图通过选项卡方式显示报表其下支持添加选项卡选项卡下支持添加布局、数据等子视图控件。Tab Control View相关的属性与View对象属性类似本文主要学习Tab Control View特有的属性用途及使用示例。Is enabled属性设置是否启用Tab Control View控件Tab selected index属性设置报表加载后默认显示的选项卡索引号Tab menu position属性设置选项卡标题的显示位置默认在上方Tab menu style属性设置选项卡标题的样式Tab justified属性值为True则所有选项卡标题的宽度相同Tab menu width属性Tab menu position属性值为Left或Right时设置选项卡标题宽度取值在1-11之间默认值为3Print:Force a break after a view属性值为True则打印时在当前视图控件内容输出后强制换页。Tab Control View控件下支持添加Tab Page View控件类似Winform中TabControl控件和Tab的关系Tab Page View下面支持添加各类布局、数据展示视图控件类似Container View控件。Tab Page View中与View对象有差异的属性如下所示Is enabled属性设置是否启用Tab Page View控件Tab page description属性维护在选项卡内显示的文本内容Pill CSS Style属性维护选项卡标题Pill模式的CSS样式Show number of records属性值为True则在选项卡标题中显示其内第一个数据表的数据条目New sheet for the tab page属性以Excel形式展示报表时配置是否为选项卡创建Sheet之前学习Container Grid Flex View控件的使用示例时示例文件10-Container - Grid Flex Layout.srex位于Samples文件夹内的Views节点中就是使用Tab Control View控件展示Container Grid Flex View控件的不同用法如下图所示一个Tab Control View控件下包含三个Tab Page View控件并没有特别的属性设置。参考文献[1]https://github.com/ariacom/Seal-Report[2]https://sealreport.org/[3]https://sealreport.org/demo[4]https://sealreport.org/forum/[5]https://github.com/ariacom/Seal-Report/releases[6]https://www.cnblogs.com/Leo_wl/p/7716582.html[7]https://sealreport.org/Help/html/26c7ae63-9b83-dc1d-b5d0-00a18021be41.htm[8]https://sealreport.org/Reports
返回列表