Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"

Re^2: Read Excel cell comments?

by pKai (Priest)
on Apr 02, 2007 at 21:38 UTC ( #607928=note: print w/replies, xml ) Need Help??

in reply to Re: Read Excel cell comments?
in thread Read Excel cell comments?

While being bound to Excel 11 (aka 2003) 10 (aka 2002)*) and above might be bearable — depending on your environment and what you need it for —, the more severe problem I found with this approach is the internal optimization Excel performs with empty cells.

Excel will drop <Cell> tags if no "significant" data or format information has to be saved there. Instead the next cell in the output will get an attribute to indicate its column position in the worksheet instead.

Suppose you have a row which looks similar to
data     more data

Then your XMLSS output might look somewhat like:

<Row> <Cell> <Data ss:Type="String">data</Data> </Cell> <Cell ss:Index="3"> <Data ss:Type="String">more data</Data> </Cell> ...

which makes it harder than necessary for my taste to navigate to the cells in search for.

Update: *) I now think XML-Spreadsheet (XMLSS) export was introduced with Excel 10 ->MSDN

Replies are listed 'Best First'.
Re^3: Read Excel cell comments?
by AlwaysLearning (Sexton) on Apr 03, 2007 at 04:02 UTC
    The spreadsheets are coming from someone else... I only have Excel 9/2000 and it seems XML is not one of the output formats... not too interested in giving MS more money for something I don't want to use anyway... Thanks for the warning about the empty cell optimization... I'm sure it is helpful for large, sparse spreadsheets, but at least it looks way better than the contorted HTML Excel 9 produces... although most of the bizarrest stuff is header boiler plate, and much of it can be ignored for my application... but the HTML version also doesn't export comments....

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://607928]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (6)
As of 2021-04-23 08:37 GMT
Find Nodes?
    Voting Booth?

    No recent polls found