There are two ways to programmatically export a report snapshot object from a Microsoft Access database.
The following table contains information about the first three arguments of the SendObject method used to send a report snapshot in a mail message. Note, only the first three arguments of the SendObject method are dicussed here as they are how you specify a report as a snapshot file. For information on the other arguments to the SendObject method, see that topic in the Microsoft Access on-line help.
Argument | Description |
---|---|
Object Type | A constant representing the type of object you want to send. For report snapshots the constant is acSendReport. |
Object Name | A string value representing the name of the report to include in the mail message as a snapshot file. |
Output Format | To output a report snapshot, set this argument to the string value: "Snapshot Format". |
The following table contains information about the first four arguments of the OutputTo method used to save a report snapshot to a snapshot file on disk. Note, only the first four arguments of the OutputTo method are described here because they are how you specify that a report be saved to disk as a snapshot file. For information on the other arguments to the OutputTo method, see that topic in the Microsoft Access on-line help.
Argument | Description |
---|---|
Object Type | A constant representing the type of object you want to save to disk. For report snapshots the constant is acOutputReport. |
Object Name | A string value representing the name of the report to be saved to disk. |
Output Format | To save a report snapshot, set this argument to the string value: "Snapshot Format". |
Output File | A string value representing the full path and file name of the snapshot file you want to save to disk. For example: "c:\my documents\mysnapshot.snp" |