Scanner settings

Oct 11, 2010 at 12:25 AM


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="" xmlns:xsd="">
  <ProfileName>Computer Invoice</ProfileName>
  <Source>Xerox DocuMate 510 4.0 (32-32)</Source>
  <CustomDsData />
Can anyone tell me where the scanner setting are saved. I thought it would be saved in the profile




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)
            Position += 1

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

what does strData do?




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.