Hi.
I'm checking for file existence using file( cfile ). It returns false. However when I check the directory, I see the file is present.
This is the file I'm checking for:
Here is the actual code snippet:
Here the function file() is always returning .f. even when the file does exists.
Any ideas what could be wrong?
Reinaldo.
I'm checking for file existence using file( cfile ). It returns false. However when I check the directory, I see the file is present.
This is the file I'm checking for:
C:\Users\ADMINI~1\LOCALS~1\Temp\page001.png
Here is the actual code snippet:
LOCAL cDir := GetTempDir()
...
WinExec("gswin32c -dBATCH -dNOPAUSE -r150 -sDEVICE=png16m "+;
"-dTextAlphaBits=4 -sOutputFile=" + cDir + "page%03d.png " +;
cFile, 0 )
//------------ just for debugging ---------------
cPrnFile := cDir + "page"+StrZero( i, 3 )+".png"
logfile( "trace.log", { cPrnFile, file( cPrnFile ) } )
//---------------------------------------------------
WHILE FILE( cPrnFile := cDir + "page"+StrZero( i, 3 )+".png" )
::oPrn:StartPage()
::oPrn:SayBitmap( 0, 0, cPrnFile )//, nWidth, nHeight, nRaster )
::oPrn:EndPage()
logfile( "trace.log", { cPrnFile } )
i++
ENDHere the function file() is always returning .f. even when the file does exists.
Any ideas what could be wrong?
Reinaldo.