hwISession PublishSession

Publishes the current session in either the HTML or XML format.

Syntax

hwISession_handle PublishSessionfilename, frame_width

Application

HyperWorks Tcl Query

Description

This command replaces the command hwIPage ExportHTMLReport.

This command uses the current values for the hwIAVIExportOptions, hwIH3DexportOptions, and hwIJPGExportOptions objects in the current session. To manipulate these values, obtain a handle to the desired object and set the desired property before executing this command.

Inputs

filename
The filename of the HTML or XML report.
frame_width
The width (as a percentage of the screen) of the browser frame. Values can be from 10 to 40 (inclusive).

Example

To export the contents of the current session to an HTML or XML report:
hwi GetSessionHandle mySessionName
mySessionName PublishSession myReportName 20 

Error

Success (0) or an error code.

3 = HW_InvalidHandle - The handle used to invoke the method is no longer valid.