1) select the text inside the LineEdit;
2) get the selected string with:
String text = editor.GetSelection();
3) pass the string text to Report as discussed in another thread in this forum.
The problem: the selected text doens't contain the newline (\n) char. This means that you loose the format and the vertical alignment.
Any idea how to grab the text but preserving the newline char if it is present?
Luigi
Well, Report accepts Qtf. '\n' is ignored in QTF. Moreover, some sequences would be interpreted as control codes...
Solution:
String DeQtfLf(const char *s);
- escapes control sequences AND replaces '\n' with '&' (qtf line end).