Mail merge in word

ROBOROBO Member Posts: 39
edited 2005-06-01 in Navision Attain
Is there a possiblility to merge with word using bookmarks. It is working it only generates 1 document of the first record that has been found. This is a short list of the code.


NameBookmark := 'BLWNaam2';
WDApp.Visible :=TRUE;
WDApp.ScreenUpdating(TRUE);
WDBookmarks :=WDDoc.Bookmarks;
WDBookmark := WDBookmarks.Item(NameBookmark);
WDRange := WDBookmark.Range;
WDRange.Text := Contact."Name 2";
WDRange.Bold(1);

NameBookmark := 'BLWAdres';
WDApp.Visible :=TRUE;
WDApp.ScreenUpdating(TRUE);
WDBookmarks :=WDDoc.Bookmarks;
WDBookmark := WDBookmarks.Item(NameBookmark);
WDRange := WDBookmark.Range;
WDRange.Text := 'Postbus '+PostbusNummer;
WDRange.Bold(0);
Sign In or Register to comment.