+ Reply to Thread
Results 1 to 2 of 2

dataset to exel issue

  1. #1
    -nk-
    Guest

    dataset to exel issue

    Hi,
    I am transforming a dataset to excel by converting the dataset xml to
    html (using xslt) and then opening the html file using the Excel objects and
    saving th file. The problem I am having is that data fromthe dataset that
    contains multiple spaces (whitespace) in the text is getting truncated to a
    single space in the excel file. I looked at the intermediate html file and
    the space exists there:
    <TD border="1" valign="top" xml:space="preserve">
    <font size="1">
    Respondent 1
    </font>
    Bur when I open the excel file it reduces the multiple spaces to a single
    space between the word Respondent and 1. I need to preserve the wihtespace in
    the excel file. Any help would be appreciated. Thanks.

    nk


  2. #2
    Tim Williams
    Guest

    Re: dataset to exel issue

    n,

    HTML does not preserve runs of spaces - they will be compressed to a
    single space even if they appear in the source.

    Try replacing your spaces with "&nbsp;"

    Tim.


    "-nk-" <[email protected]> wrote in message
    news:[email protected]...
    > Hi,
    > I am transforming a dataset to excel by converting the dataset xml
    > to
    > html (using xslt) and then opening the html file using the Excel
    > objects and
    > saving th file. The problem I am having is that data fromthe dataset
    > that
    > contains multiple spaces (whitespace) in the text is getting
    > truncated to a
    > single space in the excel file. I looked at the intermediate html
    > file and
    > the space exists there:
    > <TD border="1" valign="top" xml:space="preserve">
    > <font size="1">
    > Respondent 1
    > </font>
    > Bur when I open the excel file it reduces the multiple spaces to a
    > single
    > space between the word Respondent and 1. I need to preserve the
    > wihtespace in
    > the excel file. Any help would be appreciated. Thanks.
    >
    > nk
    >




+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1