Text blocks for inserting formatted text in Word reports
Product line
Standard
|
Expert
Operating mode
CLOUD ABO
|
ON-PREMISES
Modules
Services & CRM
Budget & Phases
Purchases
Resource Planning
Business Intelligence
Created: 09.01.2015
Machine translated
Updated: 01.02.2021
|
Differentiation between legacy Word reports and Office reports presented in a table.
Text blocks can be used to create preformatted texts in Vertec, which can later be formatted into Word reports. These are stored in HTML format in Vertec and are therefore independent of layout and CI.
OCL expressions can also be stored in the text modules, which are calculated when the report is executed.
The text modules can be linked to Vertec objects via custom links or via additional fields. For example, you can store quotation texts that print the corresponding texts depending on the selected options.
Creating text blocks in vertec
Create the following Expression folder:
Expression: textbaustein
“New” classes: Textbaustein
Icon: 19
To enter a phrase, right-click on the folder and select Neu > Textbaustein.
A single text block looks like this:
The formatted text supports the following parts of HTML:
Legacy Word reports
Office Reports
Paragraphs: <p> Text </p>
Numbered lists: <ol><li> Text </li></ol>
Unnumbered lists: <ul><li> Text </li></ul>
Bold font: <b> Text </b>
Italic font: <i> Text </i>
<p> elements can have the following value in the class attribute for formatting:
h1 , h2 , h3 for heading 1-3. Example
<p class="h1">Ein Titel</p>
.
indent for indented paragraph. Example
<p class="indent">Ein Titel</p>
.
If an element has set class=”ocl” then its content (text) is evaluated and used as an OCL expression. This is useful for inline elements such as <b> , <i> or <span> . Example:
<span class="ocl">projekt.code</span>
.
Inline Text <span> Text (to use OCL expressions without other formatting).
The arrow for expressions like in the example (
->size
) must be written as
->
because the
>
is interpreted as a control character by HTML.
Paragraphs: <p> Text </p>
Numbered lists: <ol><li> Text </li></ol>
Bold font: <b> Text </b> Note: Individual words within a sentence cannot be formatted bold.
Italic font: <i> Text </i> Note : Individual words within a sentence cannot be formatted in italic.
<p> elements can have the following value in the class attribute for formatting:
h1 , h2 , h3 for heading 1-3. Example
<p class="h1">Ein Titel</p>
.
indent for indented paragraph. Example
<p class="indent">Ein Titel</p>
.
If an element has set class=”ocl” , then its content (text) is evaluated and used as a field name ( not as an OCL expression). This is useful for inline elements such as <b> , <i> or <span> . Example:
<p><span class="ocl">code</span></p>
. Note : The element must be within a paragraph.
Inline Text <span> Text (to use OCL expressions without other formatting).
The arrow for expressions like in the example (
->size
) must be written as
->
because the
>
is interpreted as a control character by HTML.