DrawText(TextField.text) how to get the new line?


i have a text field with usually one row. Sometimes more rows are needed and inserted by the customer. I want to print it into a PDF.
On Linux it works.
On Windows it works only with one row. But with multiple rows, the PDF shows both rows behind, not among themselves.

How can i solve that?
Is it possible to DrawText with EndOfLine or should i cut the string into single rows or … ?

Look there:


BTW: a TextField have only one line by default (and Rows are for ListBox).
You have to find from where the wrong line ending comes.
Replace the TextField Control with a TextArea Control which is multi-lines.

Sorry for that! :face_with_spiral_eyes:

My TextArea is called TextField (single row was the first version),
but it is a Textarea. Multiline is active.

s = TextField1.Text.ReplaceLineEndings(EndOfLine.Windows)
You make my day!