exoffice icon indicating copy to clipboard operation
exoffice copied to clipboard

Skip some (number) columns

Open demoj1 opened this issue 6 years ago • 6 comments

Parser skips some columns in the file. Presumably these are columns with only numbers. Example content file:

Компания ID ФИО Е-мейл ИНН Телефон
Наименование компании 1 123 Отдел продаж *@mail.ru 123456789 123456789
Наименование компании 2   Отдел продаж *@mail.ru    
Наименование компании 3   Отдел продаж *@mail.ru    
Наименование компании 4   Отдел продаж [email protected]    

Output after parsing:

iex(4)> {:ok, pid, parser} = Exoffice.parse("./test/test_data/template.xls", 0)
{:ok, #Reference<0.1040318736.556138510.157986>, Exoffice.Parser.Excel2003}
iex(5)> Exoffice.get_rows(pid, parser) |> Enum.to_list()                       
[
  ["Компания", "ID", "ФИО", "Е-мейл", "ИНН",
   "Телефон"],
  ["Наименование компании 1", nil,
   "Отдел продаж", "*@mail.ru"],
  ["Наименование компании 2", nil,
   "Отдел продаж", "*@mail.ru"],
  ["Наименование компании 3", nil,
   "Отдел продаж", "*@mail.ru"]
]

Columns ID, ИНН, Телефон skipped

File for reproduce it: https://yadi.sk/i/ZHR9wKq7AW5Aig

demoj1 avatar Aug 16 '19 05:08 demoj1

@dmitrydprog thank you for your ticket, unfortunately i can't download the example file since that domain is not available from my country, please upload it to different storage (e.g. dropbox)

AlexKovalevych avatar Aug 18 '19 19:08 AlexKovalevych

@AlexKovalevych there you go https://www.dropbox.com/s/xwdfh97uwe6w4yj/template.xls?dl=0

rockneurotiko avatar Aug 20 '19 06:08 rockneurotiko

Facing the same issue @AlexKovalevych do you have any updates on this matter?

babrovka avatar May 21 '20 11:05 babrovka

Well, i could reproduce it recently, but it doesn't look like a quick fix (unless you're very familiar with parsing algorithm). So i need to check the whole parsing process to understand the problem here, can't promise it will be resolved soon, but i'll try to figure it out.

AlexKovalevych avatar May 21 '20 11:05 AlexKovalevych

thanks for prompt reply! Is there any workarounds?

babrovka avatar May 21 '20 11:05 babrovka

Hey! Are there any updates on this?

alex-strizhakov avatar Jul 20 '21 09:07 alex-strizhakov