Re: Printing Issue
- From: v-jetan@xxxxxxxxxxxxxxxxxxxx ("Jeffrey Tan[MSFT]")
- Date: Mon, 12 Sep 2005 06:12:25 GMT
Hi Alex,
Sorry for letting you wait for so long.
I have contacted the bug owner for this issue. Yes, they have confirmed
that my troubleshooting way is correct, it is PrintDlg API fails with Flags
0x400 that caused Winform PrintPreviewControl throw the exception.
However, the root cause for the problem is still that there is no default
printer for the test account. We can do the test like this:
1. Do your repro logged in as "A" and using Run-As "B"
2. Now log out of the machine and re-log in as "B"
3. Add a new printer and set it as the default (there should be no current
printers other than possibly a fax "printer")
4. Now log off and back onto "a"
5. Redo your repro and you will see that it works.
This shows that once another account has the printer installed, no
exception will generate.
In the test on my side, if we enable ManageDocument permission on the
printer, even more, if we unchecked this permission, for "test account" the
problem will not arise anymore, it seems that turning on this permission
triggered certain flag in the system.(I am not sure if you notice this, but
this is the test result in more thatn 3 machines on my side)
>From our product team, they say that this implies that its not really a
security issue. Whats most likely happening is that by enabling
ManageDocument permission on a certain printer -- you are exposing that
printer to the other accounts -- thereby creating a default printer. Then
when you disable the permission, it doesn't actually matter since you
created the printer.
So, we suggest the following KB, which shows how to add default printer for
all new users:
"How to Add a Default Printer for All New Users"
http://support.microsoft.com/default.aspx?scid=kb;en-us;252388
Hope this makes sense to you. Thanks
Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
.
- Follow-Ups:
- Re: Printing Issue
- From: Alex Clark
- Re: Printing Issue
- References:
- Printing Issue
- From: Alex Clark
- Re: Printing Issue
- From: Collin Bennett
- Re: Printing Issue
- From: Alex Clark
- Re: Printing Issue
- From: "Jeffrey Tan[MSFT]"
- Re: Printing Issue
- From: Alex Clark
- Re: Printing Issue
- From: "Jeffrey Tan[MSFT]"
- Re: Printing Issue
- From: Alex Clark
- Re: Printing Issue
- From: Alex Clark
- Printing Issue
- Prev by Date: Re: DataGridview and SQL Insert - VS2005 Beta 2
- Next by Date: RE: unhandled exception when opening window
- Previous by thread: Re: Printing Issue
- Next by thread: Re: Printing Issue
- Index(es):
Relevant Pages
|