Sergio,
Can you scan into temporary short name and rename file afterwards to the proper name?
>
>Thanks for your help
>
>The file that not exist and is created by the following code on the fly :
<snip>
>
>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.????
>
>
--sb--