Exports the signature as a BMP file.

Syntax

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

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
DPIThe output resolution

Remarks

The ExportToBitmap method captures the current signature and saves it as a bitmap file so it can be used in OIPI reports.

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.

The DPI parameter is the desired resolution of the exported file. Screen DPI is usually 96, which can appear very pixelated when printed. If you know your printer's resolution, you can pass it here to have the bitmap scaled for sharper output. Or, you can just provide any DPI you find personally acceptable, such as 600.

Example

// Export the signature, without signature baseline, for use on a 300 dpi printer 
Send_Message(@Window:".OLE_SIGNATURE", "OLE.ExportToBitmap", "C:\Temp\MySig.bmp", 0, 300)

See Also

ExportToMetafile

  • No labels