column header disappear in print

Very strange behaviour:
In “table view” every column have text property and them appear but when I launch a print preview/print the headers disappear…

Is there some specific property to set for shown the headers in “print mode” ?

Do you use body parts for printing?

If so what happens when you remove the header part?

Yes the form is in “table locked view” composed from the “title header” and the body with all fhe fields with the Text property with the column header text.

If I remove the title header in print preview appear the form as in “list view” and without the column header.

Anyone can test this thing? Just to understand if is a my problem, a my configuration error or a bug…

I tried something similar and the title header was shown on the first page in print preview.

Make sure the components from each body part do not get outside that part’s bounds.
What OS, Servoy version and Java version do you use? Can you attach a small sample solution?

:) I see what you mean now.
I was thinking the title header disappears. You meant the table-view column header… Yes, that one is not shown in print preview…

That happens because, in print preview/print the form is seen as a record view. Multiple records are/can be displayed anyway while printing - so the printing of a form was not intended to work with table view/list view.

In order to have what you want when printing you will have to construct a record view form that in the header part contains the table column headers. It will look as a table view in print preview if the body part contains the fields you want as one line - just as a table row.

in the header part contains the table column headers

With “column headers” you intend a label for each column?

Yes, labels or other components that can do the job…

Ok but I can also leave it il list view and insert the label in the title header.
The only problem is the alignement of the title of the columns (I made an only label for simplify .visible on/off but calculate the spaces is a very boring thing)

I would make 1 label per column if I were you. :) Using spaces is not only boring but dangerous too. You cannot rely on them for alignment.

Yes but the columns are 10 and make it visible on/off 10+10 times is not so pretty. And however there are other problems because the page is print scaled.

Is there the possibility to include the title as shown in Ready mode in the next release?

What do you mean by “Ready mode”?

When the solution is running…

Automatically adding table headers would mean support for printing table view forms - that would take some work. So it is not likely you will have it in the next release.
What problems do you have when using list view with the header body part? Maybe we could solve those ones…

Hi there,

I have been having exactly the same problem as Axterics, my headers keep dispappearing when lauching print preview/ print.

I was just wondering if anyone had managed to find a solution as there has been no proper solution posted.

Has anyone got any ideas???

If you need to be able to print a table view form exactly how it looks like during runtime (even with resized/repositioned/invisible columns) I do not see right now a reasonable way to do it.
Normally you can make another form for printing - but it has all those columns fixed - by adding labels/buttons in the header part and printing it as a record view.
Another possibility would be using a header part in the table-view form that you want to print - thus removing the natural table header and it’s standard functionality.

But I already mentioned this earlier in the thread… So if you need to have a fully functional table view form printed as it is, you can add a feature request for printing table view forms here:

Does anyone else have other ideas?