CreateBookAndOpenExcel function in DBC 365

rnjbngrnjbng Member Posts: 82
Hi Folks -

The function CreateBookAndOpenExcel is not supported in Extension development. Does anyone know any alternative solution for this issue. Many Thanks for your help.

local procedure CreateExcelbook();
begin
ExcelBuf.CreateBookAndOpenExcel('',Text012,'',COMPANYNAME,USERID);
ERROR('');
end;

ERROR
The type or method 'CreateBookAndOpenExcel' cannot be used for 'Extension' development.

Thanks
RJ.

Comments

  • bineshbinesh Member Posts: 2
    //Create a Procedure CreateExcelBook()

    //In this function again call the standard functions from table 370 as shown below.

    local procedure CreateExcelBook()
    begin
    TempExcelBuffer.CreateNewBook('Customers');
    TempExcelBuffer.WriteSheet('Customers', CompanyName(), UserId());
    TempExcelBuffer.CloseBook();
    TempExcelBuffer.OpenExcel();
    end;

    //Note: for full code see in the bottom i have attached a report for exporting.
    Screenshot taken from mobile so please zoom In for better view.
    akpda5k8vtdv.jpg
    ______________________________
    Kindly tick on Verified Answer if you satisfied with my conclusion.
    Thanks & Best Regards
    Binesh Singh Rajput
    (MCTS, MS, MCP)
  • rnjbngrnjbng Member Posts: 82
    Many Thanks Binesh, this is very helpful.
Sign In or Register to comment.