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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: win32::printer help needed
by blenkhn (Acolyte) on Apr 10, 2008 at 14:53 UTC |