PowerTCP Emulation for .NET
PrintScreen Method
Example 




Sends a copy of the display screen to the printer.
Syntax
Public Sub PrintScreen() 
Dim instance As Vt
 
instance.PrintScreen()
public void PrintScreen()
public: void PrintScreen(); 
public:
void PrintScreen(); 
Remarks

See the Printer property for information on selecting the output printer.

The print font will be the closest available match to the display font.

Unicode character printing is fully supported.

Example
The following example demonstrates how to print the display.
private string printScreen(bool useSelectedText)
{
	//Select display window to print and return
	vt1.Selection.Start = new Point(vt1.BufferRows, 0);
	vt1.Selection.End = new Point(vt1.BufferRows + vt1.Rows, vt1.Columns);

	//No difference in this case (when the entire display is selected)
	if (useSelectedText)
		vt1.Selection.Print();
	else
		vt1.PrintScreen();

	return vt1.Selection.Text;
}
Private Function printScreen(ByVal useSelectedText As Boolean) As String
	'Select display window to print and return
	vt1.Selection.Start = New Point(vt1.BufferRows, 0)
	vt1.Selection.End = New Point(vt1.BufferRows + vt1.Rows, vt1.Columns)

	'No difference in this case (when the entire display is selected)
	If useSelectedText Then
		vt1.Selection.Print()
	Else
		vt1.PrintScreen()
	End If

	Return vt1.Selection.Text
End Function
See Also

Reference

Vt Class
Vt Members


PowerTCP Emulation for .NET Documentation Version 4.7
© 2018 Dart Communications. All Rights Reserved.
Send comments on this topic