PrCloseDoc
PrCloseDoc
Close a printing grafPort and end a print job Use PrCloseDoc after you finish printing the final page of a document. It releases the printing grafPort if you created one in a previous call to
PrOpenDoc. If print spooling was taking place, the spooling process is terminated.
pPrPort is the address of a 178-byte TPrPort record. This must be a value
Notes: If, in the previous call to PrOpenDoc, you specified pPrPort = 0, then this call disposes of the memory allocated for that TPrPort. In that case, pPrPort will point to someplace meaningless after you call PrCloseDoc. After calling PrCloseDoc, you must check to see if the printing was spooled, and if so, you must call PrPicFile to actually print the spooled