Link to home
Start Free TrialLog in
Avatar of srobia
srobia

asked on

Printing an ASP page to client print

What I would like to do is to have a link that will pop up the windows print dialog (or something like it) which gives the visitor a choice of print 1 page, x-y pages, or all pages of a report.  Then I would like to make the report printer friendly.  Is this possible and how?
Avatar of srobia
srobia

ASKER

Oh yeah I forgot to add in that it will be in an Intranet running Windows.
Define 'printer friendly' ;-)

The best you can do is reformat the information into a table no more than 600 px wide, black text/white background, no animations, no layers, no dropdown/form elements, nothing fancy AT ALL.

You can use a javascript print button to bring up the print dialog box, but you have really no control over how many pages print, headers/footers, backgrounds, etc.

Since you're on an intranet and you know pretty much how things are set up, it would be possible to write a fancy ActiveX control that might let you have more control -- but it might be more work than necessary.
Avatar of Mark Franz
windows.print() will popup the print dialog box.
Avatar of srobia

ASKER

i guess what I would like to do is to have the page displayed into the table and then the body of the page to call windows.print().  will this work?
ASKER CERTIFIED SOLUTION
Avatar of Mark Franz
Mark Franz
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial