Quantcast
Channel: Saraff.Twain.NET
Viewing all articles
Browse latest Browse all 419

New Post: Canceling a scan through code

$
0
0
Hello, ghostbust555.
privatevoid _twain32_SetupMemXferEvent(object sender,Twain32.SetupMemXferEventArgs e) {
    try {
        // ...
        e.Cancel = true; // <<< it tell scanner that does not need to scan more.// ...
    } catch(Exception ex) {
        // ...
    }
}
privatevoid _twain32_MemXferEvent(object sender,Twain32.MemXferEventArgs e) {
    try {
        // ...
        e.Cancel = true; // <<< it tell scanner that does not need to scan more.// ...
    } catch(Exception ex) {
        // ...
    }
}
privatevoid _twain32_SetupFileXferEvent(object sender,Twain32.SetupFileXferEventArgs e) {
    try {
        // ...
        e.Cancel = true; // <<< it tell scanner that does not need to scan more.// ...
    } catch(Exception ex) {
        // ...
    }
}
privatevoid _twain32_FileXferEvent(object sender,Twain32.FileXferEventArgs e) {
    try {
        // ...
        e.Cancel = true; // <<< it tell scanner that does not need to scan more.// ...
    } catch(Exception ex) {
        // ...
    }
}
privatevoid _twain32_EndXfer(object sender,Twain32.EndXferEventArgs e) {
    try {
        // ...
        e.Cancel = true; // <<< it tell scanner that does not need to scan more.// ...
    } catch(Exception ex) {
        // ...
    }
}
privatevoid _twain32_XferDone(object sender,Twain32.XferDoneEventArgs e) {
    try {
        // ...
        e.Cancel = true; // <<< it tell scanner that does not need to scan more.// ...
    } catch(Exception ex) {
        // ...
    }
}

Viewing all articles
Browse latest Browse all 419

Trending Articles