Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 800
  • Last Modified:

StartDocPrinter fails with strange errno

(This is not an MFC question, rather a WIN32 API question, I couldn't find a more relevant topic).

I am using the StartDocPrinter() API to print a text document.
Everything works great on the PCs at work.
Printing failed at a customer site.
It turns out that StartDocPrinter() failed (returned 0).
The errno returned by GetLast Error was once 32 ("The process cannot access the file because it is being used by another process. ") and twice  1722 ("The RPC server is unavailable. ").
Can anybody tell me what the problem might be.
(The OS used is W2000)
Thanks you
0
mco
Asked:
mco
1 Solution
 
Roshan DavisCommented:
That is because of that computer does not have the access of the network/self printer. Check the permissions

GOOD LUCK
0
 
mcoAuthor Commented:
Sorry, it was a bug on my side at the end.
0
 
MoondancerCommented:
Please finalize this.
Moondancer - EE Moderator
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now