How to capture the formatting styles from an excel spreadsheet?

Last post 11-07-2009 3:45 PM by dotnetmate. 2 replies.

Sort Posts:

  • How to capture the formatting styles from an excel spreadsheet?

    11-05-2009, 10:48 AM
    • Member
      30 point Member
    • dotnetmate
    • Member since 12-12-2007, 11:59 AM
    • Posts 130

    Hi All,

    I am not able to figure out how to capture the formatting styles from an excel spreadsheet in my .net application.

    To explain it, if I have an excel cell in which the text is "This is text", when I read this cell from .net application i should get the formatting options meaning font style, font color, etc., for that cell. I have gone through the Office Interop, but with that I found out that it gets only the property for the entire cell, but not the part of the cell. And the other option I found out is converting xlsx into office open xml, but I am not able to figure out how to parse those xml files.

    Can any one please hetp me out in this issue.

    Thanks All.

  • Re: How to capture the formatting styles from an excel spreadsheet?

    11-06-2009, 6:46 AM
    Answer
    • All-Star
      62,919 point All-Star
    • TATWORTH
    • Member since 02-04-2003, 8:34 AM
    • England
    • Posts 12,300
    • TrustedFriends-MVPs

    There is an alternative - export the sheet containing the cell as HTML and look at the HTML.

    Don't forget to click "Mark as Answer" on the post that helped you.
    This credits that member, earns you a point and marks your thread as Resolved so we will all know you have been helped.
  • Re: How to capture the formatting styles from an excel spreadsheet?

    11-07-2009, 3:45 PM
    • Member
      30 point Member
    • dotnetmate
    • Member since 12-12-2007, 11:59 AM
    • Posts 130

    thank you for the reply, but I am trying to follow the new open office xml format,

    so i wanted to read the xml files the excel file creates in open office xml formats and prase through those files.

    thanks for your reply.


Page 1 of 1 (3 items)