CodeCharge Studio
search Register Login  

Web Reporting

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

YesSoftware Forums -> CodeCharge Studio -> General/Other

 Document - Auto Print

Print topic Send  topic

Author Message
Si Cranmer
Posted: 02/26/2005, 2:11 AM

I am creating an intranet application. The client would like several documents to automatically print on completion of a page. Can anyone point me in the direction (or know of the commands needed) of documentation to send data directly to a printer.

Situation is PHP, Apache on Win2K or WinXp PC with several machines accessing the PC over a P2P network. I was thinking of having the printer/queue name being entered previously within the system setup, "shelling out" to windows creating/identifying word docs and sending the to the printer queue.

I do this elsewhere in *nix with direct lp -p.... command

Any ideas please.

TA

Si.
peterr


Posts: 5971
Posted: 02/26/2005, 12:32 PM

Do you want to print Web pages or some other documents?
To a printer that is connected to a user's computer (which may not be possible), or to the server?
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message
Si Cranmer
Posted: 02/27/2005, 12:23 AM

Sorry that bit was vague. Its to the server side printers. It should not mater what the print is since I was planning to capture data/pages write them out to a text/doc file and then send that to a printer.

Si.

PS I did not think you could auto print on the client side even if you did know the printer name since windows always throws up the printer selection box.
Triffid

Posts: 6
Posted: 02/27/2005, 7:16 AM

Not sure if you checked it already, but have a look at http://nl3.php.net/manual/en/ref.printer.php

PHP Printer queue etc.
View profile  Send private message
peterr


Posts: 5971
Posted: 02/27/2005, 12:05 PM

So you probably just need to execute some Windows/shell command from your program. Possibly these would be useful:
http://nl3.php.net/manual/en/function.shell-exec.php
http://msdn.microsoft.com/library/default.asp?url=/libr...mming/print.asp
http://support.microsoft.com/Default.aspx?kbid=314499
http://www.google.com/search?hl=en&lr=&q=print+printer+...line%22+windows
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message
Tuong Do
Posted: 02/27/2005, 2:28 PM

If you can create PDF then you can use Active PDF Spooler to print your Pdf
document to any (server side) Network Printer

Active PDF is good for ASP but with PHP you can use the Hot folder priting
option.

Ie Saving your PDF file to a Hot Folder, Active PDF spooler will take care
of it from there.

<SiCranmer@forum.codecharge (Si Cranmer)> wrote in message
news:242204b6149d22@news.codecharge.com...
>I am creating an intranet application. The client would like several
>documents
> to automatically print on completion of a page. Can anyone point me in the
> direction (or know of the commands needed) of documentation to send data
> directly to a printer.
>
> Situation is PHP, Apache on Win2K or WinXp PC with several machines
> accessing
> the PC over a P2P network. I was thinking of having the printer/queue
> name
> being entered previously within the system setup, "shelling out" to
> windows
> creating/identifying word docs and sending the to the printer queue.
>
> I do this elsewhere in *nix with direct lp -p.... command
>
> Any ideas please.
>
> TA
>
> Si.
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>


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.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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