OpenDocument

From Lazarus wiki
Revision as of 16:21, 14 December 2012 by BigChimp (talk | contribs) (Created opendocument)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Template:Translate

Unit: Lazarus lclintf

function OpenDocument(APath: String): Boolean;

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