Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 128
Default Waking up a Printer

Is it possible to send a control character or similar to wake up a remote
printer that goes into a power-down energy-saving mode.

The idea is to reduce the time spent waiting for the printer after the print
job has been prepared and sent.

Thanks

Tim


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,253
Default Waking up a Printer


i doubt it. in DOS days it wouldnt have been that hard,
but under windows i fear the spooler will interfere.


but you can try.. my DOS is very rusty, but if I remember correctly..
following might work

This tries to send an ESC E (reset) to the printer port.
(since you cant type the esc .. use some code to make the batch file


Const fn = "c:\wakeup.bat"

Sub CreateESCE()
If Dir(fn) < "" Then Kill fn
Open fn For Output As #1
Print #1, "'Batch file to wakeup the printer"
Print #1, "echo " & Chr(27) & "E LPT1:"
Close #1
End Sub

Sub RunEscE()
If Dir(fn) = "" Then CreateESCE
Call Shell(fn, vbNormal)
End Sub


I'd try to get my hands on the printer manual (d/l from internet?),
and adjust its timeout settings via the panel.


--
keepITcool
| www.XLsupport.com | keepITcool chello nl | amsterdam


Tim Childs wrote :

Is it possible to send a control character or similar to wake up a
remote printer that goes into a power-down energy-saving mode.

The idea is to reduce the time spent waiting for the printer after
the print job has been prepared and sent.

Thanks

Tim

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 128
Default Waking up a Printer

Hi

Many thanks for response - sorry for tardy reply from me.

It certainly seems to work at home where I am now. It will be
interesting to see if it transfers to work OK as it will be on a
network printer - is that still normally deemd to be LPT1?

Thanks

Tim


"keepITcool" wrote in message oft.com...
i doubt it. in DOS days it wouldnt have been that hard,
but under windows i fear the spooler will interfere.


but you can try.. my DOS is very rusty, but if I remember correctly..
following might work

This tries to send an ESC E (reset) to the printer port.
(since you cant type the esc .. use some code to make the batch file


Const fn = "c:\wakeup.bat"

Sub CreateESCE()
If Dir(fn) < "" Then Kill fn
Open fn For Output As #1
Print #1, "'Batch file to wakeup the printer"
Print #1, "echo " & Chr(27) & "E LPT1:"
Close #1
End Sub

Sub RunEscE()
If Dir(fn) = "" Then CreateESCE
Call Shell(fn, vbNormal)
End Sub


I'd try to get my hands on the printer manual (d/l from internet?),
and adjust its timeout settings via the panel.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Printer Rey Excel Discussion (Misc queries) 3 October 23rd 07 09:02 PM
members on my network printer not able to print to default printer smeheut Excel Discussion (Misc queries) 0 June 18th 07 06:42 PM
Printer Multiple Worksheets with a particular Printer Setting PP[_2_] Excel Worksheet Functions 0 March 14th 07 02:02 PM
Printer Set Up in VBA PostalVote Excel Programming 3 July 29th 04 12:29 PM
Printing To A Specified Printer Steven Pearl Excel Programming 6 January 6th 04 09:14 PM


All times are GMT +1. The time now is 02:59 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"