CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> ASP

 CSS2 Print Media

Print topic Send  topic

Author Message
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!!!!!!!
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.