PDA

View Full Version : New Print Problem/ printing


jblain11
12-13-2001, 09:31 AM
I am using VBScript and not javascript in this ASP but if anyone can assist.

My ASP is allowing the user to enter text from a textarea. The data is then displayed on another page and submitted to a database. I am using reg expressions therefore not being able to use a table when displaying the text. Everything looks fine and wraps on the displayed page but when I print the displayed page the text is cut off at the end of the line. Is there a remidy for this?
--------------------------------------------------------------------------------

jblain11
12-13-2001, 10:57 AM
I have text being displayed on an ASP using VBScript. When I print the page all the text is being printed but where the text wraps on the webpage it starts a new line on the printed page.

example:

If this is how the text looks on the webpage and because the webpage has more area than the printed page it wraps at a different spot
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
sssssssssssssssssssssssssssssssssssssssssssssssssss

This is how it prints on paper
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxx
ssssssssssssssssssssssssssssssssssssssssssss
ssssss

Dr. Web
12-13-2001, 11:50 AM
you can ALWAYS display the output in tables. Always. Using asp with vbscript to output data is simple.


do your reg.exp work... THEN:


response.write("<table><tr><td>"+ variableName+"</td></tr></table>");