Гость
Целевая тема:
Создать новую тему:
Автор:
Форумы / Visual Basic [игнор отключен] [закрыт для гостей] / документ WORD, и поля merge field / 3 сообщений из 3, страница 1 из 1
19.09.2005, 11:11:40
    #33276126
shady
Участник
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
документ WORD, и поля merge field
вопрос такой
есть документ ворд с текстом и картинками, в этом тексте есть поля merge field, вопрос такой можно ли из программы открыть этот ВОРДовский документ, и поля merge field заменить записями из рекордсета?
у кого есть опыт, поделитесь?
...
Рейтинг: 0 / 0
19.09.2005, 15:15:33
    #33276892
shady
Участник
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
документ WORD, и поля merge field
хтоя бы предположения на этот счет имеются?
...
Рейтинг: 0 / 0
19.09.2005, 16:47:36
    #33277216
shady
Участник
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
документ WORD, и поля merge field
Код: 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
Форумы / Visual Basic [игнор отключен] [закрыт для гостей] / документ WORD, и поля merge field / 3 сообщений из 3, страница 1 из 1
Найденые пользователи ...
Разблокировать пользователей ...
Читали форум (0):
Пользователи онлайн (0):
x
x
Закрыть


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