this is one of those situations where the code is absolutely platform specific.

$file:=$1

  //target pdf
If (Is Windows)
        SET CURRENT PRINTER(Generic PDF driver)
        SET PRINT OPTION(Destination option;2;$file.platformPath)
Else 
        SET PRINT OPTION(Destination option;3;$file.platformPath)
End if 

2 on windows, 3 on mac.

> 2020/04/04 6:45、UKVetDerm via 4D_Tech <[email protected]>のメール:
> 
> SET PRINT OPTION(Destination option;2;$longDocName)
> 
> However I only get valid PDFs for EMAIL using the older code for MAC
> SET PRINT OPTION(Destination option;3;$longDocName)

**********************************************************************
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