Is it possible to add a page break in the merge field?
I tried the char #12 (which is used for page break), but i didn't get the page break.
Why can't i read the FAQ here in the forum (i get the error - only moderators can read this forum)
Is it possible to add a page break in the merge field?
I tried the char #12 (which is used for page break), but i didn't get the page break.
Why can't i read the FAQ here in the forum (i get the error - only moderators can read this forum)
i still not found any solution ...
is it not possible or?
Hi,
You can insert RTF code, {rtf{\par\page}} would add a page break.
You can also work on the current paragraph (inside of the event OnMailMergeGetText!),
WPRichText1.A ctiveParagraph.IsNewPage := true
Julian
It didn't work both versions didn't work
Contents.Options := Contents.Options + [mmDeleteThisField];
if SameText(Copy(command, 1, 15), 'InsertPageBreak') then begin
//Contents.Options := Contents.Options + [mmMerge];
//Contents.StringValue := '<WPTools_Format><div></div>';
Contents.StringValue := '{\rtf{\par\page}}';
(*
ClearSelection;
InputString(#12);
*)
//ActivePar.IsNewPage := TRUE;
(*
Contents.StringValue := '<div></div>';
*)
//Contents.MergePar.IsNewPage := TRUE;
exit;
end
Alles anzeigen
Is there somewhere an example using pagebreak in merge fields?
I still didn't get it working
Hi,
WPRichText1.ActivePar.IsNewPage := true;
definitely works. This puts the paragraph the field is in on the next page.
Julian