Created On:  15 May 2012


Visual COBOL 2.0 introduced a new run-time tunable called printer_raw_redirection which causes output sent to a file defined as:

    select file-name assign to PRINTER

to be redirected to the Windows print spooler as raw data when running in a managed code .NET application.

This enables you to send Printer Control Language (PCL) escape sequences directly with your print data.  When setting this tunable in the .NET app.config file, however I get a file status of 9/004 returned when the file is opened for output.  Why is this?


In order to use the printer_raw_redirection tunable you must also set the printer_redirection tunable on first in your app.config file.

You can set this up in your app.config file as follows: