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

Printing in Lanscape 1

Status
Not open for further replies.

sweetleaf

Programmer
Jan 16, 2001
439
CA
Hi everybody!

I need to create reports from a web app. I response.write data to a regular asp page, but the problem is that the users cannot print in Landscape view.

What would u do in my situation?
Thanks, any help is appreciated
 
Silly me, maybe I've lost the plot, but if you are trying to control printing via your ASP and not the operational environment, then an option is:

have a session variable controlling whether print is required or not.
have a default font size request controlled by a session font size.

Default:
Session("Printout")="off"
Session("FontSize")=6

Then when someone clicks your ASP "Print Me" button you re-run the same page with hidden controls

Session("Printout")="on"
Session("FontSize")=1

Each Font Size command within the page can work using Session("FontSize") + or - another number for reasonable control (and the print out will use a small font (getting as much on the paper as possible)

Reset these at the end of your ASP Page so that another re-display will have the correct font sizes shown.

Messy solution eh?
 
thank u NeverFinished(wa cool handle)

thats an approach i never thought of..
 
thank u NeverFinished(way cool handle)

thats an approach i never thought of..
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top