# EXT\_Print\_Document

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;
