ALAppExtensions icon indicating copy to clipboard operation
ALAppExtensions copied to clipboard

Codeunit "Server Config. Setting Handler" - method GetIsSaasExcelAddinEnabled currently not implemented in the AL version.

Open RedFoxUA opened this issue 8 years ago • 1 comments

Hi. I wanted to use the function "export to Excel" as we can see in the Payment Journal, but I received: codeunit "Server Config. Setting Handler" - method GetIsSaasExcelAddinEnabled currently not implemented in the AL version. Same issue with "method" ExcelBuf.CreateBookAndOpenExcel. It is good to have this possibility when we develop Extension.

P.S. How can use functionality in current AL-solution?

RedFoxUA avatar Oct 31 '18 23:10 RedFoxUA

Thank you for your request. Procedure GetIsSaasExcelAddinEnabled will be external in the next release.

Regarding CreateBookAndOpenExcel. This procedure calls CreateBook with a file path as a parameter, which is considered unsafe if running in a cloud. Our suggested solution is to use CreateNewBook instead (which creates temp file). So you will have procedure

CreateNewBookAndOpenExcel(SheetName : Text[250];ReportHeader : Text;CompanyName2 : Text;UserID2 : Text) CreateNewBook(SheetName); WriteSheet(ReportHeader,CompanyName2,UserID2); CloseBook; OpenExcel;

IhorHandziuk avatar Nov 14 '18 12:11 IhorHandziuk