hmg HPDF

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

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

hmg HPDF

Post by serge_girard »

Hello,

Today I wanted to use an image in my PDF:

Code: Select all

@ 15,180   HPDFPRINT IMAGE cImage WIDTH 72  HEIGHT 430 TYPE PNG
I tried several syntaxis but all in vain!

and this now gives an error:
Error E0030 Syntax error "syntax error at '@'"

I used it many times before and now I won't compile....

Anybody an idea what's wrong suddenly?

Serge
There's nothing you can do that can't be done...
User avatar
danielmaximiliano
Posts: 2681
Joined: Fri Apr 09, 2010 4:53 pm
Location: Argentina
Contact:

Re: hmg HPDF

Post by danielmaximiliano »

Hola Serge : revisa si estás usando oops: define xxxx
Setproperty("main", xxxxx / getproperty("main", xxxx

Si estás usando sintaxis clásica
@ x, y xxxxxx
Main. Xxxxx. Xxxxx
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
martingz
Posts: 407
Joined: Wed Nov 18, 2009 11:14 pm
Location: Mexico

Re: hmg HPDF

Post by martingz »

Serge
This code works well for me; I've tested it and it generates over 20,000 PDFs every 5 days.


@ 5,05 PRINT IMAGE "F:\SCA\LNCDLL\comapa.png" width 45 height 25
@ 5,180 PRINT IMAGE "F:\SCA\LNCDLL\Escudoa.png" width 25 height 25
User avatar
serge_girard
Posts: 3392
Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB
2 DBF
Location: Belgium
Contact:

Re: hmg HPDF

Post by serge_girard »

It is all about HMG_HPDF ... (Dr. Claudio Soto )

Apparantly I had a wrong version of hmg_hpdf.ch:

Code: Select all

 
#xcommand @ <nRow> , <nCol> HPDFPRINT IMAGE <cImage> ;
	WIDTH <nWidth> ;
	HEIGHT <nheight> ;
	[ <stretch : STRETCH> ] ;
	=> ;
	_HMG_HPDF_IMAGE ( <cImage> , <nRow> , <nCol> , <nheight> , <nWidth> , <.stretch.> ) 
Now it is working fine.

S
There's nothing you can do that can't be done...
Post Reply