Hi Bob, I am guessing the reason for the failure is that you are trying to write to the root of the C:\ drive which is usually "write protected"; so that's probably not going to work.
Also, you don’t seem to be specifying a filename but just a path instead... In this tech tip we use the desktop, please try something similar: Tech Tip: PDF creation on Windows 10 (without PDF Creator) http://kb.4d.com/assetid=77378 $pdfpath:=System folder(Desktop)+"test.pdf" $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;$pdfpath) ALL RECORDS([Table_1]) PRINT SELECTION([Table_1];*) SET CURRENT PRINTER(“”) End if Hope that helps. -Tim ********************************************************************** 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] **********************************************************************

