WPCubed Product Support

Create PDF Input fields from wptools mailmerge

wpsupport

I hope you recieved my e-mail.

At present there is no object to create a checkbox for WPTools. This may be a feature in future.

#3 ♥ 0
1.4k Views 2 users read 1 min

I found out how to insert fields

obj := wps.TextObjects.InsertClass('TWPOEditControl', 360*width, 260*height);
               if obj.IsImage then begin
                   obj.ObjRef.ObjName := fieldname;
                   (obj.ObjRef as TWPOEditControl)._AllowFrame := true;
                   (obj.ObjRef as TWPOEditControl).Text.Text := ev.Value.AsString;
                   (obj.ObjRef as TWPOEditControl).Hint := hint;
                   (obj.ObjRef as TWPOEditControl).PDFFont := TWPOEditControlPDFFont(fontindex);
                   if not autosize
                       then (obj.ObjRef as TWPOEditControl).PDFOptions :=
                           (obj.ObjRef as TWPOEditControl).PDFOptions - [TWPOEditControlOnePDF.wpecAutosizeFont];
                   (obj.ObjRef as TWPOEditControl).Multiline := multiline;
                   if multiline
                       then (obj.ObjRef as TWPOEditControl).FontSize := 10;
                    Contents.obj := obj.ObjRef.CreateCopy(contents.DataCollection);
               end;

But there is a problem. The Text is shown the first time opened with a backslash-r after the text.

And second problem. I did not find out how to get a checkbox edit to the pdf

Chuck

#2 ♥ 0

Since quite some time the code to insert PDF Input fields in the wptools mailmerge before output via pdf does not work anymore.

Does anyone (perhaps Julian) know how to insert the fields during mailmerge

Chuck

#1 ♥ 0