Property

Method

Event

Enterprise

 

PrintToImage

Saves the current file in BMP file format to the local system or prints it.

Syntax

    HRESULT PrintToImage(
          long width,
          BSTR fileName,
          long *height
    );

Parameters

width

[in] Width of the output image.

fileName

[in] The name of the file to be printed as an image.

height

[out, retval] Height of the output image.

Return Values

0 (always)

Remarks

    Overwrites existing files if they have the same filename as the fileName parameter.

Samples

VBScript

dim object, height
set object = Document.editForm

height = object.Wec.PrintToImage(640, "c:\\test.bmp")