CLEAR RESOURCES (lcImageFileName)Tried them both, still cannot delete the image file after printing is finished.
lcImgFile = TmpDBF.imgfile && where fullpath of filename is stored. CLEAR RESOURCES (lcImgFile) && lcImgFile = "C:\APPNAME\2DBARCODE.BMP" -or- CLEAR DLLS DELETE FILE (lcImgFile)which still yields an error message: "Cannot delete a file that is in use". I also tried using a FOR loop with array function ADLLS[] and CLEAR DLLS cAlias to selectively kill the DLL outright, or a declared process of the DLL, but that had no effect on closing the BMP file.