You've already forked lazarus-ccr
fpspreadsheet: Call Flush() at the end of TsWorksheetDataset.CopyFromDataset to make sure that the output file is written.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8687 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -432,7 +432,7 @@ begin
|
||||
with PsBlobData(buffer)^ do
|
||||
Write(Data[0], Length(Data)); // Writes the data into the stream
|
||||
Position := 0;
|
||||
SaveToFile('test.txt');
|
||||
// SaveToFile('test.txt');
|
||||
end;
|
||||
Position := 0;
|
||||
end;
|
||||
@ -718,7 +718,7 @@ var
|
||||
stream: TMemoryStream;
|
||||
bm: TBookmark;
|
||||
codepageStr: String;
|
||||
s: RawByteString;
|
||||
s: RawByteString = '';
|
||||
sUTF8: UTF8String;
|
||||
begin
|
||||
if Active then
|
||||
@ -816,6 +816,7 @@ begin
|
||||
end;
|
||||
inc(FAutoIncValue);
|
||||
FModified := true;
|
||||
Flush;
|
||||
finally
|
||||
stream.Free;
|
||||
ADataset.GotoBookmark(bm);
|
||||
|
Reference in New Issue
Block a user