FileDocument Object Overview

Use the Active Server Pages (ASP) Server object’s CreateObject method to create a FileDocument object, as follows:

Set FD = Server.CreateObject("Commerce.FileDocument")

A persistable object is an object that supports structured storage, a technique used by COM objects to save information on disk for later retrieval. A structured storage file contains collections of data that are organized hierarchically into streams and storages. Streams are analogous to conventional files in that they can contain arbitrary data, but many streams can be contained within one structured storage file. (Storages are analogous to directories in a file system, and may contain streams or other storages. The FileDocument object does not make use of storages other than the root storage, which is analogous to the root directory in a file system.)

When you read from or write to structured storage using the FileDocument object, you specify both the name of the structured storage file and the name of the stream. The FileDocument object assumes that the stream is in the root storage of the structured storage file.


© 1997-1998 Microsoft Corporation. All rights reserved.