OutFormImage
Gastón Salomone
1-8-19
Hi,

I have a requirement in one Project to put an image in a Document.
The problem is that the Image should change depending on some data in the register, so Its not posible to set a filename in Picture box in Document designer.

I managed to set a blank filename in a Picture box and use OutFormImage(XXXVc) to pass a picture attach to XXXVc Register. The problem is that XXXVc must be the same on which the document is based.
Por example, if I´m printing an Invoice, I must attach a picture to every Invoice and use OutFormImage(IVr).

Is there any code to set filename dinamically ?

There are several different images, so there is no posibility to create one Document for each image, because If any change is requiered in the document design, t must be done in all documents manually.

Regards
Leave Comment
You can subscribe to notifications for this post by selecting the 'star' icon on the top right corner of the post.
Latest Posts
Gastón Salomone
Hi David, Since this happend in a timed task and its a memory problem, system crash and there are not any messages in hansa.log In hansa log. last lines are following: 2025-04-24 22:48:20 runn...
16:15 25 Apr 2025
Paul Timms
Thanks David! I'll give that a go and confirm if that works. Paul...
10:54 23 Apr 2025