Difference between revisions of "ShowPdfFile"
(One intermediate revision by the same user not shown) | |||
Line 2: | Line 2: | ||
[[category:User-interface functions]] | [[category:User-interface functions]] | ||
− | Opens a | + | (new to 4.0) |
+ | |||
+ | = ShowPdfFile( filename, ''bookmark, search, bookmarks'' ) = | ||
+ | |||
+ | Opens a Pdf file (on computers where Adobe Acrobat or Acrobat Reader is installed). If acrobat exchange is installed on the computer, optional parameters can be used to specify which bookmark to open to, whether to show a search dialog, and whether to show the bookmark window. In ADE, or if the filename is an empty string, no PDF is opened. Returns 0 if acrobat is not installed, 1 if acrobat but not xchange is installed, and 2 if both are installed. | ||
+ | |||
+ | ShowPdfFile is typically called from a button script (i.e., create a button, and place a call to ShowPdfFile in the script attribute). | ||
+ | |||
+ | = Full declaration = | ||
ShowPdfFile( filename : textual ; bookmark : optional textual ; search, bookmarks: optional boolean ) | ShowPdfFile( filename : textual ; bookmark : optional textual ; search, bookmarks: optional boolean ) | ||
+ | |||
+ | = Example = | ||
+ | |||
+ | The following opens the Analytica User Guide: | ||
+ | |||
+ | ShowPdfFile([[GetRegistryValue]]("HKLM","ANAVER","UserGuide")) | ||
= See Also = | = See Also = | ||
Line 10: | Line 24: | ||
* [[Hyperlinks in Descriptions]] | * [[Hyperlinks in Descriptions]] | ||
* [[CurrentDataDirectory]] | * [[CurrentDataDirectory]] | ||
+ | * [[GetRegistryValue]] |
Revision as of 10:09, 9 February 2007
(new to 4.0)
ShowPdfFile( filename, bookmark, search, bookmarks )
Opens a Pdf file (on computers where Adobe Acrobat or Acrobat Reader is installed). If acrobat exchange is installed on the computer, optional parameters can be used to specify which bookmark to open to, whether to show a search dialog, and whether to show the bookmark window. In ADE, or if the filename is an empty string, no PDF is opened. Returns 0 if acrobat is not installed, 1 if acrobat but not xchange is installed, and 2 if both are installed.
ShowPdfFile is typically called from a button script (i.e., create a button, and place a call to ShowPdfFile in the script attribute).
Full declaration
ShowPdfFile( filename : textual ; bookmark : optional textual ; search, bookmarks: optional boolean )
Example
The following opens the Analytica User Guide:
ShowPdfFile(GetRegistryValue("HKLM","ANAVER","UserGuide"))
See Also
Comments
Enable comment auto-refresher