Re: From Browser to Print - ?????

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxx> wrote in message 
news:BHEFKIOIMEDGILGDACKDAECHFEAA.list@xxxxxxxxxxx
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@xxxxxxxxxxxxx]På; vegne af MikeA
> Sendt: 28. januar 2005 04:24
> Til: php-windows@xxxxxxxxxxxxx
> Emne:  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

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux