阅读:1515回复:4
求购虚拟打印的缘代码
联系方式:eric_ni@tom.com
|
|
沙发#
发布于:2004-01-05 11:17
你在DDK的例子里面有啊,你只要编译以下就可以了,不知这样的回答对你有没有帮助,~_~
|
|
板凳#
发布于:2004-01-05 11:32
例子呢?我找不到win98ddk,能把例子发给我吗?谢谢
|
|
地板#
发布于:2004-01-13 18:45
可以参考,下面的codeguru的例子可比ddk例子简单:
Print monitor that prints into a directory www.codeguru.com/printing/printspool.html -------------------------------------------------------------------------------- This article was contributed by Peter Herweg. Environment: Visual C++ 6.0, Windows NT 4.0 / Windows2000 Recently we had to do some printing on our IIS-Server. Printing on a physically existing printer was no problem. But after that we tried to print into files and send the files to the appropriate user. Printing to \"FILE:\"-port caused the spooler-service to ask for a destination file, which you had to type in manually. Of course this was not the right approach for our IIS-server. After studying the MSDN I found \"The Print Monitor API\" (refer to this for further information) which explains how to implement a print monitor. A print monitor is a DLL that exports some specific functions to enable the print spooler to do customized tasks--for example to print not to a printer but into a directory. I used the print monitor example from the Microsoft DDK as a template to implement this print monitor. The example in the DDK was very complicated and did more than I wanted it to do (it should just redirect the print jobs into appropriate files). Notice that the file WINSPLP.H was shipped with the Microsoft Windows NT 4.0 DDK. |
|
地下室#
发布于:2004-01-14 12:57
不错 。。。。。。
|
|
|