杨 杨一刀 Unregistered / Unconfirmed GUEST, unregistred user! 2002-01-31 #1 用enumjobs函数在winnt下可以获得正在打印文件的页数,可是在win98下却无法得到正在<br>打印文件的页数。各位高手请告诉我如何在win98下获得正在打印文件的页数。谢谢了!
X xwufan2001 Unregistered / Unconfirmed GUEST, unregistred user! 2002-02-22 #2 我也有同样的问题,关注<br>有没有试过Tprinter.pagenumber??
Y yfdciom Unregistered / Unconfirmed GUEST, unregistred user! 2002-03-04 #4 看一下这段程序,或许对你有帮助:<br>procedure TForm1.Button5Click(Sender: TObject);<br>var<br> p:^PRINTER_INFO_2;<br> a:LPDWORD;<br>begin<br> GetMem(p,SizeOf(PRINTER_INFO_2));<br> GetMem(a,SizeOf(PDWORD));<br> GetPrinter(0,2,p,1024,a);<br> ShowMessage(p.pLocation);
看一下这段程序,或许对你有帮助:<br>procedure TForm1.Button5Click(Sender: TObject);<br>var<br> p:^PRINTER_INFO_2;<br> a:LPDWORD;<br>begin<br> GetMem(p,SizeOf(PRINTER_INFO_2));<br> GetMem(a,SizeOf(PDWORD));<br> GetPrinter(0,2,p,1024,a);<br> ShowMessage(p.pLocation);