|go ahead... be a heretic|
Re^5: How to use wxHtmlEasyPrintingby Anonymous Monk
|on Mar 19, 2013 at 09:07 UTC||Need Help??|
... Here is my code so far:
Sorry but that won't run, you're missing $htmlwindow -- compare to my example
I have tried to use SetFonts to reduce the font sizes on the preview page. The default sizes according to the wxwidgets.org are seven integers in the range -2 to +4. However only the third value, 0 seems to have any effect. When I change this from 0 to -1 the page text becomes too small to be readable.
Try positive integers, because the docs say
sizes This is an array of 7 items of int type. The values represent size of font with HTML size from -2 to +4 ( <FONT SIZE=-2> to <FONT SIZE=+4> ). Default sizes are used if sizes is NULL.
So wxHTML_FONT_SIZE_3 is size=-1 and wxHTML_FONT_SIZE_5 is size=+1 or some such combination
So try positive integers, like these (the wxHTML_FONT_SIZE_ constants no longer appear to be public )
Is there any way to scale the print out to fit a letter size page?