Click or drag to resize
Ranorex

ElementSnapshotSaveToFile Method

Saves the snapshot to a file.

Namespace:  Ranorex.Core
Assembly:  Ranorex.Core (in Ranorex.Core.dll) Version: 12.7.4-git.38314c06
Syntax
public void SaveToFile(
	string fileName,
	bool compress = true
)

Parameters

fileName
Type: SystemString
The file (optionally including a path) to save the snapshot to.
compress (Optional)
Type: SystemBoolean
Specifies whether to compress the snapshot (default: true).
Exceptions
ExceptionCondition
RanorexExceptionIf saving the snapshot fails.
Remarks
It is recommended to use the file extension "rxsnp" for the fileName to allow for maximal interoperability with Ranorex tools.
See Also