Just updated to 4D v17r4 and it appears that when using the Windows 10 (64 bit) 
PDF printer, the client is no longer honouring the PAGE SETUP definition and 
instead just printing in portrait letter.

Still works properly on Mac or printing to physical printer on Windows but 
Print to PDF appears affected.

Using the code (which has worked fine through multiple versions of v16)…

PAGE SETUP([Table];”Form")

$pdfprintername:="Microsoft Print to PDF"
ARRAY TEXT($name1;0)
PRINTERS LIST($name1)
If (Find in array($name1;$pdfprintername)>0)
        SET CURRENT PRINTER($pdfprintername)
        SET PRINT OPTION(Destination option;2;$filepath)                        
        
End if
                        
Documentation seemed a little unclear as to whether one should now be using the 
mac version of…

SET PRINT OPTION(Destination option;3;$filepath)

But that option just prompted a save dialog box.

Can workaround by setting the page definitions with the SET PRINT OPTION 
command, but that is not ideal for the number of reports that are affected.

Anyone else running into this that can provide some insight or solution?

Thanks,
Cam

**********************************************************************
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**********************************************************************

Reply via email to