Difference between revisions of "OpenDocument"
From Lazarus wiki
Jump to navigationJump to search (Created opendocument) |
m |
||
Line 2: | Line 2: | ||
Unit: Lazarus '''lclintf''' | Unit: Lazarus '''lclintf''' | ||
+ | |||
+ | Official documentation: [http://lazarus-ccr.sourceforge.net/docs/lcl/lclintf/opendocument.html] | ||
<syntaxhighlight> | <syntaxhighlight> |
Revision as of 18:21, 14 December 2012
Unit: Lazarus lclintf
Official documentation: [1]
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');