Solved

StartDocPrinter fails with strange errno

Posted on 2002-04-09
3
736 Views
Last Modified: 2013-11-20
(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
Comment
Question by:mco
3 Comments
 
LVL 23

Accepted Solution

by:
Roshan Davis earned 200 total points
ID: 6927640
That is because of that computer does not have the access of the network/self printer. Check the permissions

GOOD LUCK
0
 
LVL 1

Author Comment

by:mco
ID: 6927646
Sorry, it was a bug on my side at the end.
0
 
LVL 1

Expert Comment

by:Moondancer
ID: 7084982
Please finalize this.
Moondancer - EE Moderator
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

932 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now