Marcin Krzyzanowski
11/14/2005 10:47:00 AM
Hi,
I have a problem with SalesFormLetter.exportToFile() method.
I have SalesFormLetter_Foo extends SalesFormLetter, and override
exportToFile() where I have:
fileName param is set.
if (WinAPI::fileExists(fileName))
{
// FILE EXISTS, DONT KNOW WHY IF IT DOESN'T YET
}
try
{
outputFile = new AsciiIO(fileName, 'W');
if (! outputFile)
{
throw error("THIS ERROR IS NEVER THROW HERE"));
}
}
catch (Exception::Deadlock)
{
retry;
}
outputFile.write("TEXT"); // NO ERROR STILL here, outputFile.status
is IO_Status::OK
return;
Finally no error is throw but no file is created anyway. The biggest
question for me is why fileExists() show that fileName exists but it
don't, finally no file is created.
The same code called from any other plase work fine.
Does anybody have any clue about this ?