COleDocObjectItem::OnPreparePrinting

This member function is called by the framework to prepare a document for printing.

static BOOL OnPreparePrinting(
   CView* pCaller,
   CPrintInfo* pInfo,
   BOOL bPrintAll = TRUE 
);

Parameters

  • pCaller
    A pointer to a CView object that is sending the print command.

  • pInfo
    A pointer to a CPrintInfo object that describes the job to be printed.

  • bPrintAll
    Specifies whether the entire document is to be printed.

Return Value

Nonzero if successful; otherwise 0.

Requirements

Header: afxole.h

See Also

Reference

COleDocObjectItem Class

Hierarchy Chart

COleDocObjectItem::OnPrint

Other Resources

COleDocObjectItem Members