Make Excel allow numeric fields as text - XML SOAP

This is a discussion on Make Excel allow numeric fields as text - XML SOAP ; I am generating XML spreadsheets to be opened with Excel. In one cell there is an employee ID number that is often, but not always, wholly numeric. I am coding it as <Cell><Data ss:Type="String">01234567</Data></Cell> and Excel complains that a number ...

+ Reply to Thread
Results 1 to 2 of 2

Make Excel allow numeric fields as text

  1. Default Make Excel allow numeric fields as text

    I am generating XML spreadsheets to be opened with Excel. In one cell there
    is an employee ID number that is often, but not always, wholly numeric. I
    am coding it as

    <Cell><Data ss:Type="String">01234567</Data></Cell>

    and Excel complains that a number is represented as text.

    I know the Excel user can turn off this error check, but is there a way I
    can handle it at the XML level?


    Many thanks!





  2. Default RE: Make Excel allow numeric fields as text


    > I am generating XML spreadsheets to be opened with Excel. In one cell there
    > is an employee ID number that is often, but not always, wholly numeric. I
    > am coding it as
    >
    > <Cell><Data ss:Type="String">01234567</Data></Cell>
    >
    > and Excel complains that a number is represented as text.
    >
    > I know the Excel user can turn off this error check, but is there a way I
    > can handle it at the XML level?
    >
    >
    > Many thanks!
    >
    >
    >


    for numeric types set ss:Type on Data = "Number"

    for datetimes set ss:Type = "DateTime" but the format of the text has to be like "2007-12-31T18:45:32.000".

    you may need to look at ss:Style attribute (also on the Data node) for presentation.

    since documentation on this seems sparce it usually helps if you can do what ever you want to see in a spreadsheet, then save it as XML Spreadsheet. If you open that XML in Note pad, you can usually figure out what you need to do in your XML.



    BizTalk Utilities - Frustration free BizTalk Adapters
    http://www.topxml.com/biztalkutilities

+ Reply to Thread

Similar Threads

  1. Convert Numeric to Text Fields, Help!!!
    By Application Development in forum ADO DAO RDO RDS
    Replies: 1
    Last Post: 09-26-2007, 01:10 PM
  2. ** In Numeric fields
    By Application Development in forum Clipper
    Replies: 6
    Last Post: 05-29-2007, 09:12 AM
  3. Re: DataGridViewComboBoxes for numeric fields
    By Application Development in forum DOTNET
    Replies: 0
    Last Post: 05-14-2007, 04:00 PM
  4. Query numeric custom fields
    By Application Development in forum Inetserver
    Replies: 2
    Last Post: 09-22-2004, 06:46 AM
  5. How to validate user input in text, numeric and date fields in VB6?
    By Application Development in forum basic.visual
    Replies: 1
    Last Post: 08-23-2004, 08:07 AM