_HMG_PRINTER_H_*() + hb_eol()

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

Post Reply
User avatar
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()

Post 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,
Kind regards,
Gilbert.
User avatar
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()

Post 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.
Kind regards,
Gilbert.
User avatar
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()

Post 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.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
Post Reply