Leadtools.Wia Send comments on this topic. | Back to Introduction - All Topics | Help Version 16.5.9.25
SaveToOneFile Property
See Also 
Leadtools.Wia Namespace > WiaAcquireOptions Structure : SaveToOneFile Property



Gets or sets a flag that indicates whether to save multiple pages to a single file.

Syntax

Visual Basic (Declaration) 
Public Property SaveToOneFile As Boolean
Visual Basic (Usage)Copy Code
Dim instance As WiaAcquireOptions
Dim value As Boolean
 
instance.SaveToOneFile = value
 
value = instance.SaveToOneFile
C# 
public bool SaveToOneFile {get; set;}
C++/CLI 
public:
property bool SaveToOneFile {
   bool get();
   void set (bool value);
}

Return Value

Flag that indicates whether to save multiple pages to a single file. Possible values are: true to save to a single file, false to save acquired pages to separate files. The default value is false.

Example

Refer to WiaSession.AcquireToFile example.

Remarks

Note: This member is ignored when using WIA version 2.0.

If the SaveToOneFile member is set to false and also the WiaAcquireOptions.OverwriteExisting member is set to false, the acquire functions will generate a new file for each acquired page from the device by generating new names of the name you specified through the WiaAcquireOptions.FileName member by adding "(N)" to the end of the file name where N represents an incremented number. If the new name currently exists it will keep generating new names until it finds a new one. If the OverwriteExisting member is set to true then the acquire functions will generate a new name and check whether it exists. If it does it overwrites that file.

Requirements

Target Platforms: Microsoft .NET Framework 3.0, Windows 2000, Windows XP, Windows Vista, Windows Server 2003 family, Windows Server 2008 family

See Also