Problem:
Example of how to use the PC_PRINT_FILE Net Express call-by-name routine
Resolution:
INTRODUCTION
==========
This example program demonstrates the use of the Net Express call-by-name library routine PC_PRINT_FILE. This routine will print a file allowing the user to optionally select a printer
and font that will be used for printing the document.
PC_PRINT_FILE uses the same parameters as PC_PRINTER_OPEN so we use the same copybook definitions.
SOURCE FILES:
=========
Program Files Description
------------------- -----------------------------------------------------------
PRNTFILE.CBL Source program that makes a call to PC_PRINT_FILE. It will display a printer
setup dialog box and a font Dialog box allowing you to make modifications. It
will then print the file PRNTFILE.DAT by sending it to the Windows Print
Manager.
PRNTOPEN.CPY This copy file contains the working-storage data items which are referenced in
both the PC_PRINT_FILE and PC_PRINTER_OPEN call-by-name routines.
PRNTFILE.DAT The line sequential text file which will be printed by the PRNTFILE program.
PRNTFILE.PRO The profile file for PRNTFILE.DAT which contains information about the file for
use with the Net Express Data File Editor.
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. The file PRNTFILE.DAT must be in the current directory.
OPERATION:
========
Rebuild this project to create the file prntfile.exe. This is a character mode program that will display its progress to an application output window.
==========================================================
Keywords: demonstration, sample, example, demo, prntfile.zip
demo.ex
demo.me
demo.ne