I am using a sharepoint site to publish my infoapth form.
I have a form that contains a listbox that's populated from a sharepoint
librairy. Everything works fine, my list box is populated right, but I have
two problems:
When I print the form, Only the highlithed element from the listbox is
printed (and you cannot highlight more than opne), all the other are not
shown on the print, WHY?
The number of items in my listbox depend on my sharepoint site, I'd like to
make the listbox AUTORESIZE depending on the data it contains, is this
possible?
Thanks for helping
Cybre
>When I print the form, Only the highlithed element from the listbox is
>printed (and you cannot highlight more than opne), all the other are not
>shown on the print, WHY?
I guess the designers assumed that printing a form would most
appropriately show the choice(s) made by the user. It seems to me to
be the most appropriate thing to show on a printed version.
>The number of items in my listbox depend on my sharepoint site, I'd like to
>make the listbox AUTORESIZE depending on the data it contains, is this
>possible?
When you add the listbox control right click and select Properties. On
the size tab change the width from 130 (the default, I think) to auto
and the width of the listbox should correspond to the length of the
entries that you want to display.
Andrew Watt
MVP - InfoPath
Cyril - 27 Oct 2004 12:56 GMT
it does not work, even setting to auto does not automatically resize the
listbox.
The users are going to print that page, that's why I need to be able to
print all of the content of my listbox. (Users will not be selecting
anything from that listbox).
I've tried using expression but it only shows me the LAST item of my query,
and not all of them
Do you have any other idea that would help?
>>When I print the form, Only the highlithed element from the listbox is
>>printed (and you cannot highlight more than opne), all the other are not
[quoted text clipped - 16 lines]
> Andrew Watt
> MVP - InfoPath
Andrew Watt [MVP - InfoPath] - 27 Oct 2004 13:32 GMT
Cyril,
The auto option that I mentioned to you worked for me. I tested it
before I sent you the reply. I just created another form and it again
works as I described.
I am referring to autosizing on screen. Doesn't that happen for you?
If it still doesn't autosize for you can you explain in more detail
what you are doing? And what you set the size of the listbox to be?
Can you explain why you want to use a listbox if users are not going
to select anything from it? It seems to me that you are using the
listbox for a purpose for which it wasn't designed.
What values is it that you want to display and why are you using a
listbox to attempt to display them? Quite possibly there is some
aspect of your form that you haven't mentioned yet. Currently I don't
see why you want to use a listbox to display various values from which
users make no choice.
Andrew Watt
MVP - InfoPath
>it does not work, even setting to auto does not automatically resize the
>listbox.
[quoted text clipped - 27 lines]
>> Andrew Watt
>> MVP - InfoPath