How to prevent `ssconvert` recalculating Excel file before conversion?

孤街醉人 提交于 2019-12-12 06:31:24

问题


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.



来源:https://stackoverflow.com/questions/22344918/how-to-prevent-ssconvert-recalculating-excel-file-before-conversion

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!