Page 2 of 2

Re: Add a Signature to a Report

Posted: Tue Jul 13, 2021 11:49 pm
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 899 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!

Re: Add a Signature to a Report

Posted: Wed Jul 14, 2021 12:36 am
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"

Re: Add a Signature to a Report

Posted: Sat Jul 17, 2021 3:52 am
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 883 times

Re: Add a Signature to a Report

Posted: Sat Jul 17, 2021 2:50 pm
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!