.. highlightlang:: us .. index:: DocPrint .. _docprint: DocPrint ======== .. us.tag DocPrint NOTREADYENGLISH DocSet Changed512 :ref:`DocPrint` prints the pages from the document to the printer. .. function:: bool = DocPrint(hDoc) bool = DocPrint(hDoc, nStartPage, nEndPage) bool = DocPrint(hDoc, ssFile, nStartPage, nEndPage) .. us.return **Return Value** If the function succeeds, the return value is TRUE (1); otherwise it is FALSE (0). .. us.params **Parameters** .. uparam:: hDoc Identifies the document. .. uparam:: nStartPage p|nStartPage| is the page number of the first page to be printed, *nStartPage* ``>= 1``. .. uparam:: nEndPage *nEndPage* is the page number of the last page to be printed. .. uparam:: ssFile *ssFile* is the file name if the document is printed into a file. .. us.example **Example** Print all document pages :: DocPrint(hDoc, 1, 256); .. us.history **History** .. list-table:: :header-rows: 1 * - Version - Description * - 5.1.2 - New parameter *ssFile*. .. seealso:: :ref:`overview-documents`, :ref:`DocCreate`, :ref:`PagePrint`, :ref:`AppSetPrinter` :sub:`id-114637`