Difference between revisions of "OpenDocument"
From Lazarus wiki
Jump to navigationJump to search (Added See also section; fixed syntax highlighting) |
m (Added LanguageBar template) |
||
Line 1: | Line 1: | ||
+ | {{LanguageBar}} | ||
+ | |||
==Definition== | ==Definition== | ||
Unit: Lazarus '''lclintf''' | Unit: Lazarus '''lclintf''' |
Revision as of 13:07, 2 August 2020
│ English (en) │ 中文(中国大陆) (zh_CN) │
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');