DECLARE INTEGER ShellExecute IN "Shell32.dll" ; INTEGER hwnd, ; STRING lpVerb, ; STRING lpFile, ; STRING lpParameters, ; STRING lpDirectory, ; LONG nShowCmd PrinterName = 'HP C6180' ?ShellExecute(0, "printto", 'd:\tmp\1.pdf', '"' + m.PrinterName + '"', '', 0)