Menu

#211 Exception (Canon Pixma scanner and HP LaserJet)

All_versions
closed
5
2012-09-30
2012-04-11
No

I've tried to use iCopy to make copies from Canon Pixma MG6250 (all-in-one device, inkjet print) to a HP LaserJet 2055dn (monochrome laser printer) and ran into this: System.ArgumentException: Value does not fall within the expected range.

What I was able to find out is that it depends on the mode selected, but I'm not sure if it's the printer or scanner causing this. The only mode that worked so far was to use "Colors" for both the scanner and printer (default setting). Using the combination Grayscale / Black & White or Text / Black & White will lead to the exception mentioned above.

Attached ZIP file contains the following: a screenshot of the exception message, 2 separate log files (one for Grayscale / BW and the other one for Text / BW setting respectively) as well as 2 separate stack trace copies (copied from the .NET exception message - again for both modes).

Could you please have a look if anything can be done about this? I'd like to use iCopy exactly for this purpose (i.e. copying documents) where printing via laser instead of inkjet makes the most sense (and also "text" mode would be most useful here for best contrast/clarity).

Thank you for an excellent utility!

PS: I'm using the iCopy 1.5.1.12 on a 32bit Windows Vista Business. Both the Pixma as well as the LaserJet are connected via network. Pixma is detected by iCopy as "WSD Scan Device" and LaserJet as "HP LaserJet P2050 Series PCL6".

Rado

Discussion

  • Radoslav Bielik

    Radoslav Bielik - 2012-04-11

    Screenshot, log, and stack trace copy

     
  • Matteo Rossi

    Matteo Rossi - 2012-04-12

    Possible Fix

     
  • Matteo Rossi

    Matteo Rossi - 2012-04-12

    Dear user,
    thank you very much for your report. Your feedback was very useful in understanding the problem. Apparently, your scan device doesn't let an application to set it to Grayscale using WIA default way. I modified the program to use another way, but I'm not sure if it is going to work.
    I uploaded the fixed version. You need to extract the content of the Release.rar archive to icopy folder and overwrite the contents.
    If you eperience any problem, please upload another log file.

    Thank you very much for your help and patience!

     
  • Radoslav Bielik

    Radoslav Bielik - 2012-04-12

    log and stacktrace after using possible fix

     
  • Radoslav Bielik

    Radoslav Bielik - 2012-04-12

    Hi, thank you for such a quick response! I've tried your updated version, but unfortunately, it is still giving me an exception in both the "Grayscale" and "Text" modes. This time the exception is slightly different than before - it is now:

    System.Runtime.InteropServices.COMException (0x8021006A): Exception from HRESULT: 0x8021006A

    I've attached new log/stack trace files. It seems the log and stack trace for grayscale/text mode are pretty much identical. Color mode works normally as before. Does this mean that the scanner might not support the grayscale/text modes at all?

    Thank you again for your help!

     
  • Matteo Rossi

    Matteo Rossi - 2012-04-12

    Possible Fix 2

     
  • Matteo Rossi

    Matteo Rossi - 2012-04-12

    Ok, another try. I uploaded a new version, please tell me how it works.

    It is possible that your scanner doesn't support grayscale and text mode, or that it doesn't support these modes with Windows Image Acquisition.
    One thing you could try is check the Preview check box in iCopy and then start a copy. A wizard will come up, where you can set the acquision parameters. If you can't set grayscale or text here, then there is a problem between your scanner and Windows Image Acquisition.

     
  • Radoslav Bielik

    Radoslav Bielik - 2012-04-12

    That might be the case - I was testing with preview enabled most of the time, and when using "Colors" the Preview Window only has 2 options: 1) Color Picture and 2) Custom Settings. There's a link at the bottom saying "You can also: Adjust the quality of the scanned picture" but when clicked, it gives a .NET Exception "Attempted to divide by zero." Screenshot attached.

    Anyway, I tested your most recent update and the result is pretty much the same (same exception). I have compared the stack trace as well as the log using WinMerge and there's essentially no difference. The stack trace files are identical (except for the name of one assembly which seems to be random at each run) and the log files shows only 1 difference:

        Couldn't set intent. Doing this the old school
        E: Couldn't set intent. Report error
    

    (previous log had additional line in between the 2 saying "Intent set to GrayscaleIntent")

    I guess I'll have to stick with "Colors" then. :-(

    One more question - if I can: The log files also says this:

        Brightness set to 0 -> 0
        Contrast set to 20 -> 0
    

    Does the zero at the end mean that it failed to set the contrast? I've tried to set contrast to 20 when copying a text document but couldn't see much difference in text clarity.

    Thanks again for your help!

     
  • Radoslav Bielik

    Radoslav Bielik - 2012-04-12

    screenshot of preview with scan settings

     
  • Matteo Rossi

    Matteo Rossi - 2012-04-13

    One more question - if I can: The log files also says this:

    Brightness set to 0 -> 0
    Contrast set to 20 -> 0

    Does the zero at the end mean that it failed to set the contrast? I've
    tried to set contrast to 20 when copying a text document but couldn't see
    much difference in text clarity.

    iCopy has a range for brightness and contrast that goes from --100 to 100. Since some scanners have different ranges, iCopy converts the value accordingly. The problem with your scanner is, well, that the range is from 0 to 0. :-( You can see it from the log file. All the scanner supported properties are listed.
    The lack of support for brightness and contrast makes me think that your scanner has limited support for Windows Image Acquisition, so there are only a few settings to play with.
    In the fixed version of the program, I tried to force the Channels Per Pixel property to 1 and the Bits per Pixel property to 8 (or 1 for text), but these properties appear to be read-only in your scanner. At this point, I don't know what else to do.

    Last thing to try is to update the scanner software, maybe they have improved the driver.

     
  • Radoslav Bielik

    Radoslav Bielik - 2012-04-13

    Thank you again for your help. I'll play with driver update over the weekend and will let you know if it improved anything.

     
  • Matteo Rossi

    Matteo Rossi - 2012-09-30
    • status: open --> closed
     

Log in to post a comment.