DECLARE INTEGER ShellExecute IN "Shell32.dll" ; > INTEGER hwnd, ; > STRING lpVerb, ; > STRING lpFile, ; > STRING lpParameters, ; > STRING lpDirectory, ; > LONG nShowCmd > >lcPDFfile = "c:\mydir\myfile.pdf" >* Open PDF file >=Shellexecute(0,"Open", lcPDFfile, "","",7) >* Print PDF file >=Shellexecute(0,"Print", lcPDFfile, "","",0) >An easier way to do this without having to code the DECLARE and all is simply use the FFC class that does this for you (which I wrote for inclusion in VFP7):