I am researching possibility of building an automatic brief datasheet template in LaTeX, taking data straight out of a database. The database connection part is possible and can be done with such packages as LaTeXDB for mySQL bases.
There is however a second requirement (by company standards). The brief datasheet has to fit on single page only. To do that I'd like to include priorities of data in my database and contain only most important information that fits the page. I also need to check how much room does a block take up on my page and include it conditionally.
My question is - is there any package to test and return information about space taken up by a block (paragraph, table, picture), that I could than use with a conditional scripts in LaTeX?
If this is not the way to do it, I'd appriciate some advice regarding testing how much space will a compiled block of text take up, if sending LaTeX code to the compiler from a C# application.