Hi Dominique, using MultiFilePortMonitor a long list of options is available to define output filename; for this reason different configurations can be used depending on various needs. The simplest one is: 1) MultiFilePortMonitor port config: define output filename as %t.pdf 2) Uniface basic code: call getDefaultPrinter(myActualDefaultPrinter) call getUniqueInstanceName("componentToBePrintedToPDF", myUniqueInstanceName) call setDefaultPrinter("GhostscriptPDF") ; GhostscriptPDF is the name of the installed ghostpdf printer using port configured with MultiFilePortMonitor newinstance "componentToBePrintedToPDF", myUniqueInstanceName activate myUniqueInstanceName.exec() ; print instruction in the exec trigger is generating myUniqueInstanceName.pdf in the configured folder call reuseGeneratedPdfFile(myUniqueInstanceName.pdf, actionToBeApplied, otherParams) call setDefaultPrinter(myActualDefaultPrinter) All $status/$procerror checks after each call instruction were obviously stripped out. This solution can be either implemented on each single PC or with a shared PDF server. Hope it helps. Regards, Gianni
Author: gianni (
gianni.sandigliano@unifacesolutions.com)