FormCapture[(FileName: String)] : Object
Form Capture function captures the Active Form saving the capture to the filename if specified. Returns an object with Print, Save and Email scripted procedures available.
FormCapture function syntax has these named arguments:
Parameter |
Description |
|---|---|
FileName |
Optional. The File name to save the capture to. If file already exists, then it will be overwritten. |
For example:
Dim Form1 as Object
Form1 = CreateObject("Accredo.APCreditorForm")
Dim Form2 as Object
Form2 = FormCapture
Form2.Print
Form2.Email
Form2.Save
or
Dim strCaptureFile as String
strCaptureFile = "c:\data\screenshot.bmp"
Dim imgCapture as Object
imgCapture = FormCapture(strCaptureFile)
imgCapture.Close