Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default 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 the
<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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,588
Default 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-" wrote in message
...
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 the
<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
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
how do I convert a non exel tabulation to exel dte123 New Users to Excel 2 June 30th 06 02:31 AM
Population Chart with 1 dataset minguier Excel Discussion (Misc queries) 1 June 20th 06 01:01 PM
Office XP Exel - files sharing issue/question mikebach Excel Discussion (Misc queries) 0 December 14th 05 07:36 PM
creating a new dataset brian kaufmann Excel Programming 0 August 16th 04 08:47 PM
two dataset comparison Scoomie Excel Programming 1 June 19th 04 07:47 PM


All times are GMT +1. The time now is 10:32 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"