Microsoft Foundation Classes (mfc.hlp) (Table of Contents; Topic list)
CDC::EndDoc
CDC                                         Up Contents Index Back
──Microsoft Foundation Classes──────────────────────────────────────────────
 
  int EndDoc();
 
  Remarks
 
  Ends a print job started by a call to the StartDoc member function.
 
  The member function is provided as a convenient way to send the ENDDOC
  escape. It allows the application to access facilities of a particular
  device that are not directly available through GDI. The escape call is
  translated and sent to the device driver.
 
  If an application encounters a printing error or a canceled print
  operation, it must not attempt to terminate the operation by using
  either EndDoc or AbortDoc. GDI automatically terminates the operation
  before returning the error value.
 
  Return Value
 
  Positive if the function is successful. Or a negative value if there is
  an error. The following list shows common error values:
 
  Value            Meaning
 
  SP_ERROR         General error.
 
  SP_OUTOFDISK     Not enough disk space is currently available for
                   spooling, and no more space will become available.
 
  SP_OUTOFMEMORY   Not enough memory is available for spooling.
 
  SP_USERABORT     User terminated the job through the Print Manager.
 
 
                                     -♦-