Back

Topic

[KB136]Printing a Window with Enable Basic VBscript

Tags: Enable, Scripting, VBA

14 years ago
By RM
Options
Print
Applies to:

PcVue version 7.00c onwards.
This article contains obsolete references.


Summary:

This article outlines methods for printing a Window (or Mimic) with VBscript.


Details:

There are three ways to print a PcVue Window using VBscript:

  1. From the object ThisSystem, you can use the Printout method with these arguments:

Enable

This printing method is equivalent to the Windows HardCopy command.

  1. From the object ThisApplication, use the same Printout method, with the same arguments. This prints the contents of the Workspace, without toolbars.
  2. From a Window object in a Window Collection, use the same Printout method and arguments. This only prints the named window’s contents (i.e. mimic only without title bar or borders).

Example

The script below prints the displayed window (once, using ThisApplication Printout method) when you left-click on a button:

Private Sub printwindow_Click()
  thisapplication.printOut 1,fvLandscape,”HP DeskJet 500″
EndSub


Created on: 05 Nov 2010 Last update: 13 May 2024