Data Regions in Excel Rendering

本文介绍了使用RDL (Reporting Services) 报告定义语言导出到Excel时的不同数据区域的呈现方式,包括图表、列表、表格和矩阵的处理方法,并详细解释了报告元素如文本框、矩形、图片等在Excel中的渲染行为。

RDL/RDLC (Reporting Services )导出 Excel的数据呈现方式 

A data region is an area on a report containing data from a data source. Types of data regions are charts, lists, tables, and matrices. This topic describing rendering behavior when exporting data regions to Microsoft Excel.

clear.gif  Charts

Charts are rendered as pictures, not Excel charts. A chart is rendered the same way as an image element.

clear.gif  Lists

List elements show only their contents. The list is rendered for each data row or data group in Excel. Items in the list are positioned on the worksheet relative to their location in the report, which can lead to unexpected results. For this reason, lists are not recommended for incorporation in reports designed to be rendered in Excel.

clear.gif  Tables

Tables in reports are rendered as rows and columns of cells in Excel. Page breaks on report items inside a table cell are ignored.

clear.gif  Matrices

Matrices in reports are rendered as a set of formatted cells in the Excel file, much like the report in HTML. Matrix subtotals are not rendered as formulas, and the matrix is not rendered as an Excel PivotTable. Matrix data regions are fully expanded when rendered in Excel. If you hide all or part of a matrix at design time, at run time the hidden property is ignored and all rows and columns are visible in the report.

For groups, when a group is expanded, both the detail and the subtotal row is displayed. This is different than how groups are shown when viewing them in the HTML Viewer. In the HTML Viewer, when groups are expanded, the subtotal is hidden and the detail is displayed. For an example of this behavior, view the Company Sales report in the HTML Viewer, then Export it to Excel. For more information about sample reports, see AdventureWorks Report Samples.

ms155976.note(en-US,SQL.90).gifNote:

Any data region nested inside of a table or matrix data region is not supported. An error is displayed in Excel if this layout is encountered.

http://msdn.microsoft.com/en-us/library/ms155976%28SQL.90%29.aspx

 

Report Items in Excel Rendering

Report items are items other than data regions (tables, matrices, lists, and charts). If a report item is in a container, such as a rectangle or list, the coordinates for the item are relative to the container. For example, if the report item is defined in a rectangle, the coordinates of the individual item are relative to the rectangle.

This topic describes the rendering behavior when exporting text boxes, rectangles, images, subreports, and actions to Microsoft Excel.

clear.gif  Text boxes

When the Textbox element is rendered in Excel, the data type may be converted to one of the data types available in Excel. Numeric values convert to the value of the number with full precision, and a period as a decimal separator. Boolean values of 0 and 1 convert to the strings "true" or "false".

clear.gif  Rectangles

Rectangles are converted to groups of cells. If rectangles contain other items, the rectangle becomes a region of cells, and the border and background color of the rectangle is applied to the region of cells. The borders are converted to cell borders, and the background is converted to background colors for the contained cells. This applies to all items that act as rectangular free-form layout areas, including lists, the body, the page header, and page footer.

Page breaks are translated according to the values of the attributes PageBreakAtStart and PageBreadAtEnd defined in the rectangle item. If there are no items contained in the rectangle, no page breaks are created.

clear.gif  Images

An image can be a logo or picture, or it can be a picture that is repeated with rows of data. You can also use an image as a background for certain report items. When you use a URL-based image in a report, the image item contains a URL that points to an image on the report server or a separate Web server. When images are rendered to Excel, they are rendered as static pictures.

clear.gif  Subreports

A subreport is an item in a report that points to another report on the report server. When rendering to Excel, subreports are rendered as rectangles in the current report, containing the contents of the other report. The subreport is rendered on the same Excel worksheet as the parent report, not on a separate Excel sheet. However, a subreport is not rendered if there is no data associated with the subreport.

The border of a subreport is rendered, and the name given to the report item may not be unique across the subreports.

clear.gif  Actions

When a hyperlink, a bookmark link, or a drillthrough link is created on a report, an Action element is created in Report Definition Language (RDL). The following table describes how Excel translates actions.

Action child elements
Excel translation

Hyperlink

Becomes a hyperlink in the worksheet.

BookmarkLink

Becomes a hyperlink pointing to the name of the report item.

Drillthrough

Becomes a hyperlink pointing to the report referenced by the drillthrough link.

For more information on the Action element, see Action Element (RDL).

http://msdn.microsoft.com/en-us/library/ms157399%28SQL.90%29.aspx

内容概要:本文系统介绍了算术优化算法(AOA)的基本原理、核心思想及Python实现方法,并通过图像分割的实际案例展示了其应用价值。AOA是一种基于种群的元启发式算法,其核心思想来源于四则运算,利用乘除运算进行全局勘探,加减运算进行局部开发,通过数学优化器加速函数(MOA)和数学优化概率(MOP)动态控制搜索过程,在全局探索与局部开发之间实现平衡。文章详细解析了算法的初始化、勘探与开发阶段的更新策略,并提供了完整的Python代码实现,结合Rastrigin函数进行测试验证。进一步地,以Flask框架搭建前后端分离系统,将AOA应用于图像分割任务,展示了其在实际工程中的可行性与高效性。最后,通过收敛速度、寻优精度等指标评估算法性能,并提出自适应参数调整、模型优化和并行计算等改进策略。; 适合人群:具备一定Python编程基础和优化算法基础知识的高校学生、科研人员及工程技术人员,尤其适合从事人工智能、图像处理、智能优化等领域的从业者;; 使用场景及目标:①理解元启发式算法的设计思想与实现机制;②掌握AOA在函数优化、图像分割等实际问题中的建模与求解方法;③学习如何将优化算法集成到Web系统中实现工程化应用;④为算法性能评估与改进提供实践参考; 阅读建议:建议读者结合代码逐行调试,深入理解算法流程中MOA与MOP的作用机制,尝试在不同测试函数上运行算法以观察性能差异,并可进一步扩展图像分割模块,引入更复杂的预处理或后处理技术以提升分割效果。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值