Re: Client/Server Printing

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

 



2009/1/20 Paul M Foster <paulf@xxxxxxxxxxxxxxxxx>

> I'd like a side check on what I'm doing to print on our internal
> network.
>
> We have an internal server/site which uses PHP code I've written to
> "run" the business-- invoicing, A/P, inventory, etc. Some things, like
> invoices and reports, need to be printed. Now remember, the code is on
> the server, and we access it from our client machines on our desks. When
> we print, we do so to our local printers, attached to the client
> machines.
>
> So the best way I could think of to making printing work was to generate
> PDFs of whatever needs to be printed, dump the PDF on the server, and
> provide a link to the PDF on the web page. The user clicks on the
> generated PDF, and his/her browser opens up Acrobat or xpdf, and prints
> from that application to their local machine.
>
> Is that a reasonable way to implement this? Any better ideas?
>
> Paul
>
> --
> Paul M. Foster
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
You can use CSS for print media, and write the a different style sheet  for
the pages you want to print. You will have a page displayed with one  A.css
and you can have the browser automatically use B.css when print is
requested. No extra coding needed just the second css witch you link in the
header section of your html. The user only hits ctrl + P. You maight want to
place a note, that hey can print directly, and that, the print version will
look nice, they would probably expect it to print as is.

-- 
Torok, Alpar Istvan

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux