问题描述
我尝试通过Windows Vista中的Bidi界面获取打印机状态。
我的设置:OS-Vista RC1; Printer-HP 4650 on 10.16.110.89;打印机驱动程序-HP 4650 Color LaserJet PCL5c
我的程序:
在我的代码中:
1)调用IBidiSpl的BindDevice() - 成功。
2)调用IBidiRequest的SetSchema() - 成功。
3)调用IBidiRequest的SendRecv() - 成功。
4)调用IBidiRequest的GetOutputData() - 失败。
注意:GetOutputData()的错误代码为13(数据无效) )。我确信打印机连接良好,可以正常工作。
我根据 http://msdn2.microsoft.com/en-gb/library/ms535684.aspx
I try to get the printer status through Bidi interfaces in Windows Vista.
My settings: OS-Vista RC1; Printer-HP 4650 on 10.16.110.89; Printer driver-HP 4650 Color LaserJet PCL5c
My procedure:
In my code:
1) Call BindDevice() of IBidiSpl -- Successfully.
2) Call SetSchema() of IBidiRequest -- Successfully.
3) Call SendRecv() of IBidiRequest -- Successfully.
4) Call GetOutputData() of IBidiRequest -- Failed.
Notes: the error code of GetOutputData() is 13 (The data is invalid).
I am sure that the printer is connected well and could work well.
I wrote the code based on the sample on http://msdn2.microsoft.com/en-gb/library/ms535684.aspx
有谁能就这个问题给我一些建议?
谢谢。
Can anyone give me some advice on this issue?
Thanks.
推荐答案
这篇关于当调用IBidiRequest Bidi接口错误代码13的GetOutputData()时。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!