PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WINDEV 2024 → [WD20] Report with a pdf as backround and some rectangles with opacity
[WD20] Report with a pdf as backround and some rectangles with opacity
Débuté par Michael Drechsel, 02 mai 2016 13:19 - 2 réponses
Posté le 02 mai 2016 - 13:19
Hi,

I´m looking for a possibility to print a report with a pdf as background (is a map of a building).
In some cases I must print a rectangle over the pdf with 90 percent opacity to mark areas.
Can´t find how to set the opacity for a rectangle ....

Any ideas ?
Posté le 03 mai 2016 - 00:21
Hello Michael

I have not done this but, the image control in a report has a transparency option to tick "According to the image".
I would start with a .png type image as it supports transparency so if you can set the transparency of the image when you save it, the report should use that when it prints it ?

The pdf background part is straight forward
In my case I have a generic global variable for say an A4 invoice background and use that to reference a pdf file so I can just swap the file to suit the clients letterhead.
iPrintImage(GDRIA4BkgrndPDF,0,0, iPageWidth() , iPageHeight() , iNormalDisplay)

Regards
Al
Posté le 03 mai 2016 - 09:07
Hi Al,

yes, I make some tests with half transparency rectangles. It works so far. The challange would be, these rectangles to place at the right position.