ComponentOne VSView 8.0
LoadDoc Method (VSPrinter)

Loads a document from disk.

Syntax

[form!]VSPrinter.LoadDoc FileName As String, [ Append As Variant ]

Remarks

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.

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum  |  Documentation Feedback