Re: [CODE4LIB] Silently print (no GUI) in Windows

2012-04-04 Thread Kozlowski,Brendon
Hi Terry,



So as not to waste your time with finding and uploading the code, I want to 
verify that what I'm attempting to do will actually be possible. I have one 
last question I need answered beforehand. Thank you very, very much for your 
offer. If we can move forward and your code might help, I'll definitely let you 
know. Thank you so much.




Brendon Kozlowski
Web Administrator
Saratoga Springs Public Library
49 Henry Street
Saratoga Springs, NY, 12866
[518] 584-7860 x217

Please consider the environment before printing this message.


From: Reese, Terry [terry.re...@oregonstate.edu]
Sent: Tuesday, April 03, 2012 4:40 PM
To: Kozlowski,Brendon
Subject: RE: [CODE4LIB] Silently print (no GUI) in Windows

Brendon,

I was able to Remote Desktop into my machine to look and see how the old print 
tool worked.  So, it might not do exactly what you are looking for -- it’s not 
completely GUI-less in that some applications will quickly flash a light-weight 
GUI, print, then close.

Essentially, in C#, you create a process and pass a windows style of hidden 
(which makes the process GUI-less or I should say, requests that the process be 
GUI-less, but then it’s up to the application to decide if that’s the case or 
not.  Some programs ignore it, some programs don’t.  Word for example will open 
a lite-weight (no addins, print dialog only) version of the application, then 
close.  Other programs like Adobe change behavior based on version.  Foxit 
(another PDF program) seems to honor the gui-less print.

Anyway, I have a small app that allows you to set a folder and then it is 
watched and tries to print content in the folder ever 5 minutes (though you 
could change that number).  Seems to work pretty well for what I had used it 
for in the past, but depending on your need, it might not work for you.

If you’d like to see how it works, let me know.  I can likely move the source 
to github tomorrow when I get back into Corvallis.

--TR

Sent from my Windows 8 PC<http://windows.microsoft.com/consumer-preview>

From: Kozlowski,Brendon
Sent: Tuesday, April 03, 2012 11:49:29 AM
To: CODE4LIB@LISTSERV.ND.EDU
Subject: Re: [CODE4LIB] Silently print (no GUI) in Windows

Not a dumb question at all. In this particular case, the receiving PC that is 
to be storing/printing the documents will be taking jobs from multiple 
networks, buildings, etc by either piping an email account, or downloading via 
a user's upload from a webpage. We already have a solution for catching jobs in 
the print spooler (not ours), but need to automate the sending of the documents 
to the spooler itself.

The only way I've ever sent documents to the spooler was by opening up the full 
application (ex: Microsoft Word), and using the GUI to send the print job. 
Since the PC housing and releasing these files is expected to be un-manned and 
sit in a back room, we just need to be able to silently print the jobs in the 
background. Opening multiple applications over and over again would use up a 
lot of resources, so a silent, no-GUI option would be the best from my very 
little understanding - if it's even possible.



Brendon Kozlowski
Web Administrator
Saratoga Springs Public Library
49 Henry Street
Saratoga Springs, NY, 12866
[518] 584-7860 x217

From: Code for Libraries [CODE4LIB@LISTSERV.ND.EDU] on behalf of Kyle Banerjee 
[baner...@uoregon.edu]
Sent: Tuesday, April 03, 2012 1:25 PM
To: CODE4LIB@LISTSERV.ND.EDU
Subject: Re: [CODE4LIB] Silently print (no GUI) in Windows

At the risk of asking a dumb question, why wouldn't a print server meet
your use case if the print jobs come from elsewhere?

kyle

On Tue, Apr 3, 2012 at 9:15 AM, Kozlowski,Brendon wrote:

> I'm curious to know if anyone has discovered ways of silently printing
> documents from such Windows applications as:
>
>
>
> - Acrobat Reader (current version)
>
> - Microsoft Office 2007 (Word, Excel, Powerpoint, Visio, etc...)
>
> - Windows Picture and Fax Viewer
>
>
>
> I unfortunately haven't had much luck finding any resources on this.
>
>
>
> I'd like to be able to receive documents in a queue like fashion to a
> single PC and simply print them off as they arrive. However, automating the
> loading/exiting of the full-blown application each time, and on-demand,
> seems a little too cumbersome and unnecessary.
>
>
>
> I have not yet decided on whether I'd be scripting it (PHP, AutoIT, batch
> files, VBS, Powershell, etc...) or learning and then writing a .NET
> application. If .NET solutions use the COM object, the scripting becomes a
> potential candidate. Unfortunately I need to know how, or even if, it's
> even possible to do first.
>
>
>
> Thank you for any and all feedback or assistance.
>
>
>
>
> Brendon Kozlowski
> Web Administrato

