Consultor Eletrônico



Kbase P6513: How to get the printer setup properties
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   04/02/2005
Status: Unverified

GOAL:

How to get the printer setup properties

GOAL:

How to get the printer properties like page size, page orientation, printer name,...

FIX:

Using progress itself you can get several properties from the printer:
1. Page size: you have a function called PAGE-SIZE, which has as a parameter the name of the output stream. If you don't put any name then it will take the default output stream. But if you first do a OUTPUT TO PRINTER and you set the printer, it will take this printer.
P3173,How to set the page length for a printer

2. Printer name and printer port: You have the SESSION parameters like PRINTER-NAME and PRINTER-PORT.
P5598,How to know the printer being used by the user after using the system-dialog system-setup 4GL command 

3. For other setup parameters you have two options:
a. Read the information from the windows registry.
b. Use an ocx created to get that information.