Page 1 of 1

_HMG_PRINTER_H_*() + hb_eol()

Posted: Thu Jul 23, 2020 7:35 pm
by karweru
Hello everyone,

I use _HMG_PRINTER_H_PRINT() and _HMG_PRINTER_H_MULTILINE_PRINT() function extensively in my reports generation. Was wondering if there is a way to force the two functions to honor hb_eol() or is there any other way to achieve the same.

eg, "line 1"=hb_eol()+"line 2" should print in two lines.

Thanks,

Re: _HMG_PRINTER_H_*() + hb_eol()

Posted: Fri Jul 24, 2020 5:26 am
by karweru
karweru wrote: Thu Jul 23, 2020 7:35 pm Hello everyone,

I use _HMG_PRINTER_H_PRINT() and _HMG_PRINTER_H_MULTILINE_PRINT() function extensively in my reports generation. Was wondering if there is a way to force the two functions to honor hb_eol() or is there any other way to achieve the same.

eg, "line 1"=hb_eol()+"line 2" should print in two lines.

Thanks,
Sorry, I meant "line 1"+hb_eol()+"line 2" should print in two lines.

Re: _HMG_PRINTER_H_*() + hb_eol()

Posted: Sat Jul 25, 2020 3:28 am
by Rathinagiri
You can split the text into an array of lines using

aLine := HB_ATOKENS( cLine, hb_eol() )

Then write coding to print multiple lines.