网站首页  词典首页

请输入您要查询的函数:

 

术语 startpageprinter
释义 StartPagePrinter
语法:
BOOL StartPagePrinter(
__in HANDLE hPrinter
);
StartPagePrinter功能
该StartPagePrinter函数通知,一个网页是关于要在指定的打印机上打印后台处理程序。
参数
hPrinter [in]
处理一台打印机。使用OpenPrinter或添加打印机函数检索打印机处理。
返回值
如果函数成功,返回值是一个非零值。
如果函数失败,返回值是零。
备注
对于打印作业顺序如下:
开始一个打印作业,请发送StartDocPrinter。
首先每个页面,请StartPagePrinter。
将数据写入到页面,请WritePrinter。
要结束的每一页,请EndPagePrinter。
重复2,3和4需要尽可能多页。
要结束打印作业,请EndDocPrinter。
当在后台文件页面超过大约350 MB的,它可能无法打印,而不是发出错误信息。例如,这在打印时可能会发生大的EMF文件。页面大小限制取决于包括可用虚拟内存量的因素很多,由调用程序分配的内存量,以及碎片的数量在这个过程中堆。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWinspool.h(头文件:winuser.h)
LibraryWinspool.lib
参见
Printing and Print Spooler Overview
Printing and Print Spooler 函数
EndDocPrinter
EndPagePrinter
OpenPrinter
StartDocPrinter
StartPagePrinter
WritePrinter
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月11日
==英文原文==StartPagePrinter Function
The StartPagePrinter function notifies the spooler that a page is about to be printed on the specified printer.
Syntax
BOOL StartPagePrinter(
__in HANDLE hPrinter
);
Parameters
hPrinter [in]
Handle to a printer. Use the OpenPrinter or AddPrinter function to retrieve a printer handle.
Return Value
If the function succeeds, the return value is a nonzero value.
If the function fails, the return value is zero.
Remarks
The sequence for a print job is as follows:
To begin a print job, call StartDocPrinter .
To begin each page, call StartPagePrinter.
To write data to a page, call WritePrinter .
To end each page, call EndPagePrinter .
Repeat 2, 3, and 4 for as many pages as necessary.
To end the print job, call EndDocPrinter .
When a page in a spooled file exceeds approximately 350 MB, it can fail to print and not send an error message. For example, this can occur when printing large EMF files. The page size limit depends on many factors including the amount of virtual memory available, the amount of memory allocated by calling processes, and the amount of fragmentation in the process heap.
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderWinspool.h (include Windows.h)
LibraryWinspool.lib
See Also
Printing and Print Spooler Overview
Printing and Print Spooler Functions
EndDocPrinter
EndPagePrinter
OpenPrinter
StartDocPrinter
StartPagePrinter
WritePrinter
Send comments about this topic to Microsoft
Build date: 7/11/2009
==原始网址==http://msdn.microsoft.com/en-us/library/dd145117(VS.85).aspx\n
随便看

 

windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。

 

Copyright © 2004-2023 Winrtm.com All Rights Reserved
京ICP备2021023879号-40 更新时间:2024/10/6 13:16:25