in reply to Error 317 saving spreadsheet
From MSDN:
ERROR_MR_MID_NOT_FOUND 317 The system cannot find message text for message number 0x%1 in the message file for %2.
The $en_f = Win32::FormatMessage($en_num); can't provide a string because the text that would be used for that string doesn't exist.
ikegami's suggestion may point to this:
From CPAN:
Win32::CopyFile(FROM, TO, OVERWRITE)
CORE The Win32::CopyFile() function copies an existing file to a new file. All file information like creation time and file attributes will be copied to the new file. However it will not copy the security information. If the destination file already exists it will only be overwritten when the OVERWRITE parameter is true. But even this will not overwrite a read-only file; you have to unlink() it first yourself.
$excel->{DisplayAlerts}=1; I get a message indicating that the file is there and asking if I want to overwrite it.
Looking at the above, I believe the error has to do with an attempt to overwrite an existing file(The very file you have open).
Using the Win32::CopyFile(FROM, TO, OVERWRITE) to allow the overwrite may solve the problem.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Error 317 saving spreadsheet
by merrymonk (Hermit) on Mar 09, 2007 at 17:54 UTC |