How to write data in columns of xls file

  • Автор темы Автор темы nitin2003
  • Дата начала Дата начала

nitin2003

Client
Регистрация
18.09.2012
Сообщения
195
Реакции
11
Баллы
18
Hi,

How can I write my final result in an excel file?
e.g. if I scraped 10 fields from a site, now I want to save these 10 fields as 1 column each in an excel file so that my excel file will have multiple rows with 10 columns?

I tried by writing it to a table and then writing that table to a file but I am stuck at the point where I add a line into a table. What separator do I have to give to make it write in multiple columns?

Thanks
Nitin
 
Standard separator for excel tables should be {-String.Tab-}
 
I think I am making an error here. Whenever I try to write to excel, it doesn't write anything.
I create a 'Write to file' task and wrote {-Variable.Url-}{-String.Tab-}{-Variable.Category-}
But, it didn't write anything in excel. Excel file shows size as 435kb but when I open it, it gives me an error.

Can someone help me with a demo for the same?

Thanks in advance.
 
Ok. now it worked but only with xls file and not xlsx files. so, I believe my format for xlsx file wasn't correct.
 
This should work for xlsx also. If you have problems with it, try using an actual tab from the keyboard in between the variables instead of {-String.Tab-}. I almost always do it that way anyways when working with excel tables.
 
  • Оценить
Реакции: nitin2003
I was just looking into this...

Clint, you rock!
 

Кто просматривает тему: (Всего: 0, Пользователи: 0, Гости: 0)