PrintChart Method

Sends the Enhanced Chart to the printer for output. Causes the Printer Setup dialog box to display.

Syntax

object.PrintChartenuSizeUnits, [dblWidth], [dblHeight]

Properties

The PrintChart method syntax has these parts:

Part

Description

object

An object expression that evaluates to an object in the Applies To list.

enuSizeUnits

Enum/Long. Specifies in what units the image size is specified with dblWidth and dblHeight. It can be either of type enumSizeUnits or a corresponding numerical value, as follows:
SizeUnits_FullPage (0). Prints to the full page.
SizeUnits_Millimeters (1): in millimeters.
SizeUnits_Inches (2): in inches.
SizeUnits_Points (3): in Postscript points (1/72 inches).

NOTE: In order to use the enumSizeUnits enumerations, you must add the type library file for object to the references of the VBA project. If the type library file is not included in the references, then only numerical values are accepted. The type libraries for objects in the Applied To list are as follows:

Object

Reference

Type Library File Name

HistogramChart

iFix 2D Histogram Chart Object v1.0 Type Library

Fix2DHistogramChartDll.tlb

LineChart

iFix 2D Line Chart Object v1.0 Type Library

Fix2DLineChartDll.tlb

SPCBarChart

iFix 2D SPC Bar Chart Object v1.0 Type Library

Fix2DSPCBarChartDll.tlb

XYChart

iFix 2D XY Chart Object v1.0 Type Library

Fix2DXYChartDll.tlb

dblWidth

Double. Specifies the width of the printed image, in the units specified in enuSizeUnits. This parameter is optional and ignored when SizeUnits_FullPage is specified.

dblHeight

Double. Specifies the height of the printed image, in the units specified in enuSizeUnits. This parameter is optional and ignored when SizeUnits_FullPage is specified.

Remarks

The aspect ratio must be between 0.1 and 10.

Example

Applies To