View Single Post
Old 05-28-2009   #3 (permalink)
robkeithd


Vista Busniess 64
 
 

Re: PaperSize not available when Run as Admin

Hi Alan,

Thanks for the reply

Our "real" app is 32 bit. I built the test app as both 32 and 64. We have been done a little more discovery. This seems to have something to do with splwow64.exe. If I run the test "as is" and then it again "as admin" I have the problem. If I bring up Task Manager and kill splwow64 (or wait long enough for it go away on its own) in between then the test runs fine. If I run "as admin" the first time then I don't seem to have the problem - i.e. I can turn right around and run the app as is or as admin with no problem.

So now I'm at the point where I know I need to make sure I can read the printer properties before proceeeding with the print job so my program won't just flat out die but I don't really know what to do if it turns out that I can't read the properites.

If there is some trick or tip out there it would be greatly appreiciated.
My System SpecsSystem Spec