generating XML and/or paper based MCD requests
To generate PDF archive files of a MCD in the hospitalMCDRequestManager use a special print object name (cf. Syntax of the printTemplate variable for an overview).
(PDF=PDF_file_to_generate;)is used as a print object name on the printTemplate variable of the Print method.
The "PDF" token means to print the MCD request and generate the PDF files, whereas the "PDF_NOPRINT" token only generates the PDF file without
This object definition is only used while printing and is ignored in the preview mode!
In its simplest form this means
in order to generate a PDF archive file of MCD request.
BSTR bstrPrintTemplate = "(PDF="+bstrPDFFile+";)"; IHospitalMCDRequestManager::Print(bstrPrintTemplate,...);
Since the PDF generation is not the main purpose of the Print method this PDF feature has NO error propagation. The generation is done on a best effort basis, errors are only dumped to the log file!
- Only active in printing mode
- No error propagation
- The supplied PDF archive name must not exist
- The directory where the PDF is stored must be writable