ALAppExtensions icon indicating copy to clipboard operation
ALAppExtensions copied to clipboard

[Function Expose]DownloadAndOpenExcel

Open DavidRoys opened this issue 8 years ago • 5 comments

Can you please expose DownloadAndOpenExcel on the "Excel Buffer" table? I cannot find any Extension-enabled functions that allow me to download a spreadsheet.

DavidRoys avatar Nov 18 '18 02:11 DavidRoys

I cannot expose DownloadAndOpenExcel, as that implementation uses files, which we'd like to avoid in the cloud. Instead I've backported our latest chages to the Excel Buffer, which amonst others includes a function by the name SaveToStream(VAR ResultStream : OutStream;EraseFileAfterCompletion : Boolean). Using DOWNLOADFROMSTREAM afterwards, you will be able to download your spreadsheet. I hope that works for you! If not, please let me know.

JesperSchulz avatar Dec 03 '18 15:12 JesperSchulz

That sounds perfect. I’ll try it out. Do I just grab the latest insider build to see these changes?

DavidRoys avatar Dec 03 '18 17:12 DavidRoys

Yes you do :) All changes should be in there!

JesperSchulz avatar Dec 06 '18 10:12 JesperSchulz

@JesperSchulz - I'm trying to get this working now and it appears this does not work. Excel Buffer.SaveToStream uses files.

[External] SaveToStream(VAR ResultStream : OutStream;EraseFileAfterCompletion : Boolean)
ExcelFile.OPEN(FileNameServer);
ExcelFile.CREATEINSTREAM(FileStream);
COPYSTREAM(ResultStream,FileStream);
ExcelFile.CLOSE;
IF EraseFileAfterCompletion THEN
  FILE.ERASE(FileNameServer);

Can I reopen this issue? Or maybe there is another way to solve this problem?

DavidRoys avatar Jun 20 '19 03:06 DavidRoys

Hi @JesperSchulz - is there any way to get this re-opened or can you give some indication as to how ExcelBuffer can be downloaded? The SaveToStream and DownloadFromStream combinations suggested do not work because SaveToStream requires a file on the server.

DavidRoys avatar Jul 02 '19 05:07 DavidRoys