Re: [CODE4LIB] Silently print (no GUI) in Windows

2012-04-04 Thread Kozlowski,Brendon
Thanks, Mike. That's pretty much what I was looking to know. It seems like it'd 
definitely be software specific then, where each software and/or filetype 
solution would need to be individually identified, solved, and then maintained 
(in case of changes due to updates of software).

I might be able to automate the opening of applications without a GUI using (if 
I go the batch file or script route) CMDOW, I'll just have to run some tests to 
verify that it'd actually be more efficient to do so than not.

Thanks again to you - and to all who have replied, both with code and other 
suggestions!



Brendon Kozlowski
Web Administrator
Saratoga Springs Public Library
49 Henry Street
Saratoga Springs, NY, 12866
[518] 584-7860 x217

Please consider the environment before printing this message.


From: Code for Libraries [CODE4LIB@LISTSERV.ND.EDU] on behalf of Michael 
Beccaria [mbecca...@paulsmiths.edu]
Sent: Wednesday, April 04, 2012 1:57 PM
To: CODE4LIB@LISTSERV.ND.EDU
Subject: Re: [CODE4LIB] Silently print (no GUI) in Windows

Wireless no-device-drive install print solutions usually do this and I think 
Adobe Acrobat full version does this when it converts files from, say, Word to 
PDF. They automate a print job and print to a PDF writer printer. This usually 
requires whatever software that is needed to print be installed on the machine 
(i.e. acrobat, excel, word, etc). You could easily write a vbscript or 
powershell script to print them like so:

How to print a pdf file:
set oWsh = CreateObject ("Wscript.Shell")
oWsh.run """Acrobat.exe"" /p /h" &FileName,,true

And a Word document:
Set objWord = CreateObject("Word.Application")
Set objDoc = objWord.Documents.Open("c:\scripts\inventory.doc")
objDoc.PrintOut()
objWord.Quit

Or, for word documents, you can use the command line to print (via a batch file 
or other scripting program) refer to this:
http://www.christowles.com/2011/04/microsoft-word-printing-from-command.html

Mike Beccaria
Systems Librarian
Head of Digital Initiative
Paul Smith's College
518.327.6376
mbecca...@paulsmiths.edu
Become a friend of Paul Smith's Library on Facebook today!

-Original Message-
From: Code for Libraries [mailto:CODE4LIB@LISTSERV.ND.EDU] On Behalf Of Kyle 
Banerjee
Sent: Tuesday, April 03, 2012 3:17 PM
To: CODE4LIB@LISTSERV.ND.EDU
Subject: Re: [CODE4LIB] Silently print (no GUI) in Windows

Would Google Cloud Print be helpful?

Otherwise, I think you may need to use multiple apps to actually print things 
(i.e. you actually need Word to print Word docs) unless the files are all 
converted. While at least in the case of Word, this can be done from the 
command line with switches, it actually invokes the whole program which is a 
huge waste -- it's probably better to just have Office running and then have an 
Office Basic program scan for files and send them to the printer.

kyle

On Tue, Apr 3, 2012 at 11:48 AM, Kozlowski,Brendon wrote:

> Not a dumb question at all. In this particular case, the receiving PC
> that is to be storing/printing the documents will be taking jobs from
> multiple networks, buildings, etc by either piping an email account,
> or downloading via a user's upload from a webpage. We already have a
> solution for catching jobs in the print spooler (not ours), but need
> to automate the sending of the documents to the spooler itself.
>
> The only way I've ever sent documents to the spooler was by opening up
> the full application (ex: Microsoft Word), and using the GUI to send
> the print job. Since the PC housing and releasing these files is
> expected to be un-manned and sit in a back room, we just need to be
> able to silently print the jobs in the background. Opening multiple
> applications over and over again would use up a lot of resources, so a
> silent, no-GUI option would be the best from my very little understanding - 
> if it's even possible.
>
>
>
> Brendon Kozlowski
> Web Administrator
> Saratoga Springs Public Library
> 49 Henry Street
> Saratoga Springs, NY, 12866
> [518] 584-7860 x217
> 
> From: Code for Libraries [CODE4LIB@LISTSERV.ND.EDU] on behalf of Kyle
> Banerjee [baner...@uoregon.edu]
> Sent: Tuesday, April 03, 2012 1:25 PM
> To: CODE4LIB@LISTSERV.ND.EDU
> Subject: Re: [CODE4LIB] Silently print (no GUI) in Windows
>
> At the risk of asking a dumb question, why wouldn't a print server
> meet your use case if the print jobs come from elsewhere?
>
> kyle
>
> On Tue, Apr 3, 2012 at 9:15 AM, Kozlowski,Brendon  >wrote:
>
> > I'm curious to know if anyone has discovered ways of silently
> > printing documents from such Windows applications as:
> >
> >
> >
> > - Acrobat Reader (

Re: [CODE4LIB] Silently print (no GUI) in Windows

2012-04-04 Thread Michael Beccaria
Wireless no-device-drive install print solutions usually do this and I think 
Adobe Acrobat full version does this when it converts files from, say, Word to 
PDF. They automate a print job and print to a PDF writer printer. This usually 
requires whatever software that is needed to print be installed on the machine 
(i.e. acrobat, excel, word, etc). You could easily write a vbscript or 
powershell script to print them like so:

How to print a pdf file:
set oWsh = CreateObject ("Wscript.Shell")
oWsh.run """Acrobat.exe"" /p /h" &FileName,,true

