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);
void __fastcall LoadFromFile(System::UnicodeString FileName, int PageNumber = 0x1, float AZoom = 1.000000E+00f, TTMSFNCWXPDFViewerRotationAngle RotateAngle = (TTMSFNCWXPDFViewerRotationAngle)(0x4));
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. |