cancel
Showing results for 
Search instead for 
Did you mean: 

Printing random number of images in Smartform / Adobe non interactive form

mornee_parsons
Explorer
0 Kudos

First of all I noticed that there are a lot of discussion on dynamically changing pictures in outputs.  That is the easy part for me.

I want to know is it possible to print random number of images, depending of the data, in an output?

For example, in one scenario you may want to print 3 images, another scenario 5 images in the same smartform of adobe form.

Is is possible to dynamically insert a number of images in this way?

Please help.  I have been researching this for a while without any solution!

Accepted Solutions (0)

Answers (1)

Answers (1)

Florian
Active Contributor
0 Kudos

Hi Mornee,

of course it is possible.

Just imagine a form, every position got 1 or more pictures. It is no problem to program such things in adobe.

Maybe you should switch to this space:

I'm pretty sure you will find your answer there

Christopher is absolutely right, search the web.. it will give you a hundred of tutorials to archive that.

Here is a serious one

PS: is more the space for sapscript / smartforms and the printers itself.

mornee_parsons
Explorer
0 Kudos

So basically I have to create 20 subforms, binding each image to a single sub form.  Then depending on the number of images, i just display the subforms in each page?  Is that correct?

And i dont want to use the interactive bit, just a normat non interactive adobe form.

Florian
Active Contributor
0 Kudos

Not necessary at all. If you got an table with your images in, you also can build a loop. Normally I create me an table because you need more than just a few pictures in a row.

My structures looks something like that:

Picture_structure

--name type char30

--matnr type matnr_d

--picture type url (not sure about the data-type right now) <--if you want to refer by url

or

--picture type mimedata <--if you got the binaries available

The mentioned blog is a very simple example how to pass pictures to adobe. I think you need to convert it to your concept. In my opinion the passing via interface is the most comfortable one, but you also could do it with JAvascript or formcalc inside.

I like the interface mehtod, because debugging inside the form is not that comfortable to me and the ABAP-debugger is my friend because I use it for years

~Florian