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 "c:\users\public\network analyzer\documents".

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 "C:/Program Files/Keysight/Network Analyzer/Documents/myfile.png"

C++ Syntax

HRESULT PrintToFile(BSTR bstrFile)

Interface

IApplication