I doubt that it is the Windows issue; probably there are some limitations with the oMyForm.OleOutline utility you are using.
Why not just create the file that allows to work with oMyForm.OleO, and then rename it?
>Hello Yuri,
>
>Thanks for your help
>
>The file that not exist and is created by the following code on the fly :
>
>lcFileName = gcPath+"\"+lcFileName+SYS(2015)+".tif"
>oMyForm.OleOutline.image = lcFileName
>oMyForm.OleOutline.multiPage = .t.
>oMyForm.OleOutline.pageoption = 1
>oMyForm.OleOutline.scanto = 2
>oMyForm.OleOutline.scroll = .F.
>oMyForm.OleOutline.showsetupbeforeScan = .t.
>oMyForm.OleOutline.stopscanbox = .f.
>
>oMyForm.OleOutline.openscanner
>oMyForm.OleOutline.startScan
>
>
>When I set the lcFileName variable to a file with 11 character of length, I do not have any problem. Anything bigger than that I get the following error :
>Error # 1440 - OLE exception error:00000001: Incorrect function. OLE object may be corrupt it.
>
>Maybe Windows 2003 does not allow me to create that long file name!!!, and when I tried to scan and the file can not be created then I get the above error.????
>
>
>Thanks,
>Sergio