| Publication Command Line Arguments |
Publications have support for some command line arguments: if you want to call your publication from your application and display a specific page for instance, or just run it using the Start|Run option of Windows. The following command line switches are supported: page, mapid, ignoreuserpos, and deactivate. But you can add your own switches too thanks to HEScript: see below. Command line is especially useful with the "Only one instance of the publication" option (available in Security -> Global Protection). For instance:
Syntax: PUBFILE.EXE page [page to display] Use this switch to specify the virtual path to the HTML page that should be displayed by the publication. Examples: MYPUBFILE.EXE page comments.htm PUBFILE.EXE page "my path\page1.htm" When you have spaces, be sure to enclose the path in quotes ("").
Syntax: PUBFILE.EXE mapid [map ID of the page to display] This switch can be used only if a map file is created. Specify the Map ID (integer) of the page you want to display. Example: MYPUBFILE.EXE mapid 1014
Syntax: PUBFILE.EXE deactivate Only recognized if you enable deactivation for a certificate which lets the end user uninstall his registration data.
Syntax: PUBFILE.EXE ignoreuserpos While it's helpful to allow the end user to set size and move the window around, sometimes users will move to a 2nd monitor, then run without it or forget to turn it on, and they will "lose" it. This command line option will open the publication screen-centered.
If you work with HEScript, it is possible to read the parameters passed to the publication .exe file when the latter is run. You can do this using the ParamStr internal function. |
This is the online documentation of HTML Executable.
About HTML Executable
HTML Executable is a versatile HTML compiler and ebook compiler: it lets you create secure ebooks and desktop applications with your websites, HTML or PDF documents.
You can easily create attractive ebooks, full-featured HTML applications (RIA) and software, digital publications from your websites, PDF files and HTML documents for online or offline distribution.