How to prevent `ssconvert` recalculating Excel fil

2019-09-06 10:34发布

问题:

I am trying to convert the .xlsx file http://www.eia.gov/forecasts/steo/archives/mar14_base.xlsx into a .csv, but it seems that the .xlsx contains formulae that link to a local file that I don't have (the creator of the file must have forgotten to paste as values instead of as formula) so each time I use ssconvert it tries to recalculate the formula, which fails hence I can't get the data:

ssconvert --export-type=Gnumeric_stf:stf_assistant  -O "locale=C
format=automatic separator=, eol=unix sheet='3atab'" "STEO_m.xlsx"
"text.csv"

triggers the following message: (and the values inside the .csv are missing)

(/usr/bin/ssconvert:14771): GLib-GObject-WARNING **: g_object_set_valist: object class 'SheetObjectImage' has no property named `style' '7etab'!BM7 :
'VLOOKUP($A7,[1]oracle_allbbb!$2:$89130,Dates!BM$12+1,FALSE)' Invalid expression

I have seen that there is also a --recalc argument in your ssconvert function but actually I want to do the opposite!

ssconvert --recalc=FALSE --export-type=Gnumeric_stf:stf_assistant -O "locale=C format=automatic separator=, eol=unix sheet='3atab'" "STEO_m.xlsx" "text.csv"

Is there any piece of advice you could give me to find a solution here?

回答1:

Apparently it was a bug. It is fixed here.