Hi Keisuke

The docs are incorrect or incomplete somewhere - probably in v18 or v18r2 - I 
will see if I can find this. I have been using this on the Mac for years, but I 
am not a big windows user and looked this up at the time.
The LiveDoc reference logged in has 18r2, 18, 17, 16 and not the last 17r6 - is 
there somewhere else that these can be accessed?
Similarly https://doc.4d.com/4Dv18/index.en.html gives the same

Feeling a bit stupid, but so glad it is sorted

Thanks
Steve


On 04/04/2020, 00:59, "4D_Tech on behalf of Keisuke Miyako via 4D_Tech" 
<[email protected] on behalf of [email protected]> wrote:

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

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