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
|
with PsBlobData(buffer)^ do
|
||||||
Write(Data[0], Length(Data)); // Writes the data into the stream
|
Write(Data[0], Length(Data)); // Writes the data into the stream
|
||||||
Position := 0;
|
Position := 0;
|
||||||
SaveToFile('test.txt');
|
// SaveToFile('test.txt');
|
||||||
end;
|
end;
|
||||||
Position := 0;
|
Position := 0;
|
||||||
end;
|
end;
|
||||||
@ -718,7 +718,7 @@ var
|
|||||||
stream: TMemoryStream;
|
stream: TMemoryStream;
|
||||||
bm: TBookmark;
|
bm: TBookmark;
|
||||||
codepageStr: String;
|
codepageStr: String;
|
||||||
s: RawByteString;
|
s: RawByteString = '';
|
||||||
sUTF8: UTF8String;
|
sUTF8: UTF8String;
|
||||||
begin
|
begin
|
||||||
if Active then
|
if Active then
|
||||||
@ -816,6 +816,7 @@ begin
|
|||||||
end;
|
end;
|
||||||
inc(FAutoIncValue);
|
inc(FAutoIncValue);
|
||||||
FModified := true;
|
FModified := true;
|
||||||
|
Flush;
|
||||||
finally
|
finally
|
||||||
stream.Free;
|
stream.Free;
|
||||||
ADataset.GotoBookmark(bm);
|
ADataset.GotoBookmark(bm);
|
||||||
|
Reference in New Issue
Block a user