powered by simpleCommunicator - 2.0.61     © 2026 Programmizd 02
Целевая тема:
Создать новую тему:
Автор:
Закрыть
Цитировать
Форумы / Visual Basic [игнор отключен] [закрыт для гостей] / документ WORD, и поля merge field
3 сообщений из 3, страница 1 из 1
документ WORD, и поля merge field
    #33276126
shady
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
вопрос такой
есть документ ворд с текстом и картинками, в этом тексте есть поля merge field, вопрос такой можно ли из программы открыть этот ВОРДовский документ, и поля merge field заменить записями из рекордсета?
у кого есть опыт, поделитесь?
...
Рейтинг: 0 / 0
документ WORD, и поля merge field
    #33276892
shady
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
хтоя бы предположения на этот счет имеются?
...
Рейтинг: 0 / 0
документ WORD, и поля merge field
    #33277216
shady
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Код: plaintext
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
21.
22.
23.
24.
25.
26.
27.
28.
29.
30.
31.
32.
33.
34.
35.
36.
37.
38.
39.
40.
--- Fields Property Example

--- This example updates all the fields in the active document.

ActiveDocument.Fields.Update

--- This example removes all the fields from the main text story and the footer in the active document.

For Each aField in ActiveDocument.Fields

    aField.Delete

Next aField

Set myRange = ActiveDocument.Sections( 1 ).Footers _

    (wdHeaderFooterPrimary).Range

For Each aField In myRange.Fields

    aField.Delete

Next aField

--- This example adds a DATE field at the insertion point.

With Selection

    .Collapse Direction:=wdCollapseStart

    .Fields.Add Range:=Selection.Range, Type:=wdFieldDate

End With

--- This example adds a mail merge field named "Title" at the insertion point.

Selection.Collapse Direction:=wdCollapseStart

ActiveDocument.MailMerge.Fields.Add Range:= Selection.Range, _

    Name:= "Title"
буду разбираться
...
Рейтинг: 0 / 0
3 сообщений из 3, страница 1 из 1
Форумы / Visual Basic [игнор отключен] [закрыт для гостей] / документ WORD, и поля merge field
Найденые пользователи ...
Разблокировать пользователей ...
Читали форум (0):
Пользователи онлайн (0):
x
x
Закрыть


Просмотр
0 / 0
Close
Debug Console [Select Text]