Difference between revisions of "OpenDocument"

From Lazarus wiki
Jump to navigationJump to search
m (Added LanguageBar template)
m (→‎Definition: Fix wiki markup)
Line 2: Line 2:
  
 
==Definition==
 
==Definition==
 +
 
Unit: Lazarus '''lclintf'''
 
Unit: Lazarus '''lclintf'''
  
Line 8: Line 9:
 
</syntaxhighlight>
 
</syntaxhighlight>
  
Official documentation: [http://lazarus-ccr.sourceforge.net/docs/lcl/lclintf/opendocument.html]
+
Official documentation: [http://lazarus-ccr.sourceforge.net/docs/lcl/lclintf/opendocument.html OpenDocument]
  
 
==Description==
 
==Description==

Revision as of 12:38, 29 March 2021

English (en) 中文(中国大陆)‎ (zh_CN)

Definition

Unit: Lazarus lclintf

function OpenDocument(APath: String): Boolean;

Official documentation: OpenDocument

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

See also