I've been using ShellExecute successfully for years on 95/98/NT systems to open/print Adobe Acrobat PDFs w/ the user's default prog. w/ NO problems.
I'm writing a VB6 prog., running on NT4 SP4 w/ IIS4, that lets visitors to our Website fax the PDF forms to a fax # they enter on an HTML form. I do this in my stand-alone progs. w/:
lngResult = ShellExecute(GetDesktopWindow(),"Print",strFile,0&,0&,vbMinimized)
GetDesktopWindow():the hWnd of the Desktop.
strFile: Full path to file.
Everything is submitted to the prog. PERFECTLY, but the ShellExecute function returns "2" which according to the Win32 API means, "File not found." If I hard-code the path to the file into the function, compile the function into an EXE, and then double-click on it while sitting at the server, it works FINE!
This HAS to be a security issue. Any ideas?
Take all the points you want up to 1000. This has been driving me nuts, and I've lost an entire work day to this @#$&!