Detect paper

Issue #91 new
Tim created an issue

I can use the CurrentSource.Capabilities.CapPaperDetectable.IsSupported property to determine if a scanner can detect the presence of paper. If that capability is available, how do I use it to detect whether paper is in the scanner?

Comments (2)

  1. Paweł Piwowarczyk

    Hi,

    I'm checking this capability like:

    dataSource.Open();

                if ( dataSource.Capabilities.CapPaperDetectable.CanGet && dataSource.Capabilities.CapPaperDetectable.GetCurrent() == BoolType.True &&
                    dataSource.Capabilities.CapFeederLoaded..GetCurrent() == BoolType.False)
                {
                    throw new Exception("Not loaded");
                }
    

    dosn't matter if is loaded or not it is retrunig False. Any suggestions?

  2. Log in to comment