Sign in Join
Wiki copytemporary

OpenDocument

English · 中文(中国)

Definition

Unit: Lazarus lclintf

pascal
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.

On both macOS and Windows, OpenDocument will also open a URL using the default web browser.

Example

pascal
uses 
  LCLIntf;
begin
  OpenDocument('readme.pdf');

See also


From the Free Pascal wiki, page "OpenDocument", as it stood on 2021-11-28 after a change by Alextp, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's Licensing page. If you have concerns about this material, message the admin.

Revision 3, last changed by WikiArchive .

Talk about this page

Nobody has opened a bench for this page yet. Sign in to open one.