views:

57

answers:

4

Hi all,

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.

A: 

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>
Jonathan Sampson
A: 

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.

Ravia
Yes, the former solution we use is export the sheet into a html page.
Roy
A: 

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

Pontus Gagge
A: 

thats easy to say. Cant someone just explain in plan=in terms how to display paragraph in the database or even line breaks in a datanabe on a webpage. All of them appear just on a single line. All muffled up.

safiriyu Israel