# EXT\_Print\_Document

> MSS documentation · https://doc.sysdevmobile.com/mss/extensibility/functions-kalipso-to-mss/print/ext_print_document
>
> EXT_Print_Document imprime um documento (exercício, tipo, série, número), em impressora ou só em PDF, com layout secundário opcional.

Function to ask MSS to print a document.

_Input parameters_:

* inDocumentExercise – Exercise of the document;
* inDocumentType – Type of the document;
* inDocumentSeries – Series of the document;
* inDocumentNumber – Number of the document;
* inPrintPDF – To create only a PDF file (the document rules are applied);
* inPrintSecondLayout – To print the secondary layout if the document is configured to do it;
* inDontOpenPDF – When printing to PDF, MSS automatically asks if the user wants to open it;
* inParameter1 – User parameter 1
* inParameter2 – User parameter 2
* inParameter3 – User parameter 3
* inParameter4 – User parameter 4
* inParameter5 – User parameter 5

_Output parameters_:

* outResultCode – Return code: 0 – Done / < 0 User canceled selection or error occurred;
