int r,l;
r=pInfo->m_rectDraw.right;//得到打印纸的右边距
l=pInfo->m_rectDraw.left;//得到打印的左边距
设置你要打印的页宽x;
则两边要空的边距为(r-l-x)/2;
这样就可以居中了.