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,
_HMG_PRINTER_H_*() + hb_eol()
Moderator: Rathinagiri
- karweru
- Posts: 220
- Joined: Fri Aug 01, 2008 1:51 pm
- DBs Used: DBF,mysql,mariadb,postgresql,sqlite,odbc
- Contact:
_HMG_PRINTER_H_*() + hb_eol()
Kind regards,
Gilbert.
Gilbert.
- karweru
- Posts: 220
- Joined: Fri Aug 01, 2008 1:51 pm
- DBs Used: DBF,mysql,mariadb,postgresql,sqlite,odbc
- Contact:
Re: _HMG_PRINTER_H_*() + hb_eol()
Sorry, I meant "line 1"+hb_eol()+"line 2" should print in two lines.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,
Kind regards,
Gilbert.
Gilbert.
- Rathinagiri
- Posts: 5480
- Joined: Tue Jul 29, 2008 6:30 pm
- DBs Used: MariaDB, SQLite, SQLCipher and MySQL
- Location: Sivakasi, India
- Contact:
Re: _HMG_PRINTER_H_*() + hb_eol()
You can split the text into an array of lines using
aLine := HB_ATOKENS( cLine, hb_eol() )
Then write coding to print multiple lines.
aLine := HB_ATOKENS( cLine, hb_eol() )
Then write coding to print multiple lines.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
South or North HMG is worth.
...the possibilities are endless.