You've already forked lazarus-ccr
fpspreadsheet: Restore usage of a temp file name for the zipper needed by xlsx and ods writers, now defined by GetTempfilename, instead of the constant '___TEMP.TMP___'. This should work even if the current folder is not writable.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4400 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -70,7 +70,7 @@ var
|
||||
implementation
|
||||
|
||||
uses
|
||||
LclIntf, StrUtils, fpsUtils, fpsRegFileFormats;
|
||||
LclIntf, StrUtils, fpsUtils;
|
||||
|
||||
{$R *.lfm}
|
||||
|
||||
|
@ -3703,8 +3703,7 @@ begin
|
||||
{ Now compress the files }
|
||||
FZip := TZipper.Create;
|
||||
try
|
||||
// FZip.FileName := '__temp__.tmp';
|
||||
|
||||
FZip.FileName := GetTempFilename; // needed if the zipped file is too big for in-memory processing
|
||||
FZip.Entries.AddFileEntry(FSMeta, OPENDOC_PATH_META);
|
||||
FZip.Entries.AddFileEntry(FSSettings, OPENDOC_PATH_SETTINGS);
|
||||
FZip.Entries.AddFileEntry(FSStyles, OPENDOC_PATH_STYLES);
|
||||
|
@ -3600,7 +3600,7 @@ begin
|
||||
{ Now compress the files }
|
||||
FZip := TZipper.Create;
|
||||
try
|
||||
// FZip.FileName := '__temp__.tmp';
|
||||
FZip.FileName := GetTempFilename; // needed if the zipped file is too big for in-memory processing
|
||||
FZip.Entries.AddFileEntry(FSContentTypes, OOXML_PATH_TYPES);
|
||||
FZip.Entries.AddFileEntry(FSRelsRels, OOXML_PATH_RELS_RELS);
|
||||
FZip.Entries.AddFileEntry(FSWorkbookRels, OOXML_PATH_XL_RELS_RELS);
|
||||
|
Reference in New Issue
Block a user