FormFix v6.0 for .NET - Updated
FormSetFile Class
Members 



Accusoft.FormDirectorSdk Namespace : FormSetFile Class
Performs file I/O for form set files.
Object Model
FormSetFile ClassFormDefinitionCollection ClassFormDefinition ClassDataItem ClassDataItemCollection ClassDataItem ClassDataItemCollection ClassDataItem Class
Syntax
'Declaration
 
Public Class FormSetFile 
   Inherits FormSet
'Usage
 
Dim instance As FormSetFile
public class FormSetFile : FormSet 
public ref class FormSetFile : public FormSet 
Remarks

This class inherits all the functionality of the FormSet class and adds the ability to read and write form set files. It adds a Filename property, which should contain an absolute pathname to the form set file.

This class supports the locking facility defined by the FormSet class. When you call the Lock method, this object will open the form set file for exclusive, read/write access. If the form set file is already open (perhaps by another user, making changes to the same form set), Lock will throw an exception. When you call the Unlock method, this object will close the file.

To help avoid possible file overwrites, you must lock a form set file before calling the Write method. If you are writing a form-editing application, you should usually lock the form set file as soon as the user asks you to open the file. This will give you the opportunity to immediately warn a user if the form set file is already open, instead of waiting until a user has made changes and wants to save the form set.

In addition to managing I/O for form set files, this object also makes it easy to create new form definition files. Using the NewFormFilenamePrefix and NewFormFilenameSuffix properties, it will create a unique filename for a new form definition file. The new filename will have the NewFormFilenamePrefix, followed by a 5 digit integer, followed by the NewFormFilenameSuffix. This object will pick an integer that makes the file unique.

Note: This class implements the IDisposable interface and you should always call the Dispose method when you have finished using it.

Inheritance Hierarchy

System.Object
   Accusoft.FormDirectorSdk.FormSet
      Accusoft.FormDirectorSdk.FormSetFile

See Also

Reference

FormSetFile Members
Accusoft.FormDirectorSdk Namespace

Is this page helpful?
Yes No
Thanks for your feedback.