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.
In reply to Re: win32::printer help needed
by BrowserUk
in thread win32::printer help needed
by blenkhn
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |