Re: From Browser to Print - ?????
| From: | MikeA | Date: | Mon, 31 Jan 2005 03:54:28 +0000 |
| Subject: | Re: From Browser to Print - ????? | ||
| References: | 1 2 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-25488@lists.php.net to get a copy of this message | ||
I still cannot get this to work. Here is my style settings:
echo "<HTML><HEAD><TITLE> </TITLE>";
echo "<style TYPE='text/css'>";
echo " ";
echo "@media screen";
echo " { ";
echo " ";
echo " } ";
echo " ";
echo "@media print";
echo " { ";
echo "H6 { page-break-after:always; }";
echo " } ";
echo " ";
echo "@media screen,print";
echo " { ";
echo "H6 { page-break-after: always; }";
echo " } ";
echo " ";
echo "</style>";
And here is the setting in the report:
echo "<H6> </H6>";
Do you see anything that stands out as incorrect?
Any ideas, help, suggestions, prayers are appreciated. Need to have this done in 2 days.
Mike
"Carsten Gehling" <list@sarum.dk> wrote in message
news:BHEFKIOIMEDGILGDACKDAECHFEAA.list@sarum.dk...
You can define different style sheets based on the media that the HTML page
is rendered on:
<link rel="stylesheet" type="text/css" media="screen"
href="styles_screen.css">
<link rel="stylesheet" type="text/css" media="print"
href="styles_print.css">
Now use CSS to position your form feed as you like.
Read more here:
http://www.w3.org/TR/REC-CSS2/media.html
- Carsten
> -----Oprindelig meddelelse-----
> Fra: news [mailto:news@sea.gmane.org]På vegne af MikeA
> Sendt: 28. januar 2005 04:24
> Til: php-windows@lists.php.net
> Emne: [PHP-WIN] From Browser to Print - ?????
>
>
> I have some PHP scripts that put output to the browser. I can
> then print them. However, I want to
> have the pages form feed at specific places so the printouts look
> nice. How can I do that?
>
> Thanks.
>
> Mike
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php