Excel Without Excel Buffer

tabularasatabularasa Member Posts: 22
Does anyone know how to create Excel File with multiple sheets and basic to advanced formatting, without using Excel Buffer with or without excel buffer add ons.

Answers

  • Slawek_GuzekSlawek_Guzek Member Posts: 1,690
    You have a few options: I am aware of two .NET libraries capable of writing files in Excel format directly: OpenXML by Microsoft, and ClosedXML - an OpenXML "wrapper", build to make manipulations easier. The third option is to use Excel directly, start the process on the client and 'talk' to it using .NET excel interop library, or old style Excel automation object.

    How exactly - look into the Excel Buffer table code and steal some ideas from there, if you don't want to use built-in solution.
    Slawek Guzek
    Dynamics NAV, MS SQL Server, Wherescape RED;
    PRINCE2 Practitioner - License GR657010572SG
    GDPR Certified Data Protection Officer - PECB License DPCDPO1025070-2018-03
  • RockWithNAVRockWithNAV Member Posts: 1,139
    Automation is way more faster then Excel Buffer.
  • tabularasatabularasa Member Posts: 22
    I was able to create multiple tabs and all data without using the excel buffer. The problem is in formatting. That´s were I gave up for now. We are solving this for now by creating the excel sheet and linking it from there to NAV.
Sign In or Register to comment.