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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Printing Multiline textboxes

Status
Not open for further replies.

redaccess

MIS
Aug 2, 2001
110
0
0
US
Is there a way to expand a multiline textbox to show all data when printing? Right now if there is any data entered in beyond the visible amount of rows, that data won't appear when printing.

Thanks.
 
If yoiu are just doing a printscreen, then no there is no way to make a textbox bigger on the fly. the easiest way would be to have another page a "Printer Friendly" version that uses labels or some other way to display the data

hope that helps

bassguy
 
There may be a way (if you can do some DHTML) -
Use a javascript function to handle the print event, capture the character count in the TextArea's value, set the TextArea's Columns property to the maximum that will fit on a page, and set the Rows property to accomodate the character count. Then send the print command.

Just an idea
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top