and, one thing you could do is make the whole thing with with HTML.
yep, make it html and then print it from the application you wish.
that way the stuff can be lot simpler.
and does not need so much coding.
_________________________
!

download KiXnet