[python-win32] How to change print copies

Pavel Olifer pavel.olifer at gmail.com
Fri Apr 24 06:00:07 EDT 2020


and some  interesting things that if i change copies using this
attributes['pDevMode'].Copies = 4
and than
print('Copies= ', win32print.GetPrinter(handle, level)['pDevMode'].Copies)
i see 4 qty. but if i print using

win32api.ShellExecute(
        1,
        'printto',
        path_to_file,
        '{}'.format(printer_name),
        '.',
        0
    )

printer printed only 1 copy.

--po

On Fri, Apr 24, 2020 at 8:35 AM Pavel Olifer <pavel.olifer at gmail.com> wrote:

> Dear Tim,
> "Have you seen a multi-copy setting work using the native driver?" - i
> didn't catch this sentence... did you mean did i use native driver in
> python code?
> All MFP on my job only Konika-Minolta devices.
> -- pavel
>
>
> On Fri, Apr 24, 2020 at 8:11 AM Tim Roberts <timr at probo.com> wrote:
>
>> On Apr 22, 2020, at 10:10 PM, Pavel Olifer <pavel.olifer at gmail.com>
>> wrote:
>> >
>> > i use your package for changing  printer settings (duplex, copies).
>> > for duplex it is work, but for copies it doesn’t.
>>
>> Some Windows printers don’t honor the “Copies” selection directly.  The
>> application has to generate multiple copies on its own.  Have you seen a
>> multi-copy setting work using the native driver?
>>>> Tim Roberts, timr at probo.com
>> Providenza & Boekelheide, Inc.
>>
>> _______________________________________________
>> python-win32 mailing list
>> python-win32 at python.org
>> https://mail.python.org/mailman/listinfo/python-win32
>>
>
>
> --
> -- po
> +7 (977) 004 67 53
>


-- 
-- po
+7 (977) 004 67 53
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-win32/attachments/20200424/dd02fcf6/attachment.html>


More information about the python-win32 mailing list