It looks as though if I want to print the address labels for a mailshot the best way is to use WPSuperprint and create a single wprichtext with all the addresses on. Is that correct?
Mail merge label print
-
-
I'm working on this using
Codeif Document.BookmarkSelect('Address', true) then begin Address.AsString := Document.SelectionAsString; Address.HideSelection; Address.Refresh; end;for the first label and
Codeif Document.BookmarkSelect('Address', true) then begin Address.CPPosition := MaxInt; Address.InputString(#12); address.ActivePar.LoadFromString(Document.SelectionAsString, 'RTF','',[wploadpar_UseWritingAttr]); Address.HideSelection; Address.Refresh; endfor subsequent labels. It almost works. The problem is that on second and subsequent labels the first CR is lost eg
Line1
Line2
Line3becomes
Line1Line2
Line3Any suggestions?
-
Sused it. Use TWPRichText.LoadFromString