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

Ключ

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

...

Get running title Version 7 (Net)

Группа действийAction group: Word

Описание

Сохраняет текст из выбранного колонтитула.

Иконка

Image Removed

Параметры

Входные параметры  

Контекст           Уникальный идентификатор сеанса, к которому будет применено действие.

Колонтитул      Выбор колонтитула, из которого необходимо получить текст.

Выходные параметры

Результат Переменная, в которую будет записан текст колонтитула.

Настройки

...

Description

The action saves the text from a selected header

Action icon

Image Added

Settings of parameters

PropertyDescriptionTypeFilling 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
  

Особые условия использования

Отсутствуют.

Пример использования

Задача 

Получить верхний колонтитул документа в переменную. 

Image Removed

Решение

Воспользоваться действием "Открыть", "Взять колонтитул", "Закрыть", "Сообщение в лог". 

Реализация

...

  1. В поле "Путь к файлу" указать путь к файлу test.docx
    Image Removed

...

  1. В поле "Сообщение" указать сообщение, которое выведется в лог.
    Image Removed


Special conditions of use

None.

Example of use

Task 

Get the document top of page header into a variable. 

Image Added

Solution

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

Implementation

  1. Assemble a robot scheme with the actions.
    Image Added

  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.
      Image Added

  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".
      Image Added

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

  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.
      Image Added

  6. Click "Start" in the top panel.

Result

The program robot completed successfully.

Image Added

The header text was sent in log

...

Результат

Программный робот отработал успешно.

Image Removed

Текст колонтитула выведен в лог.