打印机调用哪几个api函数来打印数据

 我来答
我不是他舅
推荐于2018-04-12 · TA获得超过138万个赞
知道顶级答主
回答量:29.6万
采纳率:79%
帮助的人:35.8亿
展开全部
在MSDN库中去找。取一个函数名拷贝到MSDN的关键字栏里搜索就出来了,而且有详细的参数解释及用法。如:EndPagePrinter

BOOL EndPagePrinter(
HANDLE hPrinter // handle to printer object
);

Parameters

hPrinter
[in] Handle to the printer for which the page will be concluded. Use the OpenPrinter or AddPrinter function to retrieve a printer
handle.

Return Values

If the function succeeds, the return value is a nonzero value.

If the function fails, the return value is zero. To get extended error
information, call GetLastError.

Remarks

Each page in a print job begins with a StartPagePrinter function call and ends with
an EndPagePrinter function call. The data for each page is written to the
print file by using the WritePrinter
function.

Requirements

Windows NT/2000: Requires Windows NT 3.1 or later.
Windows
95/98: Requires Windows 95 or later.
Header: Declared in
Winspool.h; include Windows.h.
Library: Use Winspool.lib.

See Also

Printing and Print Spooler Overview, Printing and Print Spooler Functions, OpenPrinter, StartPagePrinter, WritePrinter
普伟龙祥
2025-03-09 广告
在选购3D打印机时,北京普伟龙祥科技发展有限公司建议您考虑以下因素:首先明确预算和使用场景,如个人爱好、教育或工业生产。其次关注打印技术,如FDM、SLA等,并了解打印速度、精度、尺寸和材料兼容性。此外,软件兼容性、用户界面友好性、稳定性和... 点击进入详情页
本回答由普伟龙祥提供
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式