Exports the signature as a WMF file.

Syntax

rv = Send_Message(Ctrl, "OLE.ExportToBitmap", FileName, ShowLine)

Parameters

ParameterDescription
FileNameThe full path and filename of the exported bitmap
ShowLineIf true, the signature baseline and "sign here" X are exported along with the signature

Remarks

The ExportToMetafile method captures the current signature and saves it as a metafile so it can be used in OIPI reports. Metafiles are vector images, so they scale automatically to the resolution of the device to which they are rendering. This makes them good candidates for reporting. On the downside, they don't have dimensions, so it might be more difficult to maintain aspect ratio. If metafiles are proving to be too inconsistent, then use ExportToBitmap instead.

The FileName parameter must be set to the path and filename to which the image is to be exported.

The ShowLine parameter determines if the signature baseline and "sign here" X glyphs are included in the export. If true, the signature baseline and "sign here" X are exported exactly as they are seen. Thus, even if you set this parameter to 1, but ShowLine is 0 then they will not export.

Example

// Export the signature, without signature baseline 
Send_Message(@Window:".OLE_SIGNATURE", "OLE.ExportToMetafile", "C:\Temp\MySig.wmf", 0)

See Also

ExportToBitmap

  • No labels