Call this function to set the printing margins for this rich edit view.
void SetMargins( const CRect& rectMargin );
The new margin values for printing, measured in MM_TWIPS.
Note that the margins used by PrintPage are relative to the physical page, not the logical page. Thus, margins of zero will often clip the text since many printers have unprintable areas on the page. To avoid clipping your text, you should call use SetMargins to set reasonable printer margins before printing.
See the example for CRichEditView::GetPaperSize.