And a Word document:
Set objWord = CreateObject("Word.Application")
Set objDoc = objWord.Documents.Open("c:\scripts\inventory.doc")
objDoc.PrintOut()
objWord.Quit

Or, for word documents, you can use the command line to print (via a batch file 
or other scripting program) refer to this:
http://www.christowles.com/2011/04/microsoft-word-printing-from-command.html

Mike Beccaria
Systems Librarian
Head of Digital Initiative
Paul Smith's College
518.327.6376
mbecca...@paulsmiths.edu
Become a friend of Paul Smith's Library on Facebook today!

-Original Message-
From: Code for Libraries [mailto:CODE4LIB@LISTSERV.ND.EDU] On Behalf Of Kyle 
Banerjee
Sent: Tuesday, April 03, 2012 3:17 PM
To: CODE4LIB@LISTSERV.ND.EDU
Subject: Re: [CODE4LIB] Silently print (no GUI) in Windows

Would Google Cloud Print be helpful?

Otherwise, I think you may need to use multiple apps to actually print things 
(i.e. you actually need Word to print Word docs) unless the files are all 
converted. While at least in the case of Word, this can be done from the 
command line with switches, it actually invokes the whole program which is a 
huge waste -- it's probably better to just have Office running and then have an 
Office Basic program scan for files and send them to the printer.

kyle

On Tue, Apr 3, 2012 at 11:48 AM, Kozlowski,Brendon wrote:

> Not a dumb question at all. In this particular case, the receiving PC 
> that is to be storing/printing the documents will be taking jobs from 
> multiple networks, buildings, etc by either piping an email account, 
> or downloading via a user's upload from a webpage. We already have a 
> solution for catching jobs in the print spooler (not ours), but need 
> to automate the sending of the documents to the spooler itself.
>
> The only way I've ever sent documents to the spooler was by opening up 
> the full application (ex: Microsoft Word), and using the GUI to send 
> the print job. Since the PC housing and releasing these files is 
> expected to be un-manned and sit in a back room, we just need to be 
> able to silently print the jobs in the background. Opening multiple 
> applications over and over again would use up a lot of resources, so a 
> silent, no-GUI option would be the best from my very little understanding - 
> if it's even possible.
>
>
>
> Brendon Kozlowski
> Web Administrator
> Saratoga Springs Public Library
> 49 Henry Street
> Saratoga Springs, NY, 12866
> [518] 584-7860 x217
> 
> From: Code for Libraries [CODE4LIB@LISTSERV.ND.EDU] on behalf of Kyle 
> Banerjee [baner...@uoregon.edu]
> Sent: Tuesday, April 03, 2012 1:25 PM
> To: CODE4LIB@LISTSERV.ND.EDU
> Subject: Re: [CODE4LIB] Silently print (no GUI) in Windows
>
> At the risk of asking a dumb question, why wouldn't a print server 
> meet your use case if the print jobs come from elsewhere?
>
> kyle
>
> On Tue, Apr 3, 2012 at 9:15 AM, Kozlowski,Brendon  >wrote:
>
> > I'm curious to know if anyone has discovered ways of silently 
> > printing documents from such Windows applications as:
> >
> >
> >
> > - Acrobat Reader (current version)
> >
> > - Microsoft Office 2007 (Word, Excel, Powerpoint, Visio, etc...)
> >
> > - Windows Picture and Fax Viewer
> >
> >
> >
> > I unfortunately haven't had much luck finding any resources on this.
> >
> >
> >
> > I'd like to be able to receive documents in a queue like fashion to 
> > a single PC and simply print them off as they arrive. However, 
> > automating
> the
> > loading/exiting of the full-blown application each time, and 
> > on-demand, seems a little too cumbersome and unnecessary.
> >
> >
> >
> > I have not yet decided on whether I'd be scripting it (PHP, AutoIT, 
> > batch files, VBS, Powershell, etc...) or learning and then writing a 
> > .NET application. If .NET solutions use the COM object, the 
> > scripting becomes
> a
> > potential candidate. Unfortunately I need to know how, or even if, 
> > it's even possible to do first.
> >
> >
> >
>

Re: [CODE4LIB] Silently print (no GUI) in Windows

2012-04-03 Thread Jonathan Rochkind

If you had PDFs, you could probably do it.

But if you have a bunch of different proprietary application files 
each one is different, and needs software that can interpret the file 
and turn it into a print job (postscript, or whatever).  Normally this 
software is the 'full application' that owns it, say Microsoft Word.  
The particular application may come with software to 'silently' print, 
but most probably does not.  The particular format may have a competitor 
that can open it (say, OpenOffice for Microsoft Word), and an open 
source competitor is perhaps more likely to have such 'silent printing' 
ability -- but it would still need to be done on a format-by-format basis.


I don't know if anyone's selling software that can try to do what you're 
talking about for a multitude of popular formats. But it's pretty much 
impossible for there to be software that can do it for every/any format.


I think you're not going to have much luck.

Perhaps you could figure out a way to use some kind of Windows 'macro' 
program to actually open up each document in the 'full application' and 
choose File/Print, but to do this unattended.  I am not familiar with 
such software.


On 4/3/2012 2:48 PM, Kozlowski,Brendon wrote:

Not a dumb question at all. In this particular case, the receiving PC that is 
to be storing/printing the documents will be taking jobs from multiple 
networks, buildings, etc by either piping an email account, or downloading via 
a user's upload from a webpage. We already have a solution for catching jobs in 
the print spooler (not ours), but need to automate the sending of the documents 
to the spooler itself.

The only way I've ever sent documents to the spooler was by opening up the full 
application (ex: Microsoft Word), and using the GUI to send the print job. 
Since the PC housing and releasing these files is expected to be un-manned and 
sit in a back room, we just need to be able to silently print the jobs in the 
background. Opening multiple applications over and over again would use up a 
lot of resources, so a silent, no-GUI option would be the best from my very 
little understanding - if it's even possible.



Brendon Kozlowski
Web Administrator
Saratoga Springs Public Library
49 Henry Street
Saratoga Springs, NY, 12866
[518] 584-7860 x217

From: Code for Libraries [CODE4LIB@LISTSERV.ND.EDU] on behalf of Kyle Banerjee 
[baner...@uoregon.edu]
Sent: Tuesday, April 03, 2012 1:25 PM
To: CODE4LIB@LISTSERV.ND.EDU
Subject: Re: [CODE4LIB] Silently print (no GUI) in Windows

