Previous Topic Next topic Print topic


printer_defaults

Sets certain default printer settings when printer redirection has been enabled.
Note: This tunable is supported for .NET COBOL only.

Set these details in a configuration file, in Visual Studio.

Syntax:

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
 <configSections>
  
  <sectionGroup name="MicroFocus.COBOL.Runtime">
   <section name="Tunables" type="System.Configuration.NameValueSectionHandler" />
   <section name="Switches" type="System.Configuration.NameValueSectionHandler" />
  </sectionGroup>
</configSections>


 <MicroFocus.COBOL.Runtime>
  <Tunables>
   <add key="printer_redirection" value="true" /> 
   <add key="printer_defaults" value="size=20;font=Courier New;printer.name=\\svr-ptr\office-ptr" /> 
  </Tunables>
  <Switches></Switches>
 </MicroFocus.COBOL.Runtime>
</configuration>

Parameters:

font
Name of the font
size
Size of the font
title
A name for the spooler job
printer.name
The name of the printer, as recognised in Windows

Properties:

Default: Not set
IDE equivalent: None

Comments:

This tunable is dependent on printer redirection being on, which you can do by setting the printer_redirection tunable or by calling the PC_PRINTER_REDIRECTION_PROC routine.

Previous Topic Next topic Print topic