Printing addresses on newsletters

Mark Schonewille m.schonewille at economy-x-talk.com
Wed Jun 8 19:30:43 EDT 2011


Hi James,

open printing -- with dialog
if the result is not "cancel" then
  repeat for each line tLabel in tList
    replace tab with cr in tLabel
    put tLabel into field 1 of this card
    print this card from 0,0 to 608,792
  end repeat
end if
close printing

With dialog is optional.

--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer
KvK: 50277553

New: Download the Installer Maker Plugin 1.6 for LiveCode here http://qery.us/ce

On 9 jun 2011, at 01:11, James Hurley wrote:

> I have 350 pre-printed newsletters to be mailed to 350 different addresses.
> 
> If I use the following in a script:  
> 
> repeat for each line tLabel in tList
>      replace tab with cr in tLabel
>      put tLabel into field 1 of this card
>      print this card from 0,0 to 608,792
> end repeat
> 
> Where tList is a cr separated list of addresses: Name, tab, Street, tab, CityStateZip 
> 
> It works, but it creates 350 separate print jobs. 
> 
> How would I create a single document of 350 pages, each page consisting of just the address? 





More information about the use-livecode mailing list