G
G
GSnick2015-06-26 18:20:39
Python
GSnick, 2015-06-26 18:20:39

How to count formatting inside xls[x] cell?

I have xls[x] file, I read it using xlrd library. Everything is fine, but formatting disappears, specifically, if some words are in bold, then information about this is lost.
Those. there is a cell with the sentence: Something bold in the cell.
Which I need to send in json to a web form, but with the formatting the same as in the original. But after reading, I get just: Something bold in the cell.
Is it possible to get the position of the word in bold when reading xls[x]?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
B
bobrovskyserg, 2015-06-26
@bobrovskyserg

Is it possible to get the position of the word in bold when reading xls[x]?
And if several spaced words are selected ? You need to dig, imho, into the RTF format - the Excel cell definitely knows how to give it away.

S
sim3x, 2015-06-26
@sim3x

xlrd - xlwt - never
try to look at man https://xlsxwriter.readthedocs.org/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question