|
|
|||||||||
|
|||||||||
|
|||||||||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Ajax Application Generator Generate database and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
|
|
#1
|
|||
|
|||
|
Invoking a Print Job
I am trying to figure a way so that when a user submits a particular form, the results get printed automatically.
I realize on a *nix machine I can command line PHP it out to lp but what about windows? Also this is only going to be used on 1 central machine, I just don't know if it is going to *nix or win32 :/ TIA
__________________
-- Jason |
|
#2
|
|||
|
|||
|
This is a web form? Use whatever server-side scripting language you use to print out the print javascript to the client at the end of your form-handling routine.
In PHP: PHP Code:
In ASP: Code:
<%
' handle form
Response.Write("<" & "scr" & "ipt" & ">")
Response.Write("window.print();")
Response.Write("</" & "scr" & "ipt" & ">")
%>
|
|
#3
|
|||
|
|||
|
Thank you numbernine
![]() btw,....all that ASP code to print the page? diiiiaamn,...I am sticking to PHP ![]() Thanks again |
![]() |
| Viewing: Dev Articles Community Forums > Programming > JavaScript Development > Invoking a Print Job |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|