void __fastcall EndDoc();
Ends the current print job and closes the text file variable.
EndDoc terminates the print job. The print job will begin printing on the printer after a call to EndDoc.
After the application calls EndDoc, the printer begins printing. Use EndDoc after successfully sending a print job to the printer. If the print job is not successful, use the Abort method.