HMGPDF

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

Post Reply
User avatar
serge_girard
Posts: 3420
Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB
2 DBF
Location: Belgium
Contact:

HMGPDF

Post by serge_girard »

Does anybody know if it is possible to HPDFPRINT a string containing multiple sizes/colors mixed.
Something like this:

This string has multiple sizes and colors..

In HMGPDF :

@ nROW, nPOS HPDFPRINT 'This string has multiple sizes and colors.
obviously doesn't work but that how I would like to print a string.

I suppose it has to be done in more than 1 commands:
@ nROW, nPOS HPDFPRINT 'This '
@ nROW, nPOS+.. HPDFPRINT 'string' SIZE 10
@ nROW, nPOS+.. HPDFPRINT 'has'
etc.etc..

OR

Is there an easier way to it?

Thanks, Serge
There's nothing you can do that can't be done...
tryak96
Posts: 4
Joined: Fri Apr 12, 2013 8:32 am
DBs Used: DBF
Location: Italy

Re: HMGPDF

Post by tryak96 »

I believe there is no other way than to write the various strings with specific properties such as color, size and font.
Anyway, I follow to learn something new
The Eart would be a good place without humans.
User avatar
jairpinho
Posts: 420
Joined: Mon Jul 18, 2011 5:36 pm
Location: Rio Grande do Sul - Brasil
Contact:

Re: HMGPDF

Post by jairpinho »

serge_girard wrote: Tue Apr 26, 2022 1:39 pm Does anybody know if it is possible to HPDFPRINT a string containing multiple sizes/colors mixed.
Something like this:

This string has multiple sizes and colors..

In HMGPDF :

@ nROW, nPOS HPDFPRINT 'This string has multiple sizes and colors.
obviously doesn't work but that how I would like to print a string.

I suppose it has to be done in more than 1 commands:
@ nROW, nPOS HPDFPRINT 'This '
@ nROW, nPOS+.. HPDFPRINT 'string' SIZE 10
@ nROW, nPOS+.. HPDFPRINT 'has'
etc.etc..

OR

Is there an easier way to it?

Thanks, Serge

ola, Hello
@ 57, 30 HPDFPRINT "DATA1" FONT "Arial" SIZE 10 OLOR { 0, 0, 0 } CENTER
@ 57, 60 HPDFPRINT "DATA2" FONT "Arial" SIZE 12 COLOR { 0, 0, 0 } CENTER
@ 57, 90 HPDFPRINT "DATA"3 FONT "Arial" SIZE 14 COLOR { 0, 0, 0 } CENTER
@ 57, 120 HPDFPRINT "DATA4" FONT "Arial" SIZE 16 COLOR { 0, 0, 0 } CENTER
Jair Pinho
HMG ALTA REVOLUÇÃO xBASE
HMG xBASE REVOLUTION HIGH
http://www.hmgforum.com.br
Post Reply