At the risk of asking a dumb question, why wouldn't a print server meet
your use case if the print jobs come from elsewhere?

kyle

On Tue, Apr 3, 2012 at 9:15 AM, Kozlowski,Brendonwrote:


I'm curious to know if anyone has discovered ways of silently printing
documents from such Windows applications as:



- Acrobat Reader (current version)

- Microsoft Office 2007 (Word, Excel, Powerpoint, Visio, etc...)

- Windows Picture and Fax Viewer



I unfortunately haven't had much luck finding any resources on this.



I'd like to be able to receive documents in a queue like fashion to a
single PC and simply print them off as they arrive. However, automating the
loading/exiting of the full-blown application each time, and on-demand,
seems a little too cumbersome and unnecessary.



I have not yet decided on whether I'd be scripting it (PHP, AutoIT, batch
files, VBS, Powershell, etc...) or learning and then writing a .NET
application. If .NET solutions use the COM object, the scripting becomes a
potential candidate. Unfortunately I need to know how, or even if, it's
even possible to do first.



Thank you for any and all feedback or assistance.




Brendon Kozlowski
Web Administrator
Saratoga Springs Public Library
49 Henry Street
Saratoga Springs, NY, 12866
[518] 584-7860 x217

Please consider the environment before printing this message.

To report this message as spam, offensive, or if you feel you have
received this in error,
please send e-mail to ab...@sals.edu including the entire contents and
subject of the message.
It will be reviewed by staff and acted upon appropriately.




--
--
Kyle Banerjee
Digital Services Program Manager
Orbis Cascade Alliance
baner...@uoregon.edu / 503.999.9787

To report this message as spam, offensive, or if you feel you have received 
this in error,
please send e-mail to ab...@sals.edu including the entire contents and subject 
of the message.
It will be reviewed by staff and acted upon appropriately.



Re: [CODE4LIB] Silently print (no GUI) in Windows

2012-04-03 Thread Kyle Banerjee
Would Google Cloud Print be helpful?

Otherwise, I think you may need to use multiple apps to actually print
things (i.e. you actually need Word to print Word docs) unless the files
are all converted. While at least in the case of Word, this can be done
from the command line with switches, it actually invokes the whole program
which is a huge waste -- it's probably better to just have Office running
and then have an Office Basic program scan for files and send them to the
printer.

kyle

On Tue, Apr 3, 2012 at 11:48 AM, Kozlowski,Brendon wrote:

