Brian
|
Posted: 01/28/2004, 9:29 AM |
|
Is it possible to use the CSS2 print functions in CCS 2.0?
<STYLE TYPE="text/css" MEDIA="print">
P {font: 10/13pt Times, serif;}
@page {size: landscape;}
</STYLE>
I would like to print a form and automatically define its print options.
(ie. Page Orientation, Font Size etc?)
Thanks in Advance
Brian
|
|
|
Don Safar
|
Posted: 01/28/2004, 7:59 PM |
|
This is how I have used it to control how the print looks. In the head
section of the page put something like below.
<style type="text/css">
<!--
@media print {
.myheader {display: none}
.myfooter {display: none}
.content {
font-family : "Courier New";
width : 100%;
margin: 0 5%;
padding: 0;
border: 0;
float: none !important;
color: black;
background: transparent;
}
.images{visibility : hidden}
A {visibility : hidden}
}
-->
</style>
Then use div tags to define your elements. In my header.html file for
instance I have this
<div class="myheader">
<table width="100%">
<tr>
<td>{HorzMenu}</td>
</tr>
</table>
</div>
Do the same for footer and your main content display area. Per the css
print, "myheader" and "myfooter" will not print and "content" will with the
style that I have included. Hope this helps.
"Brian" <bmaclenn@hotmail.com> wrote in message
news:bv8rh0$3sd$1@news.codecharge.com...
> Is it possible to use the CSS2 print functions in CCS 2.0?
>
> <STYLE TYPE="text/css" MEDIA="print">
> P {font: 10/13pt Times, serif;}
> @page {size: landscape;}
> </STYLE>
>
> I would like to print a form and automatically define its print options.
> (ie. Page Orientation, Font Size etc?)
>
> Thanks in Advance
>
> Brian
>
>
|
|
|
marcwolf
Posts: 361
|
Posted: 01/29/2004, 4:34 AM |
|
Hi..
I've used this ActiveX with success on setting printer orientation etc
http://www.meadroid.com/scriptx/about.asp
The free version will do the orientation and a couple of things more
Its the only thing I have found that will do the above. And I've tried a lot of things using Stylesheets
Dave
_________________
' Coding Coding Coding
Keep Those Keyboards Coding.
Raw Code!!!!!!!
|
|
|
|