OpenDocument

This is an old revision of OpenDocument, edited by Bart at . The current revision is 86042.

Removed Win NT "File names with spaces" workaround: this is no longer needed since Laz 1.0.8

Definition

Unit: Lazarus lclintf

function OpenDocument(APath: String): Boolean;

Official documentation: http://lazarus-ccr.sourceforge.net/docs/lcl/lclintf/opendocument.html

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');