On Oct 15, 2019, at 2:00 PM, Denis Mikheev wrote:

> Has anyone encountered the issue with pdf generation on Windows Server 2016?
> 
> Issue:  "WR PRINT" opens up a dialog to save a pdf instead of the
> generation of PDF silently.
> 
> OS: Windows Server 2016
> 4D v15 R2
> 4D Running as a service
> Printer: " Microsoft Print To PDF"
> 
> The same logic/code works for Windows Server 2012 and PDFCreator173

There is a difference in how PDFCreator and Microsoft Print to PDF drivers are 
configured when using the SET PRINT OPTION command.

Microsoft Print To PDF uses: SET PRINT OPTION(Destination Option;2)

PDFCreator uses: SET PRINT OPTION(Destination Option;3)

macOS also uses: SET PRINT OPTION(Destination Option;3)

If you specify SET PRINT OPTION(Destination Option;3) and try to print to 
Microsoft Print To PDF you will see the save as file dialog box. 

Are you using "WR SET PRINT OPTION(wr destination option;3;…”  to enable 
printing to a PDF? If so, I would try switching to “2”. 

If you are using SET PRINT OPTION and OPEN PRINTING JOB with the WR PRINT 
command, change the SET PRINT OPTION to use “2”. 

Tim

*****************************************
Tim Nevels
Innovative Solutions
785-749-3444
[email protected]
*****************************************

**********************************************************************
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:[email protected]
**********************************************************************

Reply via email to