Listbox autoresize and printing problems !!

C

Cyril

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
 
A

Andrew Watt [MVP - InfoPath]

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
 
C

Cyril

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?
 
A

Andrew Watt [MVP - InfoPath]

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
 
A

Andrew Watt [MVP - InfoPath]

Cyril,

I am still not 100% sure of precisely what you are wanting to do. From
what you write I think you are using the listbox in the Feuille view
only for display purposes. And it is that listbox that is causing you
problems. Is that correct?

Have you tried using a texbox to display the summary information for
an error that you are currently putting in the listbox? You can set
properties for a text box to multiline on the Display tab of textbox
properties. Select word wrap and also select Expand to show all text.
Would that do what you need?

Andrew Watt
MVP - InfoPath

OK so I'll explain to you what I am trying to do.

I have a form librairy into wich my user publish form. These published form
contain the descprtion of an error, the element that produces that error and
the size of the element.
I have a textbox for the description of the error, then two sets of check
box where the users can choose the element the error applies to an the size
of the element the error applies to.

Once the users has filled out the form,I am using a view (in the same form),
where the users choose an element and a size, and a listbox is then
populated with the error that match the size and the element the user has
chosen (the listbox is populated using all of the form in my sharepoint
librairy). The matched errors are then populated into a LISTBOX ( wich is
causing me trouble).

After this I want the user to print that form, with the matching errors and
be able to discuss it, and write stuff on the sheet of paper they printed,
that's why I need to be able to print all of the data of the listbox and not
only the highlithed on.

I includ the form, It's in french, but I am sure you'll understant it (I
translated a few word for you).

Thanks for youl help

Cyril


Andrew Watt said:
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.
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?


"Andrew Watt [MVP - InfoPath]" <[email protected]> a écrit dans le
message de news: (e-mail address removed)...

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
 
C

Cyril

I am still not 100% sure of precisely what you are wanting to do. From
what you write I think you are using the listbox in the Feuille view
only for display purposes. And it i
s that listbox that is causing you
problems. Is that correct?

That's correct only for display view
Have you tried using a texbox to display the summary information for
an error that you are currently putting in the listbox? You can set
properties for a text box to multiline on the Display tab of textbox
properties. Select word wrap and also select Expand to show all text.
Would that do what you need?

I tried to use a textbox, but the thing is even after enabling wordwrap, it
only shows me the LAST item of my query, and not all of them like a listbox
do. Same problem with an expression, it only shows me one.

Any other idea?
 
B

Brian Teutsch [MSFT]

Listboxes will only print the selected items. If you need to return multiple
items, you should be considering a repeating control. InfoPath won't print
the other values in a control, but instead will only print the selected
values.

Brian
 
B

Ben

I experimented with Cyrils scenario by creating a repeating control whose
default value was a field in an STS list and this only resulted in one entry
being populated (rather than the repeating field repeating itself with all
of the entries).

The list box and drop list controls are the only ones that appear to "show"
all of the items from an STS list so I can understand why he is using the
listbox the way he is.

The desired end result as i see it is to display all entries in a column
from an sts list. What is the recommended means of doing this as i am
interested as well and all of my experiments have failed.
 
B

Brian Teutsch [MSFT]

It's quite easy, really. Just add the SharePoint List as a Secondary Data
Source. It will then be available in the Data Source task pane, and you can
drag in the fields you want directly into the view. Then you'll have the
correct type of control to allow editing and printing.

Brian
 
C

Cyril

Once I've dragged the field I want, how do I apply a filter to it. I don't
want to show all of the field entries but only the one that correspond to my
filter

How do I do this?


Seems like were getting closer...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top