procedure CreateTxtFile(FileName: Text) var InStr: InStream; OutStr: OutStream; tmpBlob: Record TempBlob temporary; CR: char; LF: char; begin CR := 13; LF := 10; tmpBlob.Blob.CreateOutStream(OutStr); OutStr.WriteText('First line'+ CR + LF); OutStr.WriteText('Second line'+ CR + LF); OutStr.WriteText('Third line'+ CR + LF); tmpBlob.Blob.CreateInStream(InStr); DownloadFromStream(InStr, '', '', '', FileName); end;
Answers
You must to use DownloadFromStream
Something like this
Regards.
thank you very much.
its working !