robinl1 Absent Member.
Absent Member.
2393 views

Automated printing from web application

We're in the process of building a web application that eventually will have to print PDF documents at a remote location at set times each day.
Ideally we would simply set up a (cron) job that accesses the iprint server in some way to get the necessary PDF documents printed.

Our web application is written using PHP, but rather than opening a connection to the iprint server and having to plough through the IPP protocol, we would like to keep it as simple as possible.

Are there any cunning minds out there who have encountered this problem before and come up with a solution?
0 Likes
1 Reply
Anonymous_User Absent Member.
Absent Member.

Re: Automated printing from web application

I don't think your issue really isn't an iprint one. iprint doesn't deal
with PDFs, and I don't think its possible to 'deploy' a PDF printer using
iPrint (brought up in other topics in this forum too).

However, you should still be able to automate this. If your app creates a
regular web page that you can print, you can call a cron job/scheduled
windows action to call a script that will automatically print your page.

I found this with about 10 seconds of googling:

On Error Resume Next


Const OLECMDID_PRINT = 6
Const OLECMDEXECOPT_DONTPROMPTUSER = 2
Const PRINT_WAITFORCOMPLETION = 2

Dim oIExplorer : Set oIExplorer =
CreateObject("InternetExplorer.Application")
oIExplorer.Navigate "http://google.com"
oIExplorer.Visible = 1

Do while oIExplorer.ReadyState <> 4
wscript.sleep 1000
Loop

oIExplorer.ExecWB OLECMDID_PRINT, OLECMDEXECOPT_DONTPROMPTUSER

-


point it to your php page that generates what you want to print, and set the
default printer on your machine you want to run this from to the printer you
want to send it to (iprint printer or otherwise).


>>> On 10/13/200



8 at 3:36 AM, in message
<robinl.3h7t5z@no-mx.forums.novell.com>,
robinl<robinl@no-mx.forums.novell.com> wrote:
> We're in the process of building a web application that eventually
> willhave to print PDF documents at a remote location at set times each
> day.
> Ideally we would simply set up a (cron) job that accesses the
> iprintserver in some way to get the necessary PDF documents printed.
>
> Our web application is written using PHP, but rather than opening
> aconnection to the iprint server and having to plough through the
> IPPprotocol, we would like to keep it as simple as possible.
>
> Are there any cunning minds out there who have encountered this
> problembefore and come up with a solution?--

robinl----------------------------------------------------------------------
--robinl's Profile:
> http://forums.novell.com/member.php?userid=34082View this thread:
> http://forums.novell.com/showthread.php?t=347109

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.