关于字段

字段用于表示文档中会改变的数据,例如当前日期或文档的总页数。

查看字段

Fields consist of a field name and the field content. To switch the field display between the field name or the field content, choose View - Field Names.

To display or hide field highlighting in a document, choose View - Field Shadings. To permanently disable this feature, choose - LibreOffice - Application Colors, and clear the check box in front of Field shadings.

To change the color of field shadings, choose - LibreOffice - Application Colors, locate the Field shadings option, and then select a different color in the Color setting box.

字段属性

文档中的大多数字段类型,包括数据库字段,都会被保存并显示变量值。

单击以下类型的字段时,会执行相应的操作:

字段类型

属性

占位符

Opens a dialog to insert the object corresponding to the placeholder, except for text placeholders. For text placeholders, click on the placeholder and type over it.

插入引用

将鼠标指标移到引用。

运行宏

运行宏。

输入字段

打开一个对话框,可以在其中编辑字段的内容。


更新字段

要更新文档中的所有字段,请按 F9 键,或者选择编辑 - 全选,然后按 F9 键。

要更新从数据库中插入的字段,请选择该字段,然后按 F9 键。

批注图标

Placeholders are not updated.


在字段或条件中查询用户数据

添加输入字段

插入固定或可变的日期字段

有条件的文字

用于页数的有条件的文字

页码