Problem:
This program demonstrates the use of the Net Express library routine PC_PRINTER_INFO to get the current configuration information for a specified open printer. It will return a native device context handle, and other information that can be used to enhance the printing of a document by calling native WINAPI graphics functions directly.
Resolution:
INTRODUCTION
==========
This program demonstrates the use of the Net Express library routine PC_PRINTER_INFO to get the current configuration information for a specified open printer. It will return a native device context handle, and other information that can be used to enhance the printing of a document by calling native WINAPI graphics functions directly.
SOURCE FILES:
=========
Program Files Description
------------------- -----------------------------------------------------------
PRNTINFO.CBL Source program that makes a call to PC_PRINTER_INFO. It will display a printer
setup dialog box and a font Dialog box allowing you to make modifications. The
information returned from the call will then be displayed on the screen.
PRNTOPEN.CPY Copy file containing the working-storage data items referenced by the
PC_PRINTER_OPEN call-by-name routine.
PRNTINFO.CPY Copy file containing the working-storage data items referenced by the
PC_PRINTER_INFO call-by-name routine.
REQUIREMENTS:
==========
This sample should run in all environments. At least one printer should be attached to or be accessible from the system on which this program is run.
OPERATION:
========
Rebuild this project to create the file prntinfo.exe. This is a character mode program that will display the information returned by the PC_PRINTER_INFO routine.
==========================================================
Keywords: demonstration, sample, example, demo, prntinfo.zip
demo.ex
demo.me
demo.ne