Getting metrics from HTML rendering for dynamic table page breaks

Kenneth Porter <[email protected]>
Newsgroups gmane.comp.lib.wxwindows.general
Message-ID <[email protected]>
I want to print some database tables and the wxHtmlPrintout class looks 
like a promising way to achieve that. I think I want to render the DB 
table as a sequence of HTML tables, one per paper page, similar to the 
way a conventional reporting package works.

To accomplish that, I need to know how many DB rows fit on a page. Is 
there some straightforward way to do that? I'm thinking I could 
dummy-render an HTML table with one and two rows to measure the minimum 
size of the table and how much it will grow with each row added. With 
that and the page size, I can calculate how many rows will fit on each page.

I'm trying to figure out how to hook the rendering process so that I can 
do this measurement and dynamically generate the HTML on the fly.

Any hints would be welcome.


-- 
Please read https://www.wxwidgets.org/support/mlhowto.htm before posting.
--- 
You received this message because you are subscribed to the Google Groups "wx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/wx-users/2987b6c9-5380-4b22-acab-8a153dffc740%40sewingwitch.com.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.