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,263
  • 6
  • 36
  • 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
  • 259,174
  • 73
  • 529
  • 557
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,489
  • 3
  • 30
  • 41
0

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

Community
  • 1
  • 1
Pontus Gagge
  • 16,973
  • 1
  • 37
  • 50