Add a Signature to a Report

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

Red2
Posts: 273
Joined: Sat May 18, 2019 2:11 pm
DBs Used: Visual FoxPro, FoxPro
Location: United States of America

Re: Add a Signature to a Report

Post by Red2 »

Hi Jimmy and andyglezl,

Thank you for your valuable feedback and suggestions.

Code: Select all

BEGIN PICTURE
	VALUE	"FormSig"    // Form's Signature
	ROW		203
	COL		45
	WIDTH		40
	HEIGHT		10
	Transparent     .T.
	STRETCH		.F.
	ADJUSTIMAGE	.T.
End Picture
As I have stated the above command overwrites the form image layer below it:
[image]
FormSig-Result.PNG
FormSig-Result.PNG (21.38 KiB) Viewed 726 times
[/image]

If I substitute the old style "@ row col" syntax suggested by andyglezl

Code: Select all

@ 203, 45 PRINT IMAGE "FormSig" WIDTH 40  HEIGHT 10

Then no image is produced. Adding "TRANSPARENT" makes no difference here.

Perhaps these two report code styles, "@ row col ..." and "BEGIN ... END ..." don't combine in a .PRG. Can both styles be mixed in the same report?

Jimmy, can you elaborate on what you mean by
have you try to "overlay" Image with Image with "normal" Code ?
I am not quite sure what you mean here. I would appreciate it.

I am very grateful for all of this expert help. More ideas? Thank you!
User avatar
AUGE_OHR
Posts: 2062
Joined: Sun Aug 25, 2019 3:12 pm
DBs Used: DBF, PostgreSQL, MySQL, SQLite
Location: Hamburg, Germany

Re: Add a Signature to a Report

Post by AUGE_OHR »

Red2 wrote: Tue Jul 13, 2021 11:49 pm Jimmy, can you elaborate on what you mean by
have you try to "overlay" Image with Image with "normal" Code ?
I am not quite sure what you mean here. I would appreciate it.
Sample

Code: Select all

@ X,Y PICTURE Pic1
@ X,Y PICTURE Pic2
both use same Coordinate but that does not "mix" Image ... you will see only 1 x Image
you have to "paint" Pixel of both Image into DC and than display/print it

---

IMHO you have to "cut out" Place where you want to put Signature.

under Xbase++ i can "cut out" using "SetWindowRgn" but under harbour / HMG it seems only to work on Windows itself.
have a look here viewtopic.php?f=12&t=6176&p=60016 how to "mask" Image so it become "transparency"
have fun
Jimmy
User avatar
andyglezl
Posts: 1461
Joined: Fri Oct 26, 2012 7:58 pm
Location: Guadalajara Jalisco, MX
Contact:

Re: Add a Signature to a Report

Post by andyglezl »

De que se puede hacer, se puede...
Solo tienes que "jugar" con la calidad de la imagen
hasta encontrar la que satisfaga.
*-----------------------------------------------------------------
What can be done, can ...
You just have to "play" with the image quality
until you find the one that satisfies.

imagen_2021-07-16_224815.png
imagen_2021-07-16_224815.png (415.35 KiB) Viewed 710 times
Andrés González López
Desde Guadalajara, Jalisco. México.
Red2
Posts: 273
Joined: Sat May 18, 2019 2:11 pm
DBs Used: Visual FoxPro, FoxPro
Location: United States of America

Re: Add a Signature to a Report

Post by Red2 »

Hola andyglezl,

==========================
Google Translation
==========================

Gracias por tomarse el tiempo para proporcionar el enlace "... \ Print_to_PDF". (
Acabo de volver a acceder al sitio de HMGForum).
Lo echaré un buen vistazo aunque puede que no tenga tiempo hasta el lunes.

¡Gracias de nuevo!
****************************
Thank you for taking the time to provide the "...\Print_to_PDF" link.
(I am just now again able to access the HMGForum site).
I will have a good look although I may not have time until Monday.

Thanks again!
Post Reply