Menu

#377 /copy commandline argument (or scanner-button-assignment) not working if standard is PDF. WITH FIX

1.
open
nobody
None
1
2024-07-08
2024-07-08
xantho
No

If you have PDF Output as "standard" and run iCopy with /copy commandline-switch the behavior should be (see readme.md):
"Directly copy from scanner to printer...."
This is NOT working.
If you assign Scanner-Buttons, its the same issue!

I analyzed and fixed it with a workaround:
In iCopyControl.vb
add after line 300:
settings.ScanOutput = ScanOutput.Printer
Afterwards the block looks like:

                For i = 0 To sArgs.GetUpperBound(0)
                    Select Case sArgs(i).ToLower()
                        Case "/copy", "/c"
                            settings.ScanOutput = ScanOutput.Printer
                            Copy(settings)

So iCopy always uses the Printer Output (with the selected/ last used printer) when using /copy switch.
As the button assignment also uses the /copy switch, it is also working there!

Discussion


Log in to post a comment.