OpenDocument

This is an old revision of OpenDocument, edited by Alextp at . The current revision is 86042.

Alextp moved page [[opendocument]] to [[OpenDocument]]: casing must be Pascal-casing

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.

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

Example

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

See also