Giter Site home page Giter Site logo

zertovitch / excel-writer Goto Github PK

View Code? Open in Web Editor NEW
7.0 7.0 0.0 465 KB

Excel Writer: a standalone, portable Ada package for producing Excel spreadsheets

Home Page: https://excel-writer.sourceforge.io/

Batchfile 0.57% Ada 84.79% Perl 14.64%
ada ada-language ada-library excel excel-writer excelwriter spreadsheet

excel-writer's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

excel-writer's Issues

Display results, not formulas

I use excel-writer to produce BIFF2 (or BIFF 3 or BIFF 4) documents which I open with Libreoffice Calc and MS Excel 2013

Currently the formulas are displayed.
This is already very good.

I want the results of the formulas to be displayed.

page 216 - 217
https://www.openoffice.org/sc/excelfileformat.pdf

Record WINDOW2, BIFF 2:
0 = Show formula results 1 = Show formulas

Record WINDOW2, BIFF 3-BIFF 5:
0 = Show formula results 1 = Show formulas
Bits 0 Mask= 0001 0 = Show formula results 1 = Show formulas

In

procedure Write_Window2 is
    begin
      --  5.110 WINDOW2
      case xl.format is
        when BIFF2 =>
          WriteBiff (xl, 16#003E#,
            (0, -- Display formulas, not results
             1, -- Show grid lines
             1, -- Show sheet headers
             Boolean'Pos (xl.frz_panes),
             1  -- Show zero values as zeros, not empty cells
            )
             &
            Intel_16 (0) & -- First visible row
            Intel_16 (0) & -- First visible column
            (1, -- Use automatic grid line colour
             0, 0, 0, 0) -- Grid line RGB colour
          );
        when BIFF3 | BIFF4 =>  --  NB: more options in BIFF8
          WriteBiff (xl, 16#023E#,
            --  http://msdn.microsoft.com/en-us/library/dd947893(v=office.12).aspx
            Intel_16 (   -- Option flags:
              0 *   1 + -- Display formulas, not results
              1 *   2 + -- Show grid lines
              1 *   4 + -- Show sheet headers
              Boolean'Pos (xl.frz_panes)
                *   8 + -- Panes are frozen
              1 *  16 + -- Show zero values as zeros, not empty cells
              1 *  32 + -- Gridlines of the window drawn in the default window foreground color
              0 *  64 + -- Right-to-left mode
              1 * 128 + -- Show outlines (guts ?!)
              0 * 256   -- Frozen, not split
            ) &
            Intel_16 (0) & -- First visible row
            Intel_16 (0) & -- First visible column
            Intel_32 (0)   -- Grid line colour
          );
      end case;
    end Write_Window2;

i try

          WriteBiff (xl, 16#003E#,
            (1, -- Display formulas, not results

I don't get the expected result no (in LibreOffice or MS Excel 2013).
It may be a problem with LibreOffice (which would read BIFF 2 differently than openoffice ?) ...

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.