I'm writing a web application which needs to bring the stored paragraphs into the front web. The text come from excel work sheet and contains control characters like indent. I want to show the text in the exactly manner as it was in excel. How can I do that then? Thanks in advance.
Asked
Active
Viewed 115 times
2
-
2You'll have a hard time converting Office formatting into HTML/CSS, be prepared – Rubens Farias Feb 02 '10 at 08:22
3 Answers
0
Without seeing your text to begin with, my initial suggestion would be to wrap it in pre-formatted tags. Note that this won't work for formatting like italics, underlines, etc. Merely white-space:
<pre>
Anything within these tags will
maintain its original formatting. Spaces, new lines, and all.
</pre>

Sampson
- 265,109
- 74
- 539
- 565
0
It would be easier for you to save your excel file as web page into new file and use the html of this new file in your application.

Ravi Vanapalli
- 9,805
- 3
- 33
- 43