Line-by-line printing for newbie

Hi,

I am thinking of moving a 4D application that I’ve developed over the course of 10 years.

The application has quirky forms that are somewhat like a paper questionnaire, with a text response after each question (on the same line), but continuing onto more (blank) lines, as the length of the user’s response necessitates.

In 4D, I calculate the length of the response text based on the font and size, and compare it to the available space for entry on the same line. If it exceeds the available space, I print it in paragraph format on subsequent lines. At that point, I am placing all of the text into an array, and printing each array element as a separate line of text. When I reach the end of the page, I print a footer, move on to the next page, and continue printing array elements.

I also need to deal with text data in tables, where the vertical length of the table is determined by the text array that has the most elements (based on font/size and the available column width).

Is it possible to do these things with form printing in Servoy?

Many thanks,
Don Lapin

You could do that without fiddling with calculations of fonts and sizes, simply creating a html file and html tables using the VelocityReport plugin, then using some CSS @page extensions to insert header/footer on each pages.

Have a look at the VelocityReport plugin on ServoyForge: Overview - VelocityReport Plugin - ServoyForge

Hi Patrick,

Thanks so much for your reply. I will take a look at the plugin.

Don