Property

Method

Event

Enterprise

 

SaveFileEx

Saves a resource file inserted into a document.

Syntax

    HRESULT SaveFileEx(
          BSTR filePath,
          BSTR resourcePath
    );

Parameters

filePath

[in] The absolute path (URL) of the file to save.

resourcePath

[in] The path of the resource file to save.

Return Values

0

Success

1

Failure

Remarks

    1. No saving-specific dialog boxes open during execution.
    2. SaveFileEx defaults to HTML file format if a format is not specified.
    3. Either a relative URL or an absolute URL is used for the path of the resource file.

Samples

VBScript

dim object, height
set object = Document.editForm

object.Wec.SaveFileEx "C:\\Test\Test.htm", "Res\"