Board index » delphi » Serial correspondence in Word
Pawe?Łańcucki
Delphi Developer |
Pawe?Łańcucki
Delphi Developer |
Serial correspondence in Word2005-09-27 06:51:32 AM delphi173 Hi. I've a file in Word. -------------------- <<Name>> <<Adress>> <<Tiltle>> Bla bla bla ........ <<MyName>> ------------------ How can I do serial correspondence up to this pattern in the Word. 'Name', 'Adress', 'Title', 'MayName' are fields from table in Delphi. Pawe?Łańcucki XXXX@XXXXX.COM |
Oliver Townshend
Delphi Developer |
2005-09-27 07:07:18 AM
Re:Serial correspondence in WordQuoteHow can I do serial correspondence up to this pattern in the Word. |
Pawe?Łańcucki
Delphi Developer |
2005-09-27 09:40:44 PM
Re:Serial correspondence in Word
No.
I want to print leters with same text but with different headline. Użytkownik "Oliver Townshend" <oliveratzipdotcomdotau>napisa?w wiadomości Quote>How can I do serial correspondence up to this pattern in the Word. |
Crazy Horse's crazier little brother
Delphi Developer |
2005-09-27 10:13:48 PM
Re:Serial correspondence in Word
"Pawe?Łańcucki" <XXXX@XXXXX.COM>writes
Quote
var MainDoc: TOpWordDocument; ... MainDoc.Replace(ATagVal, sReplaceValue, True, wdroReplaceAll); -- Download the latest draft (version 1.22, updated 9/5/2005) of "STILL CASTING SHADOWS: Two American Families 1620-2006" by Blackbird Crow Raven: cc.borland.com/ccweb.exe/listing |
Oliver Townshend
Delphi Developer |
2005-09-28 05:24:57 AM
Re:Serial correspondence in WordQuoteI want to print leters with same text but with different headline. Oliver Townshend |
Pawe?Łańcucki
Delphi Developer |
2005-09-28 06:10:49 PM
Re:Serial correspondence in Word
Hi Oliver
Look at my sample and try understand what I am trying to do. test.doc ................. <<Tiltle>><<Name>> <<Adress>> Ivitation Bla, bla, bla ..... Best regards Paul Lancucki ................................... table with data: Title[1]:='Mr.' Title[2]:='Mrs.' Name[1]:= 'aaaaaaa' Name[2]:='bbbbbbb' Adress[1]:='Warsaw.....' Adress[2]:='London......' Output file testout.doc .................. Page 1 ................. Mr. aaaaaaa Warsaw..... Ivitation Bla, bla, bla ..... Best regards Paul Lancucki ................. Page 2 ............. Mrs. bbbbbbb London........ Ivitation Bla, bla, bla ..... Best regards Paul Lancucki ......... Użytkownik "Oliver Townshend" <oliveratzipdotcomdotau>napisa?w wiadomości Quote>I want to print leters with same text but with different headline. |
Oliver Townshend
Delphi Developer |
2005-09-28 06:23:29 PM
Re:Serial correspondence in WordQuoteLook at my sample and try understand what I am trying to do. manual can assist as well, and IIRC the Delphi manuals discuss OLE automation of a Mail Merge. Oliver Townshend |
Pawe?Łańcucki
Delphi Developer |
2005-09-28 06:50:08 PM
Re:Serial correspondence in Word
Thanks, I will try Mail Merge.
Do you have some sample? Paul Użytkownik "Oliver Townshend" <oliveratzipdotcomdotau>napisa?w wiadomości Quote>Look at my sample and try understand what I am trying to do. |
Oliver Townshend
Delphi Developer |
2005-09-28 07:01:17 PM
Re:Serial correspondence in WordQuoteThanks, I will try Mail Merge. www.djpate.freeserve.co.uk/AutoWord.htm which has tonnes of useful stuff, including a sample project at www.djpate.freeserve.co.uk/UsingWordMMerge.zip Oliver Townshend |
Pawe?Łańcucki
Delphi Developer |
2005-09-28 07:07:58 PM
Re:Serial correspondence in Word
Thank you very much Oliver.
Użytkownik "Oliver Townshend" <oliveratzipdotcomdotau>napisa?w wiadomości Quote>Thanks, I will try Mail Merge. |
George Birbilis
Delphi Developer |
2005-09-29 05:23:34 AM
Re:Serial correspondence in Word
can do that with mail merge
QuoteNo. |