
December 11th, 2012, 11:23 AM
|
|
Registered User
|
|
Join Date: Dec 2012
Posts: 1
Time spent in forums: 12 m 37 sec
Reputation Power: 0
|
|
Variable Batch Printing
Hi, I cant find anyhting anywhere. I want to print an agreement between my club and a member at frequent intervals. I can make a Word template, I need to write a function which takes a template name, and a variant array of data, fills in the template, and prints it. My delphi code has all the data, and I want to do this on clicking a button.
Function Printcontract(Templatename,Stuff:variant array);
begin
load template
scan template for @Vn
replace with Stuff[n]
printdoc;
end;
Any ideas?
|