Diese Seite mit anderen teilen ...

Informationen zum Thema:
WinDev Forum
Beiträge im Thema:
Erster Beitrag:
vor 1 Jahr, 11 Monaten
Letzter Beitrag:
vor 1 Jahr, 11 Monaten
Beteiligte Autoren:
PETER ZHOU, Arie, Fabrice Harari, Allard

[WB20] Image control in report

Startbeitrag von PETER ZHOU am 05.09.2016 07:16


If i linked the image control in a report to a database image ( binary memo), no issue.
When i print the pdf, i can see the image..

But when i use code to assign the image control to the binary memo, i cannot see the image in the pdf, what's wrong ?
IMG_PHOTO = MyPhoto.Photo

What am i missing ?





What is "MyPhoto"?
Did you try from a file from disk ?

Best regards

von Fabrice Harari - am 05.09.2016 12:24
Hi Fabrice,

Under webdev, i did assign by using the following code: IMG_PHOTO = MyPhoto.Photo
where "MyPhoto" is a file from disk and "Photo" is the file item.



von PETER ZHOU - am 05.09.2016 14:05

Where do you use this code? There are several options.

Indeed I have had a similar fault. The coding of the report didnot work all the time. hitting the save button in the report helped

I have reports that users can create form templates. It seems that in some cases windev seems to loose the connection. That is the reson why it doesnot get the image. It cannot find the file.

Solution: no programming, or minimal programming in the reports.

So use the databinding and no or minimal programming in the report


von Allard - am 06.09.2016 22:22

maybe NOT linking the imagecontrol to a fileitem directly will work better.
So extract the photo from the database to a file on disk using HExtractMemo().
Then assign it to your imagecontrol in code i.e. "before printing BODY"

von Arie - am 07.09.2016 07:05
Zur Information:
MySnip.de hat keinen Einfluss auf die Inhalte der Beiträge. Bitte kontaktieren Sie den Administrator des Forums bei Problemen oder Löschforderungen über die Kontaktseite.
Falls die Kontaktaufnahme mit dem Administrator des Forums fehlschlägt, kontaktieren Sie uns bitte über die in unserem Impressum angegebenen Daten.