> Not a dumb question at all. In this particular case, the receiving PC that
> is to be storing/printing the documents will be taking jobs from multiple
> networks, buildings, etc by either piping an email account, or downloading
> via a user's upload from a webpage. We already have a solution for catching
> jobs in the print spooler (not ours), but need to automate the sending of
> the documents to the spooler itself.
>
> The only way I've ever sent documents to the spooler was by opening up the
> full application (ex: Microsoft Word), and using the GUI to send the print
> job. Since the PC housing and releasing these files is expected to be
> un-manned and sit in a back room, we just need to be able to silently print
> the jobs in the background. Opening multiple applications over and over
> again would use up a lot of resources, so a silent, no-GUI option would be
> the best from my very little understanding - if it's even possible.
>
>
>
> Brendon Kozlowski
> Web Administrator
> Saratoga Springs Public Library
> 49 Henry Street
> Saratoga Springs, NY, 12866
> [518] 584-7860 x217
> 
> From: Code for Libraries [CODE4LIB@LISTSERV.ND.EDU] on behalf of Kyle
> Banerjee [baner...@uoregon.edu]
> Sent: Tuesday, April 03, 2012 1:25 PM
> To: CODE4LIB@LISTSERV.ND.EDU
> Subject: Re: [CODE4LIB] Silently print (no GUI) in Windows
>
> At the risk of asking a dumb question, why wouldn't a print server meet
> your use case if the print jobs come from elsewhere?
>
> kyle
>
> On Tue, Apr 3, 2012 at 9:15 AM, Kozlowski,Brendon  >wrote:
>
> > I'm curious to know if anyone has discovered ways of silently printing
> > documents from such Windows applications as:
> >
> >
> >
> > - Acrobat Reader (current version)
> >
> > - Microsoft Office 2007 (Word, Excel, Powerpoint, Visio, etc...)
> >
> > - Windows Picture and Fax Viewer
> >
> >
> >
> > I unfortunately haven't had much luck finding any resources on this.
> >
> >
> >
> > I'd like to be able to receive documents in a queue like fashion to a
> > single PC and simply print them off as they arrive. However, automating
> the
> > loading/exiting of the full-blown application each time, and on-demand,
> > seems a little too cumbersome and unnecessary.
> >
> >
> >
> > I have not yet decided on whether I'd be scripting it (PHP, AutoIT, batch
> > files, VBS, Powershell, etc...) or learning and then writing a .NET
> > application. If .NET solutions use the COM object, the scripting becomes
> a
> > potential candidate. Unfortunately I need to know how, or even if, it's
> > even possible to do first.
> >
> >
> >
> > Thank you for any and all feedback or assistance.
> >
> >
> >
> >
> > Brendon Kozlowski
> > Web Administrator
> > Saratoga Springs Public Library
> > 49 Henry Street
> > Saratoga Springs, NY, 12866
> > [518] 584-7860 x217
> >
> > Please consider the environment before printing this message.
> >
> > To report this message as spam, offensive, or if you feel you have
> > received this in error,
> > please send e-mail to ab...@sals.edu including the entire contents and
> > subject of the message.
> > It will be reviewed by staff and acted upon appropriately.
> >
>
>
>
> --
> --
> Kyle Banerjee
> Digital Services Program Manager
> Orbis Cascade Alliance
> baner...@uoregon.edu / 503.999.9787
>
> To report this message as spam, offensive, or if you feel you have
> received this in error,
> please send e-mail to ab...@sals.edu including the entire contents and
> subject of the message.
> It will be reviewed by staff and acted upon appropriately.
>



-- 
--
Kyle Banerjee
Digital Services Program Manager
Orbis Cascade Alliance
baner...@uoregon.edu / 503.999.9787


Re: [CODE4LIB] Silently print (no GUI) in Windows

2012-04-03 Thread Kozlowski,Brendon
Not a dumb question at all. In this particular case, the receiving PC that is 
to be storing/printing the documents will be taking jobs from multiple 
networks, buildings, etc by either piping an email account, or downloading via 
a user's upload from a webpage. We already have a solution for catching jobs in 
the print spooler (not ours), but need to automate the sending of the documents 
to the spooler itself.

The only way I've ever sent documents to the spooler was by opening up the full 
application (ex: Microsoft Word), and using the GUI to send the print job. 
Since the PC housing and releasing these files is expected to be un-manned and 
sit in a back room, we just need to be able to silently print the jobs in the 
background. Opening multiple applications over and over again would use up a 
lot of resources, so a silent, no-GUI option would be the best from my very 
little understanding - if it's even possible.



Brendon Kozlowski
Web Administrator
Saratoga Springs Public Library
49 Henry Street
Saratoga Springs, NY, 12866
[518] 584-7860 x217

From: Code for Libraries [CODE4LIB@LISTSERV.ND.EDU] on behalf of Kyle Banerjee 
[baner...@uoregon.edu]
Sent: Tuesday, April 03, 2012 1:25 PM
To: CODE4LIB@LISTSERV.ND.EDU
Subject: Re: [CODE4LIB] Silently print (no GUI) in Windows

At the risk of asking a dumb question, why wouldn't a print server meet
your use case if the print jobs come from elsewhere?

kyle

On Tue, Apr 3, 2012 at 9:15 AM, Kozlowski,Brendon wrote:

