Multiple lines text

Hi Everyone!

I am trying to insert a multiple line text field on my pdf report. I have inserted the line width and when I try to run my report it is not inserting line breaks.

Have someone else maybe had the same problem and got a solution?

Appreciate your assistance.

Regards
Jacques

Re: Multiple lines text

Hi!

This might help

sc_pdf_set_xy(‘x’,‘y’); //Where you want your text to appear eg: sc_pdf_set_xy(‘10’,‘78’);

sc_pdf_write(‘5’,{yourtextfield}); // first parameter (5) for line spacing and second is the field you want to write in the pdf.

Hope this helps.

Re: Multiple lines text

  1. Create a field (e.g. addressto) and Define it as Multiple lines text
  2. You will notice under Layout PDF -> code, the statement created to print the field as
    sc_pdf_print_mult($cell_addressto, 4.2333333333);
  3. At the Events-> Onrecord, enter the following statements:

{addressto} = {block}." “.{street}.”<br>".{country}." ".{postcode};

  1. The result will be :

{block} {street}
{country} {postcode}

  1. Make sure you define the X and Y position at the Layout PDF -> Interface