Click here to Skip to main content
14,875,113 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have a html form generated, as webpage, how do i print the whole page, fitting it to the A4 size paper.

or if possible to print it to the pdf file....
Posted

1 solution

Using JavaScript, you can print HTML page as:
JavaScript
<A HREF="javascript:window.print()">
<IMG SRC="print_image.gif" BORDER="0"</A>


On clicking this image, the application launched the print dialog box.
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900