TTMSFNCWXPDFViewer.LoadFromFile Method
Loads a document from a local file and displays it.
API unit family: TMSFNCWXPDFViewer
Declaring type: TTMSFNCWXPDFViewer
Inherited from: TTMSFNCWXCustomPDFViewer
Syntax
procedure LoadFromFile(FileName: string; PageNumber: Integer = 1; AZoom: Single = 1; RotateAngle: TTMSFNCWXPDFViewerRotationAngle = ANGLE_DEFAULT);
Remarks
The request is ignored when the file does not exist.
Parameters
| Name | Description |
|---|---|
FileName |
The path of the document to load. |
PageNumber |
The one-based page to show first. Defaults to 1. |
AZoom |
The initial zoom factor. Defaults to 1. |
RotateAngle |
The initial rotation. Defaults to the current angle. |