77范文网 - 专业文章范例文档资料分享平台

BI Publisher(rtf)模板开发语法大全(5)

来源:网络收集 时间:2019-03-28 下载这篇文档 手机版
说明:文章内容仅供预览,部分内容可能不全,需要完整文档或者需要复制内容,请下载word后使用。下载word有问题请添加微信号:或QQ: 处理(尽可能给您提供完整文档),感谢您的支持与谅解。点击这里给我发消息

三十一.重复标题行实现(重复表头) Repeatable RowHeaders

If your invoices break across a pageand you want to repeat the column header row, this can be achieved usingMSWord?s functionality. 1. Highlight the header row高亮直接用word设置 2. Table > Table Properties

3. Under the Row tab select the ?Repeat as Header row at the top of each page?

If the invoices table breaks across apage the header row will be repeated.

Splitting Rows acrosspages

You can prevent rows splitting acrossa page break by using MSWord?s functionality:

1. Highlight the data row 2. Table > Table Properties

3. Under the Row tab deselect the ?Allow row to break across pages? Rows that would normally be splitacross two pages are now moved to the second page to preserve the row data. I

在word中设置 举例 IFUse thefor-each@section to repeat the header information across pages of the outputdocument. In this case, the Customer Name will be repeated if the lineinformation runs across more than one page, the page numbering will also bereset.EI for-each@section G_CUSTOMER CUSTOMER_NAME ADDRESS_LINE1 ADDRESS_LINE2 CITY, STATE ZIP DearSir or Madam: for-each G_CURRENCY Your TRX_CURRENCY_CODE defers from the following invoices: Transaction Number Transaction DTransaction AmoTransaction Amoate for-each 01-Jan-2007 unt unt Remaining $ 100.00 $ 100.00 end Transaction Number Transaction DTransaction AmoTransaction Amoate unt unt Remaining for-each G_INVOICESTRX_NUMBER end for-each end for-each 三十二. 页眉页脚logo,时间等 1. There is one caveat to this, you cannot use form fields in the header so you?ll need to use the full placeholder text if you want to use data in the header.

2. It is good practice to use tables in the header and footer area to organize data and objects.

Youcan see in the header and footer of this report that we have several reportobjects embedded:

a) Logos: The Oracle logo is a straightforwardjpg image that has been embedded into the document. XML Publisher also supportsbmp, gif and png. We do not currently support wmf formats. Tip: Try and get alarger image than you need and shrink it in the template, this will improve thequality of the image at runtime.

b) Boilerplate – you can insert any text youwish in the header/footer and it will be repeated on each page (i.e. the reporttitle above, and the company address in the footer).

c) Data – as mentioned above you cannot use formfields in the header/footer area but this does not stop you adding data tothese areas. You just need to use the full placeholder text, this can beformatted just like the form fields and the incoming data will take on the sameproperties.

d) Page numbering – you can insert pagenumbering just as you would in a regular Word document, at runtime XMLPublisher will paginate the output and insert the correct page numbers. Thisuses the word merge fields for page number and total page number so we canbuild up text such as ?Page X of Y? in the template and final output.

e) Run Date – similar to the page numbering wecan also use the date merge field to insert the run date for the report. Itshould be noted that this is the publishing date and not necessarily the datethe data was generated. 注意时间和页数是会自己变化的

创建时 运行时

三十三.数字格式numberformatting

1. XSL natively supports number formatting using its format-number function, it returns a formatted string and takes the form:

stringformat-number(number,format,[decimalformat])

Parameter Description

Number Required. Specifies the number to be formatted

Format Required. Specifies the format pattern. Here are some ofthe characters used in the formatting pattern: ? # (Denotes a digit. Example:####)

? 0 (Denotes leading and followingzeros. Example: 0000.00) ? . (The position of the decimalpoint Example: ###.##) ? , (The group separator forthousands. Example: ###,###.##) ? % (Displays the number as apercentage. Example: ##%)

? ; (Pattern separator. The firstpattern will be used for positive numbers and the second for negative numbers) Decimalformat Optional.

So forexample to format the entered amount for thousands and 2 decimal places wewould use the following in the formfield:

format-number(ENT_AMT, \If you have negativenumbers these are supported too in the format: format-number(ENT_AMT,\denotes how the negative number should be displayed (note thesemi colon separating the formats).So -1234.5 would become (1,234,50)

百度搜索“77cn”或“免费范文网”即可找到本站免费阅读全部范文。收藏本站方便下次阅读,免费范文网,提供经典小说综合文库BI Publisher(rtf)模板开发语法大全(5)在线全文阅读。

BI Publisher(rtf)模板开发语法大全(5).doc 将本文的Word文档下载到电脑,方便复制、编辑、收藏和打印 下载失败或者文档不完整,请联系客服人员解决!
本文链接:https://www.77cn.com.cn/wenku/zonghe/554072.html(转载请注明文章来源)
Copyright © 2008-2022 免费范文网 版权所有
声明 :本网站尊重并保护知识产权,根据《信息网络传播权保护条例》,如果我们转载的作品侵犯了您的权利,请在一个月内通知我们,我们会及时删除。
客服QQ: 邮箱:tiandhx2@hotmail.com
苏ICP备16052595号-18
× 注册会员免费下载(下载后可以自由复制和排版)
注册会员下载
全站内容免费自由复制
注册会员下载
全站内容免费自由复制
注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信: QQ: