2

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.

Roy
  • 2,313
  • 6
  • 37
  • 46

3 Answers3

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
0

You might want to check out RTF-to-HTML conversion.

Community
  • 1
  • 1
Pontus Gagge
  • 17,166
  • 1
  • 38
  • 51