Write-only
About Saving to File

PrintToFile Method


Description

Saves the screen image to a bitmap file.

 VB Syntax

app.PrintToFile filename

Variable

(Type) - Description

app

An Application (object)

filename

(string)   Full path, file name, and extension of the screen image file.

Files are typically stored in "D:\".

Use one of the following extensions:

  • .bmp - not recommended due to large file size

  • .jpg - not recommended due to poor quality

  • .png - recommended

Return Type

Not Applicable

Default

Not Applicable

Examples

app.PrintToFile "D:\myfile.png"

C++ Syntax

HRESULT PrintToFile(BSTR bstrFile)

Interface

IApplication