I used the code with a file called 'test1.pdf' in D:\sandbox and it worked perfectly. Were you using UNC paths perhaps?
John John Weller Wessex Computer Solutions 01380 728880 07976 393631 > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf Of Desmond Lloyd > Sent: 12 October 2006 12:47 > To: [EMAIL PROTECTED] > Subject: RE: Printing PDFs Using VFP > > > Am using Dave Croziers code snippet for printing PDF's (Thank You!). > > I cut and pasted the code and did a quick test... > > In the ShellExec statement there are three parameters: > > "test.pdf" - Name of PDF to print? > "" > "C:\temp\" - Location of file > > I substituted for my environment and I get an nstat = 2??? > > TIA, > Desmond > _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/profox OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

