print with A4 size

admin

Administrator
Staff member
i am doin on a report which will generate a table. but the table is too large and i need to set it to print out with a totally A4 size form. :(

is there a way to use css to do it? any references?for example:

<table>
<tr>
<td> aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa </td>
<td> bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb </td>
<td> cccccccccccccccccccccccccccccccccccc </td>
<td> dddddddddddddddddddddddddddddddddddd </td>
<td> eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee </td>
<td> fffffffffffffffffffffffffffffffffffffffffffffffffffffffff </td>
<td> gggggggggggggggggggggggggggggggggggg </td>
</tr>
<tr>
<td> this is a </td>
<td> this is b </td>
<td> this is c </td>
<td> this is d </td>
<td> this is e </td>
<td> this is f </td>
<td> this is g </td>
</tr>
</table>


the width and height might be too wide for an A4 size. but I want it to be print out with an A4 size.HTML is designed to work on all platforms and as such everything is allowed to "flow" - particularly TABLES. If you need more control then you need to publish a printer-friendly, PDF version.<!-- m --><a class="postlink" href="http://www.w3.org/TR/REC-CSS2/page.html#q1">http://www.w3.org/TR/REC-CSS2/page.html#q1</a><!-- m -->
 
Back
Top