> I'm curious to know if anyone has discovered ways of silently printing
> documents from such Windows applications as:
>
>
>
> - Acrobat Reader (current version)
>
> - Microsoft Office 2007 (Word, Excel, Powerpoint, Visio, etc...)
>
> - Windows Picture and Fax Viewer
>
>
>
> I unfortunately haven't had much luck finding any resources on this.
>
>
>
> I'd like to be able to receive documents in a queue like fashion to a
> single PC and simply print them off as they arrive. However, automating the
> loading/exiting of the full-blown application each time, and on-demand,
> seems a little too cumbersome and unnecessary.
>
>
>
> I have not yet decided on whether I'd be scripting it (PHP, AutoIT, batch
> files, VBS, Powershell, etc...) or learning and then writing a .NET
> application. If .NET solutions use the COM object, the scripting becomes a
> potential candidate. Unfortunately I need to know how, or even if, it's
> even possible to do first.
>
>
>
> Thank you for any and all feedback or assistance.
>
>
>
>
> Brendon Kozlowski
> Web Administrator
> Saratoga Springs Public Library
> 49 Henry Street
> Saratoga Springs, NY, 12866
> [518] 584-7860 x217
>
> Please consider the environment before printing this message.
>
> To report this message as spam, offensive, or if you feel you have
> received this in error,
> please send e-mail to ab...@sals.edu including the entire contents and
> subject of the message.
> It will be reviewed by staff and acted upon appropriately.
>



--
--
Kyle Banerjee
Digital Services Program Manager
Orbis Cascade Alliance
baner...@uoregon.edu / 503.999.9787

To report this message as spam, offensive, or if you feel you have received 
this in error,
please send e-mail to ab...@sals.edu including the entire contents and subject 
of the message.
It will be reviewed by staff and acted upon appropriately.


Re: [CODE4LIB] Silently print (no GUI) in Windows

2012-04-03 Thread Patrick Hochstenbach
Or in case you like Java ..I've started working last year on a Java application 
to automatically print documents from a hot folder. Just pushed the code:

https://github.com/phochste/PrintApp

Patrick

From: Code for Libraries [CODE4LIB@LISTSERV.ND.EDU] On Behalf Of 
Kozlowski,Brendon [bkozlow...@sals.edu]
Sent: Tuesday, April 03, 2012 6:15 PM
To: CODE4LIB@LISTSERV.ND.EDU
Subject: [CODE4LIB] Silently print (no GUI) in Windows

I'm curious to know if anyone has discovered ways of silently printing 
documents from such Windows applications as:



- Acrobat Reader (current version)

- Microsoft Office 2007 (Word, Excel, Powerpoint, Visio, etc...)

- Windows Picture and Fax Viewer



I unfortunately haven't had much luck finding any resources on this.



I'd like to be able to receive documents in a queue like fashion to a single PC 
and simply print them off as they arrive. However, automating the 
loading/exiting of the full-blown application each time, and on-demand, seems a 
little too cumbersome and unnecessary.



I have not yet decided on whether I'd be scripting it (PHP, AutoIT, batch 
files, VBS, Powershell, etc...) or learning and then writing a .NET 
application. If .NET solutions use the COM object, the scripting becomes a 
potential candidate. Unfortunately I need to know how, or even if, it's even 
possible to do first.



Thank you for any and all feedback or assistance.




Brendon Kozlowski
Web Administrator
Saratoga Springs Public Library
49 Henry Street
Saratoga Springs, NY, 12866
[518] 584-7860 x217

Please consider the environment before printing this message.

To report this message as spam, offensive, or if you feel you have received 
this in error,

please send e-mail to ab...@sals.edu including the entire contents and subject 
of the message.

It will be reviewed by staff and acted upon appropriately.


Re: [CODE4LIB] Silently print (no GUI) in Windows

2012-04-03 Thread Kyle Banerjee
At the risk of asking a dumb question, why wouldn't a print server meet
your use case if the print jobs come from elsewhere?

kyle

On Tue, Apr 3, 2012 at 9:15 AM, Kozlowski,Brendon wrote:

