0

我创建了一个交互式报表,该报表使用在共享组件中自定义的报表布局(报表布局)进行打印。

我如何将字段值(例如:P16_AGE)放入打印页面/报告布局中?

这就是我在通用代码中所拥有的,它不适用于 &P16_AGE。甚至不适用于 :APP_USER

<fo:static-content flow-name="region-header">
               <fo:block xsl:use-attribute-sets="text text_2 text_0 start">
                  <fo:inline xsl:use-attribute-sets="page-header">#PAGE_HEADER#
:APP_USER </fo:inline>
<fo:block font-size="10pt">

Age of person: &P16_AGE.

</fo:block>
               </fo:block>
4

1 回答 1

1

我不认为这是可能的。报告布局的在线帮助说:

The report layout is the XSL-FO based definition of the page formatting. All
attributes defining page size, orientation, fonts, styles, etc., are defined
in this section.
The following are valid substitution strings:
#PAGE_HEADER#
#PAGE_HEADERFONT_COLOR#
#PAGE_HEADER_FONT_FAMILY#
#PAGE_HEADER_FONT_SIZE#
#PAGE_HEADER_FONT_WEIGHT#
#PAGE_FOOTER#
#PAGE_FOOTER_FONT_COLOR#
#PAGE_FOOTER_FONT_FAMILY#
#PAGE_FOOTER_FONT_SIZE#
#PAGE_FOOTER_FONT_WEIGHT#
#PAGE_WIDTH#
#PAGE_HEIGHT#
#HEADER_BG_COLOR#
#HEADER_FONT_COLOR#
#HEADER_FONT_FAMILY#
#HEADER_FONT_SIZE#
#HEADER_FONT_WEIGHT#
#BODY_BG_COLOR#
#BODY_FONT_COLOR#
#BODY_FONT_FAMILY#
#BODY_FONT_SIZE#
#BODY_FONT_WEIGHT#
#BORDER_WIDTH#
In order to make the report layout generic, there are additional sub
templates defined that specify the layout for each individual column, column
heading and column width. At runtime, those sub templates are dynamically
assembled and included in the main report layout automatically by
substituting the following strings:
#PRN_TABLE_CELLS#
#PRN_TEMPLATE_BODY_ROW#
#PRN_TEMPLATE_HEADER_ROW#

它没有提到引用项目。

于 2017-08-23T09:04:30.137 回答