开发者

Waking a Windows (Spooler) printer

I have a .NET 3.5 / C# application running on XP which receives data from another application in small batches (3 or 4 lines at a time), collects the data into a single print job, and eventually submits it to the Windows spooler. This data collection phase usually takes 20 - 30 seconds.

When watching the system in operation, I noticed that the printer that's being used (a networked laser printer) takes a long time - a couple of minutes - to warm up, and obviously this warm-up phase starts only after I've sent the complete print command to the spooler.

So, this got me thinking - is there a generic "fire and forget" method I can use to tell the printer to start its warm-up sequence? If so, I could trigger that immediately upon receiving the first chunk of data, and t开发者_如何学JAVAhe printer can be warming up while I'm doing my data collection.

It's not the end of the world if this isn't possible, by any means, but it looks like a nice easy speedup!

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