Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

textarea overflow - when output to word

Status
Not open for further replies.

rasql

Programmer
Oct 7, 2003
1
GB
I've created an online application form utilising asp pages and incorporating various controls including textareas. The candidate completes the form and submits the data to our database. On our side someone can then view a list of candidates and retrieve their details from the database in the same form format that it was sent. The user then has the option to amend the details or open into a word document for printing. (code below is appended at the top of your page to output to word)

<%Response.ContentType=&quot;application/vnd.ms-word&quot; Response.Addheader &quot;Content-Disposition&quot;, &quot;attachment; filename=Word.doc&quot; Response.Buffer=true%>

My problem is that when viewed in word, one can see all information in the textareas correctly. However when you then print the document, on the hard copy you cannot view the characters under the scrollbars of the textarea. (Not 100% proffesional when passing these documents on to your directors as it seems like some words are missing).

I have tried to remove the scrollbars, this works in html but not when the page is output to word.
<TEXTAREA style=&quot;overflow: hidden&quot;>

I have also tried to pad the cells, this works in html but not when the page is output to word.
<TEXTAREA style=&quot;padding-right : 10px;&quot;>

I could rewrite the output method, but seems like a lot of work for an apparently small problem.

Would rewriting this in ASP.NET solve my problems, as I'm sure they've fixed the incongruities of the textarea control. Any ideas would be much appreciated.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top