Printer becomes unshared after printing

J

JJ

I have an end user who when they run a certain program to print to a network
printer, after the page prints, the network printer suddenly becomes
unshared!

The program that does the printing is a fairly simple VB program, using the
VB printer object (no API calls), and it is running fine on literally
hundreds of different systems/networks.

However at this one installation, the program prints a page, and then after
that they must go to the system where the printer is connected and share the
printer again.

It is only happening when printing from one PC. There are two printers on
the network (an HP 6P and HP 2300). Printing from this problem PC to either
of these printers makes the printer become unshared at the computer where
the printer is attached. What could possibly cause that?
 
A

Alan Morris\(MSFT\)

does the user have admin rights on the server?

Also add informational spooler events (printers folder, File ,Server
Properties, Advanced) check the system event log for event 9.

--
Alan Morris
Windows Printing Team
Search the Microsoft Knowledge Base here:
http://support.microsoft.com/default.aspx?scid=fh;[ln];kbhowto

This posting is provided "AS IS" with no warranties, and confers no rights.
 
J

JJ

Alan,

Thanks, but just a short time after your post, we found the problem.

It was actually not related to printing the page after all, but the function
of selecting the printer destination. So we were looking in the wrong
place.

(Our code had this in it: pi2->Attributes = PRINTER_ATTRIBUTE_DEFAULT;
when it should have been: pi2->Attributes |= PRINTER_ATTRIBUTE_DEFAULT;,
so it was replacing the shared attribute on the printer when the user
selected their default printer through our program.)


Alan Morris(MSFT) said:
does the user have admin rights on the server?

Also add informational spooler events (printers folder, File ,Server
Properties, Advanced) check the system event log for event 9.

--
Alan Morris
Windows Printing Team
Search the Microsoft Knowledge Base here:
http://support.microsoft.com/default.aspx?scid=fh;[ln];kbhowto

This posting is provided "AS IS" with no warranties, and confers no rights.

JJ said:
I have an end user who when they run a certain program to print to a network
printer, after the page prints, the network printer suddenly becomes
unshared!

The program that does the printing is a fairly simple VB program, using the
VB printer object (no API calls), and it is running fine on literally
hundreds of different systems/networks.

However at this one installation, the program prints a page, and then after
that they must go to the system where the printer is connected and share the
printer again.

It is only happening when printing from one PC. There are two printers on
the network (an HP 6P and HP 2300). Printing from this problem PC to either
of these printers makes the printer become unshared at the computer where
the printer is attached. What could possibly cause that?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top