How to generate PDF archive files of a credit

To generate PDF archive files of a credit in the generalCreditRequestManager use
(PDF=PDF_file_to_generate;)
or
(PDF_NOPRINT=PDF_file_to_generate;)
as an object name in the Print method. The "PDF" token means to print the credit and generate the PDF files, whereas the "PDF_NOPRINT" token only generates the PDF files without physical printing.
This object definition is only used while printing and is ignored in the preview mode!

In its simplest form e.g. in the generalCreditRequestManager code this means


     BSTR bstrPrintTemplate = "(PDF="+bstrPDFFile+";)";
	 
     IGeneralCreditRequestManager::Print(bstrPrintTemplate,...);                            
    
to generate a PDF archive file of the credit request.

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!
Boundary conditions:

  • Only active in printing mode
  • No error propagation
  • The supplied PDF archive name(s) must not exist
  • The directory where the PDF is stored must be writable (EMF files are temporarily generated and delete there.)