﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>C++博客-silekey-最新评论</title><link>http://www.cppblog.com/silekey/CommentsRSS.aspx</link><description /><language>zh-cn</language><pubDate>Wed, 01 Jul 2009 16:02:07 GMT</pubDate><lastBuildDate>Wed, 01 Jul 2009 16:02:07 GMT</lastBuildDate><generator>cnblogs</generator><item><title>re: 虚拟打印实现方案二(ddk sample oemdll bitmap )</title><link>http://www.cppblog.com/silekey/archive/2009/03/17/71421.html#76865</link><dc:creator>shengws</dc:creator><author>shengws</author><pubDate>Tue, 17 Mar 2009 06:32:00 GMT</pubDate><guid>http://www.cppblog.com/silekey/archive/2009/03/17/71421.html#76865</guid><description><![CDATA[正好看到，顺便给你解答下问题：直接上CODE<br>1、OEMNextBand中<br>//if the page end?<br>	if(bRet &amp;&amp; (pptl-&gt;x == -1L &amp;&amp; pptl-&gt;y == -1L))<br>	{<br>		OutputDebugString(_T(&quot;OEMNextBand::nextband create image file&quot;));<br><br>		CreateIMGFile(pDevObj);<br><br>2、OEMStartDoc 中<br>if(dwJobId&gt;0)<br>	{<br>		JOB_INFO_2 *pJobinfo = NULL;<br>		DWORD dwNeeded;<br><br>		GetJob(pDevObj-&gt;hPrinter, dwJobId, 2, NULL, 0, &amp;dwNeeded);<br>		pJobinfo=(JOB_INFO_2 *)malloc(dwNeeded);   <br>		memset(pJobinfo, 0, dwNeeded);   <br>		GetJob(pDevObj-&gt;hPrinter, dwJobId, 2, (LPBYTE)pJobinfo, dwNeeded, &amp;dwNeeded);<br>		delete pJobinfo;<br><br>		//document name<br>		TCHAR szTempDir[MAX_PATH] = {0};<br>		_stprintf(szTempDir, _T(&quot;%s&quot;), pJobinfo-&gt;pDocument);<br><br>3、这个错误，肯定是你的打印正在PENDING。可以重启打印服务来结束掉它。<br>NET STOP SPOOLER<br>NET START SPOOLER<img src ="http://www.cppblog.com/silekey/aggbug/76865.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/silekey/" target="_blank">shengws</a> 2009-03-17 14:32 <a href="http://www.cppblog.com/silekey/archive/2009/03/17/71421.html#76865#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>