Control Reference > VSPrinter Control > VSPrinter Methods > LoadDoc Method (VSPrinter) |
Loads a document from disk.
[form!]VSPrinter.LoadDoc FileName As String, [ Append As Variant ]
The SaveDoc and LoadDoc methods are useful for loading documents that take a long time to generate and do not change often, or to distribute documents that you create so that others can view and print them.
The parameters for the LoadDoc method are described below:
Parameter |
Description |
FileName |
Name of the file to be loaded. The file must exist and must have been saved with the SaveDoc method, or an error will occur. |
Append |
Optional parameter that specifies whether the document being loaded should be appended to the current document or whether it should replace the current document. If omitted, the document being loaded replaces the existing document. |
While the document is being loaded, the VSPrinter control fires the LoadingDoc event before each page is loaded. This allows you to provide user feedback while the document is loading. You may also cancel the loading operation.