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?
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.
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.
windows.print() will popup the print dialog box.
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER