Scanner settings

Oct 11, 2010 at 12:25 AM

Hi,

I'm using the windows project and creating profiles. I can open the profiles and see the the

<?xml version="1.0"?>
<Profile xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <ProfileName>Computer Invoice</ProfileName>
  <Source>Xerox DocuMate 510 4.0 (32-32)</Source>
  <ImageAcquireFormat>BMP</ImageAcquireFormat>
  <ImageOutputFormat>Bmp</ImageOutputFormat>
  <CombineImages>false</CombineImages>
  <ProfileGuid>d79b236d-0cc8-4a25-abe6-46370861bd97</ProfileGuid>
  <CustomDsData />
  <ShowUi>true</ShowUi>
  <ModalUi>false</ModalUi>
  <ShowIndicators>true</ShowIndicators>
  <TransferMech>File</TransferMech>
  <TransferCount>-1</TransferCount>
  <CreateSubDirectoryForEachAcquire>true</CreateSubDirectoryForEachAcquire>
  <OutputDirectory>C:\MyScans\</OutputDirectory>
</Profile>
Can anyone tell me where the scanner setting are saved. I thought it would be saved in the profile

Thanks

 

 

Oct 15, 2010 at 9:04 PM

It's OK I see it now.

Next question

I save the settings and I can see the data, but if I want to edit I open the profile editor form and click the setup button, I thought I would get the same settings

but it does not shows the same settings

In twCustomDsData.vb

Dim pCustomDsData As New DataStructures.twCustomDsData
        Dim byt As Byte
        Dim Position As Int32 = 0
        Dim strData As New Text.StringBuilder

        Dim custDsDataPtr As IntPtr = Runtime.InteropServices.Marshal.AllocHGlobal(customDsData.Length)

        For Each chr As Char In customDsData
            byt = CByte(AscW(chr))
            Runtime.InteropServices.Marshal.WriteByte(custDsDataPtr, Position, byt)
            strData.Append(ChrW(byt))
            Position += 1
        Next

        pCustomDsData.InfoLength = CUInt(Position)
        pCustomDsData.hData = custDsDataPtr

what does strData do?

 

Thanks

PQSIK

Coordinator
Nov 3, 2010 at 5:39 PM

I honestly can't remember if I do anything with that varialbe or if i used to do something with it or if it was just used during debugging.

if it is really troubling you I'll dig into the code and the archive figure it out.