Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
NZFei
Partner - Specialist
Partner - Specialist

Variables in edit report heading

Hi all,

I have two questions regarding edit report. In report settings, click picture button, we can see the image list. However there are only six places. What if I need to have more than 7 images imported? How can I do that?

ImageList.png

The second question is that if I do this by setting a variables in the script like below:

SET logo = if([Field]=11,'\\logos\11.jpg',
  if([Field]=22','\\logos\22.jpg',
   if([Field]=33,'\\logos\33.jpg',
    if([Field]=44,'\\logos\44.jpg',
    .
    .
    .
    .
    .
    .

    if([Field]=99,'\\logos\99.jpg')
))))....));

and then if I write a text object with =logo and set the Representation of the text box to image, the text object can display the images correctly based on the selection in the field.

But I can't make it work on the section of the header either using =$(logo) or =logo. Can anyone know how to set variables here? It just shows the path of the image but not real pictures. Is it doable?

Variable.JPG.jpg

I am using QV 11 SR3.

Thank you very much.

Fei

3 Replies
marcus_sommer

The report-editor isn't very flexible - perhaps it is easier or the only way to create a own header only with report-objects and without the report-settings.

- Marcus

Not applicable

Question 1: This is in the report header and footer section. If you require more images, you can just create a single .png or .jpeg image with the layout of all the images you need import that single (multiple) image. Hope that makes sense

Question 2: Short answer, don't know

NZFei
Partner - Specialist
Partner - Specialist
Author

If I put say 10 logos into one image and import it, how can I show one logo at a time according to selection?