PrintYResolution Property

PrintGetValidDPIArray Method

Introduction

 

PrintGetValidPrinters This function is for printing purposes


 

This method returns a SafeArray of available printers on the current system.

 

Syntax

sArray = FlpGrf.PrintGetValidPrinters

 

The PrintGetValidPrinters Method has these parts:

Part

Description

FlpGrf

An object expression that evaluates the Flipper Graph Control object.

sArray

The safe array returned by the method.

 

Remarks

Use this method to get the available printer paths for printer installed on the current system. You can then set PrinterPath property to the desired printer.
This method returns a SafeArray. If your programming environment does not support SafeArray, you will not be able to use this method.
Here are examples on how to use SafeArrays in Visual Basic, MS Access, and Visual Fox Pro:
VB, MS Access

Dim PrinterArray As Variant
Dim X As Integer

PrinterArray = FlpGrf1.PrintGetValidDPIArray
For X = LBound(PrinterArray) To UBound(PrinterArray) Step 2
     pPath = PrinterArray(X) 'Printer path
Next X


Visual FoxPro

WITH THISFORM
     PrinterArray = FlpGrf1.PrintGetValidDPIArray
     nNumElements = ALEN(PrinterArray)
     For X = 1 To nNumElements
           pPath = PrinterArray(X) 'Printer path
     Next
ENDWITH

 


 

See Also

All Print Routines



PrintYResolution Property PrintGetValidDPIArray Method

 

 

Last modified on: Friday, August 16, 2002