[python-win32] why do I get error 1804 from win32print.SetJob?

2018-11-15 Thread Glenn Linderman
No answers on stackoverflow so maybe it is a bug I should report here. I try to change a job name in Win32 spooler using Python 3.6 and win32print on Windows 10. [And I tell the spooler to save all my

Re: [python-win32] why do I get error 1804 from win32print.SetJob?

2018-11-16 Thread Glenn Linderman
On 11/16/2018 12:08 PM, Tim Roberts wrote: Glenn Linderman wrote: Here is the code I'm using. Note that the variables js and rename are the control variables if you need to tweak this to run in your environment. js contains a substring of an existing document name, and the idea is tha

Re: [python-win32] Login dialog user ID restriction?

2018-11-18 Thread Glenn Linderman
On 11/16/2018 12:32 PM, Scorby, Gary wrote: We have been using the login dialog that comes with pywin32 for over a decade.  Works great. We have a client who until recently required a 4 character max user ID.  Now they want an option for up to a 19 character user ID.  I told them no problem

Re: [python-win32] why do I get error 1804 from win32print.SetJob?

2018-11-20 Thread Glenn Linderman
On 11/19/2018 11:52 AM, Tim Roberts wrote: Glenn Linderman wrote: I've not coded up the equivalent C program, as I don't have a C compiler installed here, and haven't done any C coding for 8 or 10 years. Were you able to reproduce the problem, or is your error analysis

Re: [python-win32] why do I get error 1804 from win32print.SetJob?

2018-11-20 Thread Glenn Linderman
On 11/20/2018 10:49 AM, Tim Roberts wrote: Glenn Linderman wrote: Of course, the GetJob is decoding the structure properly... but its PyBuildValue parameter strings are much more complex than the PyArg_ParseTupleAndKewyords parameter strings, and there is mention of TCHAR in the JobToPy, but