GDPictureImaging.TwainSetImageLayout Issue

Discussions about TWAIN & WIA scanning in GdPicture.NET using GdPictureImaging.
Post Reply
rasmuffin
Posts: 8
Joined: Sat Jul 18, 2009 1:58 am

GDPictureImaging.TwainSetImageLayout Issue

Post by rasmuffin » Tue Jul 28, 2009 7:54 pm

I am acquiring images from a 1 sided ADF. As far as the scanning goes, everything works fine except the size of the image being scanned. The default scanning size of my scanner is 8.5" x 14". I am trying to scan documents that are 8.5" x 11". Before I scan the first page I call the 'GdPictureImaging.TwainSetImageLayout(0, 0, 8.5, 11.0)' with a result value of 'True'. So it appears that everything works fine. However, only the 1st page of the scanned document is set to the 8.5" x 11.0". All the rest are scanned at 8.5" x 14.0". I tried to call the ''GdPictureImaging.TwainSetImageLayout' method before each call to 'GDPicture.TwainAcquireToGdPictureImage' but the result value is 'False' and the TwainConditionCode is 'TWCC_SEQERROR'.

Here is my code:

Code: Select all

Do
     Dim Result as Boolean = GDPictureImaging.TwainSetImageLayout(0, 0, 8.5, 11.0)
     Dim ImageID As Integer = GDPicture.TwainAcquireToGdPictureImage(WindowHandle)
     If ImageID <> 0 Then
           '... Add to PDF
           GDPicture.ReleaseGdPictureImage(ImageID)
     End If
Loop While GDPicture.TwainGetState > TwainStatus.TWAIN_SOURCE_ENABLED
Any help would be greatly appreciated. Thanks!
Steve

User avatar
Loïc
Site Admin
Posts: 5680
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: GDPictureImaging.TwainSetImageLayout Issue

Post by Loïc » Thu Jul 30, 2009 12:29 am

Hi Steve,


First your code seems to call 2 different GdPicture objects. Also, TwainSetImageLayout() should be called only in state 4.

IE:

Code: Select all

'Here check you are in state 4
GDPicture.TwainSetImageLayout(0, 0, 8.5, 11.0)
Do
     Dim ImageID As Integer = GDPicture.TwainAcquireToGdPictureImage(WindowHandle)
     If ImageID <> 0 Then
           '... Add to PDF -> What you are doing here ??
           GDPicture.ReleaseGdPictureImage(ImageID)
     End If
Loop While GDPicture.TwainGetState > TwainStatus.TWAIN_SOURCE_ENABLED
Kind regards,

Loïc

rasmuffin
Posts: 8
Joined: Sat Jul 18, 2009 1:58 am

Re: GDPictureImaging.TwainSetImageLayout Issue

Post by rasmuffin » Sun Aug 02, 2009 2:56 am

Sorry, I didn't clean up my code as well as I thought. I am only using one GDPicture Object. The reference to the GDPictureImaging object should be named GDPicture. Also, I removed the PDF code since I assumed it to be irrelevent. My actual code is as follows:

Code: Select all

               'Set the scan size to 8.5in x 11in if possible
                Dim Top, Bottom, Left, Right As Double
                GDPicture.TwainGetImageLayout(Left, Top, Right, Bottom)
                If Top >= 0 AndAlso Bottom >= 11.0 AndAlso Left >= 0 AndAlso Right >= 8.5 Then
                    GDPicture.TwainSetImageLayout(0, 0, 8.5, 11.0)
                End If
               
                Dim PDFFileNameTemp As String = My.Computer.FileSystem.GetTempFileName
                Dim PdfID As Integer = GDPicture.TwainPdfStart(PDFFileNameTemp, True, "", "", "", "", "")
                Do
                    Dim ImageID As Integer = GDPicture.TwainAcquireToGdPictureImage(WindowHandle)
                    If ImageID <> 0 Then
                        GDPicture.TwainAddGdPictureImageToPdf(PdfID, ImageID)
                        GDPicture.ReleaseGdPictureImage(ImageID)
                    End If
                Loop While GDPicture.TwainGetState > TwainStatus.TWAIN_SOURCE_ENABLED
                GDPicture.TwainPdfStop(PdfID)
Any help would be greatly appreciated.

Thanks,
Steve

User avatar
Loïc
Site Admin
Posts: 5680
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: GDPictureImaging.TwainSetImageLayout Issue

Post by Loïc » Mon Aug 03, 2009 5:12 am

Hi Steve,

Please provide code snippet from the TWAIN device opening. What you done before is important to understand your scanner behavior.

Also, provide a log. See this topic for steps to follow: viewtopic.php?t=1486

Kind regards,

Loïc

rasmuffin
Posts: 8
Joined: Sat Jul 18, 2009 1:58 am

Re: GDPictureImaging.TwainSetImageLayout Issue

Post by rasmuffin » Mon Aug 03, 2009 8:30 pm

Printer: HP LaserJet M1522nf
OS: Vista Home Premium SP2

Attached is my entire code:

Code: Select all

           Try
                GDPicture.TwainOpenDefaultSource(WindowHandle)
                GDPicture.TwainSetHideUI(True)
                Dim ResultTemp As Boolean = False
                ResultTemp = GDPicture.TwainSetIndicators(False)
                ResultTemp = GDPicture.TwainSetAutoBrightness(True)
                ResultTemp = GDPicture.TwainSetAutoScan(True)

                'Get Available Scanning Locations
                Dim DocumentHandling As New List(Of eDocumentHandlingSelect)
                If GDPicture.TwainHasFeeder Then
                    'Set the feeder as the scan location
                    GDPicture.TwainSetAutoFeed(True) 'Set AutoFeed Enabled
                End If

                'Set to B&W
                GDPicture.TwainSetPixelType(Global.GdPicture.TwainPixelType.TWPT_BW)
                GDPicture.TwainSetBitDepth(1)

                'Set resolution to 150 if possible
                Dim AvailableXResolutions As New List(Of Double)
                For CurrentAvailableResolution As Integer = 1 To GDPicture.TwainGetAvailableXResolutionCount
                    AvailableXResolutions.Add(GDPicture.TwainGetAvailableXResolutionNo(CurrentAvailableResolution))
                Next
                Dim AvailableResolutions As New List(Of Double)
                For CurrentAvailableResolution As Integer = 1 To GDPicture.TwainGetAvailableYResolutionCount
                    Dim ResolutionTemp As Double = GDPicture.TwainGetAvailableYResolutionNo(CurrentAvailableResolution)
                    If AvailableXResolutions.Contains(ResolutionTemp) Then
                        'The item is in both the x and y available resolutions
                        AvailableResolutions.Add(ResolutionTemp)
                    End If
                Next
                If AvailableResolutions.Contains(150) Then
                    GDPicture.TwainSetResolution(150)
                ElseIf AvailableResolutions.Count > 0 Then
                    'Set the resolution to 150 or greater if available
                    AvailableResolutions.Sort()
                    Dim ResolutionToUse As Integer = AvailableResolutions(0)
                    For Each ResolutionTemp As Integer In AvailableResolutions
                        If ResolutionTemp >= 150 Then
                            ResolutionToUse = ResolutionTemp
                            Exit For
                        End If
                    Next
                    GDPicture.TwainSetResolution(ResolutionToUse)
                End If

                'Set the scan size to 8.5in x 11in if possible
                Dim Top, Bottom, Left, Right As Double
                GDPicture.TwainGetImageLayout(Left, Top, Right, Bottom)
                If Top >= 0 AndAlso Bottom >= 11.0 AndAlso Left >= 0 AndAlso Right >= 8.5 Then
                    GDPicture.TwainSetImageLayout(0, 0, 8.5, 11.0)
                End If

                Dim PDFFileNameTemp As String = My.Computer.FileSystem.GetTempFileName
                Dim PdfID As Integer = GDPicture.TwainPdfStart(PDFFileNameTemp, True, "", "", "", "", "")
                Do
                    Dim ImageID As Integer = GDPicture.TwainAcquireToGdPictureImage(WindowHandle)
                    If ImageID <> 0 Then
                        GDPicture.TwainAddGdPictureImageToPdf(PdfID, ImageID)
                        GDPicture.ReleaseGdPictureImage(ImageID)
                    End If
                Loop While GDPicture.TwainGetState > TwainStatus.TWAIN_SOURCE_ENABLED
                GDPicture.TwainPdfStop(PdfID)

                Dim PDFMemoryStreamTemp As System.IO.MemoryStream
                If My.Computer.FileSystem.FileExists(PDFFileNameTemp) Then
                    Using FileStreamTemp As New System.IO.FileStream(PDFFileNameTemp, FileMode.Open, FileAccess.Read)
                        Dim ArrayTemp(FileStreamTemp.Length) As Byte
                        FileStreamTemp.Read(ArrayTemp, 0, FileStreamTemp.Length)
                        FileStreamTemp.Close()
                        PDFMemoryStreamTemp = New System.IO.MemoryStream(ArrayTemp)
                    End Using
                    My.Computer.FileSystem.DeleteFile(PDFFileNameTemp)
                End If
                Return PDFMemoryStreamTemp
            Catch ex As Exception
                MsgBox.Show("There was an error scanning the document." & vbCrLf & ex.Message)
            Finally
                GDPicture.TwainCloseSource()
                GDPicture.TwainCloseSourceManager(WindowHandle)
            End Try

