OpenDocument

From Free Pascal wiki
Revision as of 19:11, 2 January 2020 by Bart (talk | contribs) (Removed Win NT "File names with spaces" workaround: this is no longer needed since Laz 1.0.8)
Jump to navigationJump to search

Definition

Unit: Lazarus lclintf

function OpenDocument(APath: String): Boolean;

Official documentation: [1]

Description

opendocument opens a document/file with the default viewer/editor registered with the operating system for that file/file extension. E.g. on Windows, the code will use the registry to look up the file association for the extension.

Example

uses 
...
lclintf
...
OpenDocument('readme.pdf');