- 1. This happens when the code is part of a Web Forms application, even with ASPNET in the Administrators group.
2. It also happens when the code is part of a Windows Forms application.
3. Equivalent code in straight C++ works fine (StartDoc returns a print job number).
4. I'm calling EnablePrinter during initialization, and again immediately before StartDoc. EnablePrinter returns 1 in both places.
I can post relevant source code snippets, if requested.