Here is the log:

Code: Select all

#GdTwain Log Start. Version: 630

RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 1
-------------------
Start: OpenSource.
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 1
-------------------
Start: OpenSourceManager.
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 1
-------------------
DSM library loaded: C:\Windows\TWAIN_32.DLL
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 1
-------------------
Entry point of the DSM found.
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 1
-------------------
End: OpenSourceManager.
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 3
-------------------
::DS operation. DG: DG_CONTROL - DAT: DAT_CAPABILITY - MSG: MSG_SET ->RC: TWRC_SUCCESS
-------------------
Start: SetXferMech.
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 4
-------------------
::DS operation. DG: DG_CONTROL - DAT: DAT_CAPABILITY - MSG: MSG_SET ->RC: TWRC_SUCCESS
-------------------
End: SetXferMech.
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 4
-------------------
End: OpenSource.
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 4
-------------------
::DS operation. DG: DG_CONTROL - DAT: DAT_CAPABILITY - MSG: MSG_SET ->RC: TWRC_SUCCESS
-------------------
::DS operation. DG: DG_CONTROL - DAT: DAT_CAPABILITY - MSG: MSG_SET ->RC: TWRC_SUCCESS
-------------------
Start: SetAutoScan.
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 4
-------------------
Start: SetAutoFeed.
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 4
-------------------
::DS operation. DG: DG_CONTROL - DAT: DAT_CAPABILITY - MSG: MSG_SET ->RC: TWRC_SUCCESS
-------------------
CAP_FEEDERENABLED. Result for Set True.
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 4
-------------------
::DS operation. DG: DG_CONTROL - DAT: DAT_CAPABILITY - MSG: MSG_SET ->RC: TWRC_FAILURE CC: TWCC_CAPBADOPERATION
-------------------
CAP_AUTOFEED. Result for Set True.
RC:   TWRC_FAILURE
CC:   TWCC_CAPBADOPERATION
State: 4
-------------------
Start: NegotiateXferCount.
RC:   TWRC_FAILURE
CC:   TWCC_CAPBADOPERATION
State: 4
-------------------
::DS operation. DG: DG_CONTROL - DAT: DAT_CAPABILITY - MSG: MSG_SET ->RC: TWRC_SUCCESS
-------------------
End: NegotiateXferCount.
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 4
-------------------
End: SetAutoFeed.
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 4
-------------------
::DS operation. DG: DG_CONTROL - DAT: DAT_CAPABILITY - MSG: MSG_SET ->RC: TWRC_FAILURE CC: TWCC_CAPUNSUPPORTED
-------------------
End: SetAutoScan True.
RC:   TWRC_FAILURE
CC:   TWCC_CAPUNSUPPORTED
State: 4
-------------------
Start: LoadCapValuesN.
RC:   TWRC_FAILURE
CC:   TWCC_CAPUNSUPPORTED
State: 4
-------------------
::DS operation. DG: DG_CONTROL - DAT: DAT_CAPABILITY - MSG: MSG_GETCURRENT ->RC: TWRC_SUCCESS
-------------------
End: LoadCapValuesN.
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 4
-------------------
::DS operation. DG: DG_CONTROL - DAT: DAT_CAPABILITY - MSG: MSG_GETCURRENT ->RC: TWRC_SUCCESS
-------------------
::DS operation. DG: DG_CONTROL - DAT: DAT_CAPABILITY - MSG: MSG_SET ->RC: TWRC_SUCCESS
-------------------
::DS operation. DG: DG_CONTROL - DAT: DAT_CAPABILITY - MSG: MSG_GETCURRENT ->RC: TWRC_SUCCESS
-------------------
::DS operation. DG: DG_CONTROL - DAT: DAT_CAPABILITY - MSG: MSG_SET ->RC: TWRC_SUCCESS
-------------------
Start: SetAutoFeed.
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 4
-------------------
::DS operation. DG: DG_CONTROL - DAT: DAT_CAPABILITY - MSG: MSG_SET ->RC: TWRC_SUCCESS
-------------------
CAP_FEEDERENABLED. Result for Set True.
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 4
-------------------
::DS operation. DG: DG_CONTROL - DAT: DAT_CAPABILITY - MSG: MSG_SET ->RC: TWRC_FAILURE CC: TWCC_CAPBADOPERATION
-------------------
CAP_AUTOFEED. Result for Set True.
RC:   TWRC_FAILURE
CC:   TWCC_CAPBADOPERATION
State: 4
-------------------
Start: NegotiateXferCount.
RC:   TWRC_FAILURE
CC:   TWCC_CAPBADOPERATION
State: 4
-------------------
::DS operation. DG: DG_CONTROL - DAT: DAT_CAPABILITY - MSG: MSG_SET ->RC: TWRC_SUCCESS
-------------------
End: NegotiateXferCount.
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 4
-------------------
End: SetAutoFeed.
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 4
-------------------
::DS operation. DG: DG_CONTROL - DAT: DAT_CAPABILITY - MSG: MSG_SET ->RC: TWRC_SUCCESS
-------------------
::DS operation. DG: DG_CONTROL - DAT: DAT_CAPABILITY - MSG: MSG_SET ->RC: TWRC_SUCCESS
-------------------
Start: LoadCapValuesN.
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 4
-------------------
::DS operation. DG: DG_CONTROL - DAT: DAT_CAPABILITY - MSG: MSG_GET ->RC: TWRC_SUCCESS
-------------------
End: LoadCapValuesN.
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 4
-------------------
Start: LoadCapValuesN.
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 4
-------------------
::DS operation. DG: DG_CONTROL - DAT: DAT_CAPABILITY - MSG: MSG_GET ->RC: TWRC_SUCCESS
-------------------
End: LoadCapValuesN.
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 4
-------------------
::DS operation. DG: DG_CONTROL - DAT: DAT_CAPABILITY - MSG: MSG_SET ->RC: TWRC_SUCCESS
-------------------
::DS operation. DG: DG_CONTROL - DAT: DAT_CAPABILITY - MSG: MSG_SET ->RC: TWRC_SUCCESS
-------------------
::DS operation. DG: DG_IMAGE - DAT: DAT_IMAGELAYOUT - MSG: MSG_GET ->RC: TWRC_SUCCESS
-------------------
::DS operation. DG: DG_IMAGE - DAT: DAT_IMAGELAYOUT - MSG: MSG_SET ->RC: TWRC_SUCCESS
-------------------
Start: AcquireNative.
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 4
Source: HP LJ M1522nf Scan TWAIN
Manufacturer: Hewlett-Packard
-------------------
::DS operation. DG: DG_CONTROL - DAT: DAT_CAPABILITY - MSG: MSG_GETCURRENT ->RC: TWRC_SUCCESS
-------------------
Start: WaitForXfer.
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 4
-------------------
::DS operation. DG: DG_CONTROL - DAT: DAT_CAPABILITY - MSG: MSG_GETCURRENT ->RC: TWRC_SUCCESS
-------------------
Start: SetXferMech.
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 4
-------------------
::DS operation. DG: DG_CONTROL - DAT: DAT_CAPABILITY - MSG: MSG_SET ->RC: TWRC_SUCCESS
-------------------
End: SetXferMech.
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 4
-------------------
Start: EnableSource.
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 4
-------------------
::DS operation. DG: DG_CONTROL - DAT: DAT_USERINTERFACE - MSG: MSG_ENABLEDS ->RC: TWRC_SUCCESS
-------------------
End: EnableSource.
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 5
-------------------
::DS operation. DG: DG_CONTROL - DAT: DAT_EVENT - MSG: MSG_PROCESSEVENT ->RC: TWRC_NOTDSEVENT CC: TWCC_SUCCESS
-------------------
::DS operation. DG: DG_CONTROL - DAT: DAT_EVENT - MSG: MSG_PROCESSEVENT ->RC: TWRC_NOTDSEVENT CC: TWCC_SUCCESS
-------------------
::DS operation. DG: DG_CONTROL - DAT: DAT_EVENT - MSG: MSG_PROCESSEVENT ->RC: TWRC_NOTDSEVENT CC: TWCC_SUCCESS
-------------------
::DS operation. DG: DG_CONTROL - DAT: DAT_EVENT - MSG: MSG_PROCESSEVENT ->RC: TWRC_NOTDSEVENT CC: TWCC_SUCCESS
-------------------
::DS operation. DG: DG_CONTROL - DAT: DAT_EVENT - MSG: MSG_PROCESSEVENT ->RC: TWRC_NOTDSEVENT CC: TWCC_SUCCESS
-------------------
::DS operation. DG: DG_CONTROL - DAT: DAT_EVENT - MSG: MSG_PROCESSEVENT ->RC: TWRC_NOTDSEVENT CC: TWCC_SUCCESS
-------------------
::DS operation. DG: DG_CONTROL - DAT: DAT_EVENT - MSG: MSG_PROCESSEVENT ->RC: TWRC_NOTDSEVENT CC: TWCC_SUCCESS
-------------------
::DS operation. DG: DG_CONTROL - DAT: DAT_EVENT - MSG: MSG_PROCESSEVENT ->RC: TWRC_NOTDSEVENT CC: TWCC_SUCCESS
-------------------
::DS operation. DG: DG_CONTROL - DAT: DAT_EVENT - MSG: MSG_PROCESSEVENT ->RC: TWRC_NOTDSEVENT CC: TWCC_SUCCESS
-------------------
::DS operation. DG: DG_CONTROL - DAT: DAT_EVENT - MSG: MSG_PROCESSEVENT ->RC: TWRC_NOTDSEVENT CC: TWCC_SUCCESS
-------------------
::DS operation. DG: DG_CONTROL - DAT: DAT_EVENT - MSG: MSG_PROCESSEVENT ->RC: TWRC_NOTDSEVENT CC: TWCC_SUCCESS
-------------------
::DS operation. DG: DG_CONTROL - DAT: DAT_EVENT - MSG: MSG_PROCESSEVENT ->RC: TWRC_NOTDSEVENT CC: TWCC_SUCCESS
-------------------
::DS operation. DG: DG_CONTROL - DAT: DAT_EVENT - MSG: MSG_PROCESSEVENT ->RC: TWRC_NOTDSEVENT CC: TWCC_SUCCESS
-------------------
::DS operation. DG: DG_CONTROL - DAT: DAT_EVENT - MSG: MSG_PROCESSEVENT ->RC: TWRC_NOTDSEVENT CC: TWCC_SUCCESS
-------------------
::DS operation. DG: DG_CONTROL - DAT: DAT_EVENT - MSG: MSG_PROCESSEVENT ->RC: TWRC_NOTDSEVENT CC: TWCC_SUCCESS
-------------------
::DS operation. DG: DG_CONTROL - DAT: DAT_EVENT - MSG: MSG_PROCESSEVENT ->RC: TWRC_NOTDSEVENT CC: TWCC_SUCCESS
-------------------
::DS operation. DG: DG_CONTROL - DAT: DAT_EVENT - MSG: MSG_PROCESSEVENT ->RC: TWRC_NOTDSEVENT CC: TWCC_SUCCESS
-------------------
::DS operation. DG: DG_CONTROL - DAT: DAT_EVENT - MSG: MSG_PROCESSEVENT ->RC: TWRC_DSEVENT CC: TWCC_SUCCESS
-------------------
MessageHook: MSG_XFERREADY.
RC:   TWRC_DSEVENT
CC:   TWCC_SUCCESS
State: 6
-------------------
Start: DoOneTransfer.
RC:   TWRC_DSEVENT
CC:   TWCC_SUCCESS
State: 6
-------------------
::DS operation. DG: DG_CONTROL - DAT: DAT_CAPABILITY - MSG: MSG_GETCURRENT ->RC: TWRC_SUCCESS
-------------------
Start: NativeXferHandler.
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 6
-------------------
::DS operation. DG: DG_IMAGE - DAT: DAT_IMAGENATIVEXFER - MSG: MSG_GET ->RC: TWRC_XFERDONE CC: TWCC_SUCCESS
-------------------
End: NativeXferHandler.
RC:   TWRC_XFERDONE
CC:   TWCC_SUCCESS
State: 7
-------------------
Start: EndXfer.
RC:   TWRC_XFERDONE
CC:   TWCC_SUCCESS
State: 7
-------------------
::DS operation. DG: DG_CONTROL - DAT: DAT_PENDINGXFERS - MSG: MSG_ENDXFER ->RC: TWRC_SUCCESS
-------------------
End: EndXfer.
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 6
-------------------
End: DoOneTransfer.
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 6
-------------------
End: ModalEventLoop.
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 6
-------------------
End: WaitForXfer.
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 6
-------------------
End: AcquireNative.
RC:   TWRC_XFERDONE
CC:   TWCC_SUCCESS
State: 6
-------------------
Start: AcquireNative.
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 6
Source: HP LJ M1522nf Scan TWAIN
Manufacturer: Hewlett-Packard
-------------------
::DS operation. DG: DG_CONTROL - DAT: DAT_CAPABILITY - MSG: MSG_GETCURRENT ->RC: TWRC_SUCCESS
-------------------
Start: WaitForXfer.
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 6
-------------------
Start: DoOneTransfer.
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 6
-------------------
::DS operation. DG: DG_CONTROL - DAT: DAT_CAPABILITY - MSG: MSG_GETCURRENT ->RC: TWRC_SUCCESS
-------------------
Start: NativeXferHandler.
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 6
-------------------
::DS operation. DG: DG_IMAGE - DAT: DAT_IMAGENATIVEXFER - MSG: MSG_GET ->RC: TWRC_XFERDONE CC: TWCC_SUCCESS
-------------------
End: NativeXferHandler.
RC:   TWRC_XFERDONE
CC:   TWCC_SUCCESS
State: 7
-------------------
Start: EndXfer.
RC:   TWRC_XFERDONE
CC:   TWCC_SUCCESS
State: 7
-------------------
::DS operation. DG: DG_CONTROL - DAT: DAT_PENDINGXFERS - MSG: MSG_ENDXFER ->RC: TWRC_SUCCESS
-------------------
End: EndXfer.
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 5
-------------------
End: DoOneTransfer.
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 5
-------------------
End: WaitForXfer.
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 5
-------------------
AcquireNative: Multi transfer mode -> closing source.
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 5
-------------------
Start: DisableSource.
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 5
-------------------
::DS operation. DG: DG_CONTROL - DAT: DAT_USERINTERFACE - MSG: MSG_DISABLEDS ->RC: TWRC_SUCCESS
-------------------
End: DisableSource.
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 4
-------------------
Start: CloseSource.
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 4
Source: HP LJ M1522nf Scan TWAIN
Manufacturer: Hewlett-Packard
-------------------
End: CloseSource.
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 3
-------------------
End: AcquireNative.
RC:   TWRC_XFERDONE
CC:   TWCC_SUCCESS
State: 3
-------------------
Start: CloseSourceManager.
RC:   TWRC_XFERDONE
CC:   TWCC_SUCCESS
State: 3
-------------------
End: CloseSourceManager.
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 2
-------------------
Let me know if you need anything else.

Thanks,
Steve

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest