Сравнение версий

Ключ

  • Эта строка добавлена.
  • Эта строка удалена.
  • Изменено форматирование.

...

The action saves the text from a selected header.

Action icon

Image Modified

Settings of parameters

Свойство
Property
Описание
Description
Тип
Type
Пример заполненияОбязательность заполнения поляПараметрыКонтекстУникальный идентификатор сеанса, к которому будет применено действие
Filling exampleMandatory field
Parameters
ContextUnique ID of the session to which the action will be applied.Robin.Word
Контекст
Word context
Да
Yes
КолонтитулВыбор колонтитула, из которого необходимо получить текст
TitleWhat title should be obtainedRobin.String
Да

Yes
Результаты
Results
РезультатПеременная, в которую будет записан текст колонтитула
ResultThe variable to which the header or footer text will be writtenRobin.String

Special conditions of use

None.

Example of use

Task 

Get running title of the document to top of page header into a variable. (Получить верхний колонтитул документа в переменную. ) 

Solution

Use the "Open document", "Get running title", "Close document", "Message in log" actions.

...

  1. Assemble a robot scheme with the actions.


  2. Set the "Open document" action parameters (see Open document (Word) ). 
    1. In the "Path to file" field specify the path to the file test.docx.


  3. Set the "Get running title" action parameters.
    1. In the "Context" field specify the context of the open Word-document.
    2. In the "Title" field specify "Header".


  4. Set the "Close document" action parameters (see Close document (Word)).
    1. In the "Context" field specify the context of the open Word-document.


  5.  Set the "Message in log" action parameters (see Message in log Base actions)
    1. In the "Message" field specify the message to be sent in log.

  6. Click "Start" in the top panel.

...

The header text was sent in log. Текст колонтитула выведен в лог.