Randy, as mentioned before, try our plugin, within 5 minutes you have a working solution. It produces very small pdf files and has a lot of features on top. And yes the sample database has also a Write Pro area to print
The plugin comes with a silent driver installer and works from WinXP up to the the latest win10 http://www.node.de/indexplug.htm Regards Armin P.S.: I've tried the Win 10 internal pdf printer from 4D v16.3hf3 32Bit. The result produces big pdf files and the pdf files are corrupted 4D Tech mailing list wrote > Tim, > > As I mentioned in my original message, I cannot use PDFCreator. So this > does not work for me on Windows: >> SET PRINT OPTION(Destination option;3;fileName) > > as per documentation, but that was why I mentioned that I wasn't using > PDFCreator. > > As per docs, It works fine on Mac, but not Windows. Which is ok. I was > having issues getting to the other drivers. > > For years we’ve been doing this with 4D Write by simply changing printers > to > Adobe PDF > Win2PDF > PDF995 > > Each of these print drivers provides a way to programmatically set the > document name so the driver works. > > So I have managed to make this block of code work for all drivers but > Adobe PDF: > > GET PRINT OPTION(Destination option;$saveDestination;$savePath) > SET PRINT OPTION(Destination option;2;$tFullDocumentPath) > > WP PRINT($WriteArea;wk 4D Write Pro layout) > > SET PRINT OPTION(Destination option;$saveDestination;$savePath) > > I still have to use the mechanisms that each of the printer drivers > themselves require for giving the driver the document path, but WP PRINT > still requires me to use the SET PRINT OPTION command to set the path or > it puts up the save as dialog to get a name even though the printer driver > itself doesn’t need it or use it. > > So now all I have to do is figure out what the heck is wrong with Acrobat > PDF. It works fine and produces a proper PDF if I manually print and > choose Acrobat PDF, but generates a corrupt PDF if try to do the above > code programmatically. > > The file is not readable by any application (except a text editor) AND > it’s 11MB in size, where the other printer drivers product a 209KB file. > > Fun. Fun. Fun. > > Getting there, though. > > Randy -- Sent from: http://4d.1045681.n5.nabble.com/4D-Tech-f1376241.html ********************************************************************** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:[email protected] **********************************************************************

