Hi - I am having problems with the print sliding (allow move: | allow width to: | allow height to:) property in the current version of Servoy as follows:
a) IF you allow the width to grow and have a heading this is ignored so for a larger number the heading can move to bear no relation to the column its above
b) IF you attach the same property to the header you get the same ie the header is not associated with the sliding of the content.
Second issue I am also trying to align text in the headers to the right - this does not seem to work in either html or text format - eg Should as far as I can see when aligned right align on the n and the l not the G and C. The result is that the whole text block is moved as is to the right and the actual content remains left aligned on the right side of the text area. THis is really hard to describe so I hope it makes sense !
I read the post 10 times I think . It is still not clear to me what you want and what happens…
Do you mean that you want to print data just like in table view by using a “row” of fields in the body and the table header in the header part - and you need printsliding of columns in this case?
You will have to explain the alignment part better too - I am not sure what you want and how you tried it.
Maybe a couple of screenshots would help. And no abbreviations.
Print sliding doesn’t really work that way. As you probably know, printing works in record view mode. So, when you print, the header/footer parts are printed, followed by the body part once for each record (simplified view of printing). When you want to print data as a table, you print the table header as labels in the header part and then you print record-by-record the body part - constructed as a row (all fields in one line). This ends up looking as a table.
If you enable print sliding, then in each row the fields will be positioned/sized according to that record’s data - so each and every row might end up with different column locations depending on the data in it and the print-sliding set. Print sliding cannot be performed this way, because the labels in the header part and the fields in the body-part of the record view are not linked in any way.
What you want is to be able to print table-view forms that also support column sliding - this would be a new feature request (and needs a considerable amount of work to be implemented).
My advice it to disable print-sliding for now on fields in the body area when you want to print table-like data.
If you really need to have columns-width adjust to the contents you could do something else - you could use a HTML Area and build your own table in HTML. You get the data you need with SQL and then programatically create the table.