How to fill the cells of a MS Word Labels Template


2007-05-10 12:10:06 PM
cppbuilder83
Hi,
I have a Table1 that contains the data of many customers (name, address, etc.)
Table1->FieldByName("FirstName")->AsString
Table1->FieldByName("LastName")->AsString
Table1->FieldByName("Company")->AsString
etc.
I need to create a ButtonClick that sends the the content of
all records (all data in the table) to fill the cells of
a MS Word Labels template (generated by the ButtonClick) Avery Standard 8162.
I can fill the labels manualy by doing copy/paste between the Tabel and the Labels template in Word
But I'd like to make this happen with a button click
To manualy select a Labels template in Word
Tools->Letters and Mailings->Envelopes and Labels
Does anyone know how to do this?
thanks
Rob