web print

O

olivelovelive

hi gays
first to this grpup! what do you always use in your web projoct when
you want to print the ?net page?
Crystal Report? active report?or other tool ? no professional web print
software?I am puzzled for a long time
help me !!
 
L

Lau Lei Cheong

Unless you have 3rd-party ActiveX component installed on client-side, the
only way you have is "window.print()".

I'll usually prepare an HTML popup with "printer friendly" CSS properties
set then use "window.print()" there. So far the result is satisfactory as
long as the client defaults their printers to A4 paper.
 
N

Nathan Sokalski

Well, this is probably a solution that you have already thought of, but I
usually just create a button that changes several of the CSS properties so
that the page fits on a standard-size sheet of paper and adds JavaScript's
window.print(); to the body tag's onLoad event. Yes, there probably is some
kind of print software that can be used to do stuff like this automatically,
but it is probably more expensive than it's worth, and I am going to guess
that it is probably something that the user must be downloaded separately
(such as an ActiveX control). Whatever it is, I would not recommend buying
it for several reasons:

1. More expensive than it's worth
2. Using a little extra CSS and JavaScript you can make something that most
people will be satisfied with
3. A feature of IE7 is printing, which will allow the user to do stuff such
as scale the page to the width of a piece of paper, as well as other
options. I don't know which things will be able to be done programmatically,
but from what I've read it won't be a hard or repetitive process for the
user

I haven't looked into it (I confess, I haven't had my degree very long), but
I think that there is some way to automatically generate Adobe Acrobat PDF
files that the user can download, which depending on what content will be on
the pages you are planning on having the user print may be the best choice.
These are some thoughts, perhaps someone who has more experience working on
an actual company's site can give you some more ideas. Good Luck!
 
H

hwx2006

hi, I think window.print() and css is a good point.
But is there anybody can help to how to built a preview page before
printing?
Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top