OpenDocument

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

/* Description */

Template:Translate

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.

On Windows at least, trying to open documents with spaces in it will not work. There is an open bug and patch for this but it has not been implemented

Example

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