Cannot load 32-bit DLL "C:\mycurrentlauncherpathlocation\DIBAPI32.DLL"What in the api calls below makes it a pathing issue of sorts? Or is it something else? Again it works fine on my machine calling the vfp exe from one location, but errors when called from the "workstation launcher" location (on the same machine). Here is the code.
DECLARE INTEGER GetDesktopWindow IN Win32api DECLARE INTEGER PrintWindow IN DibApi32 ; INTEGER HWnd, ; INTEGER fPrintArea, ; INTEGER fPrintOpt, ; INTEGER wxScale, ; INTEGER wyScale, ; STRING @ szJobName LOCAL nRetVal,cJobName && title you want to show when printing cJobName = 'Printing...' && or whatever - this could be passed in as a parameter, also. nRetVal = PrintWindow(GetDesktopWindow(),1,1,0,0,@cJobName) IF nRetVal != 0 IF nRetVal != 6 && 6 = User canceled printing MESSAGEBOX("error..... blah blah") ENDIF ENDIF