> I'm curious to know if anyone has discovered ways of silently printing
> documents from such Windows applications as:
>
>
>
> - Acrobat Reader (current version)
>
> - Microsoft Office 2007 (Word, Excel, Powerpoint, Visio, etc...)
>
> - Windows Picture and Fax Viewer
>
>
>
> I unfortunately haven't had much luck finding any resources on this.
>
>
>
> I'd like to be able to receive documents in a queue like fashion to a
> single PC and simply print them off as they arrive. However, automating the
> loading/exiting of the full-blown application each time, and on-demand,
> seems a little too cumbersome and unnecessary.
>
>
>
> I have not yet decided on whether I'd be scripting it (PHP, AutoIT, batch
> files, VBS, Powershell, etc...) or learning and then writing a .NET
> application. If .NET solutions use the COM object, the scripting becomes a
> potential candidate. Unfortunately I need to know how, or even if, it's
> even possible to do first.
>
>
>
> Thank you for any and all feedback or assistance.
>
>
>
>
> Brendon Kozlowski
> Web Administrator
> Saratoga Springs Public Library
> 49 Henry Street
> Saratoga Springs, NY, 12866
> [518] 584-7860 x217
>
> Please consider the environment before printing this message.
>
> To report this message as spam, offensive, or if you feel you have
> received this in error,
> please send e-mail to ab...@sals.edu including the entire contents and
> subject of the message.
> It will be reviewed by staff and acted upon appropriately.
>



-- 
--
Kyle Banerjee
Digital Services Program Manager
Orbis Cascade Alliance
baner...@uoregon.edu / 503.999.9787


Re: [CODE4LIB] Silently print (no GUI) in Windows

2012-04-03 Thread Mark A. Matienzo
You could do it using GhostScript: http://stackoverflow.com/questions/4498099

The example here is written in Python, but there's no reason you
couldn't use another scripting language.

Mark

On Tue, Apr 3, 2012 at 12:15 PM, Kozlowski,Brendon  wrote:
> I'm curious to know if anyone has discovered ways of silently printing 
> documents from such Windows applications as:
>
>
>
> - Acrobat Reader (current version)
>
> - Microsoft Office 2007 (Word, Excel, Powerpoint, Visio, etc...)
>
> - Windows Picture and Fax Viewer
>
>
>
> I unfortunately haven't had much luck finding any resources on this.
>
>
>
> I'd like to be able to receive documents in a queue like fashion to a single 
> PC and simply print them off as they arrive. However, automating the 
> loading/exiting of the full-blown application each time, and on-demand, seems 
> a little too cumbersome and unnecessary.
>
>
>
> I have not yet decided on whether I'd be scripting it (PHP, AutoIT, batch 
> files, VBS, Powershell, etc...) or learning and then writing a .NET 
> application. If .NET solutions use the COM object, the scripting becomes a 
> potential candidate. Unfortunately I need to know how, or even if, it's even 
> possible to do first.
>
>
>
> Thank you for any and all feedback or assistance.
>
>
>
>
> Brendon Kozlowski
> Web Administrator
> Saratoga Springs Public Library
> 49 Henry Street
> Saratoga Springs, NY, 12866
> [518] 584-7860 x217
>
> Please consider the environment before printing this message.
>
> To report this message as spam, offensive, or if you feel you have received 
> this in error,
> please send e-mail to ab...@sals.edu including the entire contents and 
> subject of the message.
> It will be reviewed by staff and acted upon appropriately.


[CODE4LIB] Silently print (no GUI) in Windows

2012-04-03 Thread Kozlowski,Brendon
I'm curious to know if anyone has discovered ways of silently printing 
documents from such Windows applications as:



- Acrobat Reader (current version)

- Microsoft Office 2007 (Word, Excel, Powerpoint, Visio, etc...)

- Windows Picture and Fax Viewer



I unfortunately haven't had much luck finding any resources on this.



I'd like to be able to receive documents in a queue like fashion to a single PC 
and simply print them off as they arrive. However, automating the 
loading/exiting of the full-blown application each time, and on-demand, seems a 
little too cumbersome and unnecessary.



I have not yet decided on whether I'd be scripting it (PHP, AutoIT, batch 
files, VBS, Powershell, etc...) or learning and then writing a .NET 
application. If .NET solutions use the COM object, the scripting becomes a 
potential candidate. Unfortunately I need to know how, or even if, it's even 
possible to do first.



Thank you for any and all feedback or assistance.




Brendon Kozlowski
Web Administrator
Saratoga Springs Public Library
49 Henry Street
Saratoga Springs, NY, 12866
[518] 584-7860 x217

Please consider the environment before printing this message.

To report this message as spam, offensive, or if you feel you have received 
this in error,
please send e-mail to ab...@sals.edu including the entire contents and subject 
of the message.
It will be reviewed by staff and acted upon appropriately.