in reply to win32::printer help needed

Use the Write() (not Write2()), and specify the CENTER format flag. You could use either the string mode (And set x to 0; Y to line number * font hieght in pixels) or the Draw mode and specify the bounding box where you want the text centered.

See also the Fit() method which will do some of the calculations for you.


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
"Too many [] have been sedated by an oppressive environment of political correctness and risk aversion."

Replies are listed 'Best First'.
Re^2: win32::printer help needed
by blenkhn (Acolyte) on Apr 10, 2008 at 14:53 UTC
    Can you give me an example? It would be very much appreciated.