Black Ice Software
August Developer Newsletter
Volume 11, Issue 8 - August, 2007
The BLACK ICE NEWSLETTER is published by Black Ice Software, LLC. The contents of this newsletter in its entirety are Copyright © 2007 by Black Ice Software, LLC. 292 Route 101, Salzburg Square, Amherst, NH 03031, USA. Black Ice Software, LLC. does hereby give permission to reproduce material contained in this newsletter, provided credit is given to the source, and a copy of the publication that the material appears in is sent to Black Ice Software at the above address. Phone: (603) 673-1019 Fax: (603) 672-4112 sales@blackice.com www.blackice.com

How to Restore Bates Numbering Settings From the Printer Driver’s INI File

If you want to restore your printer driver’s settings, you can simply click on the “Restore defaults” button in the printing preferences of the driver. When you push the button, the printer driver restores its settings from the driver’s INI file. The INI file is located in the windows’ driver directory (for example C:\WINDOWS\system32\spool\drivers\w32x86\3\). You can also restore the Bates Numbering settings this way. If you click the “Restore defaults” button, the printer driver writes the default Bates numbering settings to the registry under HKEY_CURRENT_USER (for example HKEY_CURRENT_USER\Software\Black Ice Software, Inc.\Black Ice Color\BatesNumbering).

 

How to set the Bates Numbering settings in the INI file

 

The printer driver’s INI file must store the following information:

 

-         Number of specified bates formats

-         What is the currently selected bates format

-         The Bates numbering is enabled or not

-         Settings for every bates format

 

For example:

 

[Bates Numbering]

Number of Formats=2

Selected Bates Format=2

Bates Numbering Enabled=1

 

[Bates Number 1]

Name=Default Bates Format

Use prefix=1

Color=4145215

Font Charset=1

Font Clipprecisions=2

Font Escapement=0

Font Facename=Verdana

Font Height=-16

Font Italic=255

Font Orinetation=0

Font Outprecisions=3

Font PinchAndFamily=34

Font Quality=1

Font Strikeout=0

Font Underline=0

Font Weight=400

Font Width=0

Offset unit=1

Position=2

Prefix=Case number

Rotation=0

Start with=1

Transparent=0

X Offset=0

Y Offset=0

 

[Bates Number 2]

Name=Sample Bates Format

Use prefix=1

Color=4145215

Font Charset=1

Font Clipprecisions=2

Font Escapement=0

Font Facename=Arial

Font Height=-19

Font Italic=0

Font Orinetation=0

Font Outprecisions=3

Font PinchAndFamily=34

Font Quality=1

Font Strikeout=0

Font Underline=0

Font Weight=400

Font Width=0

Offset unit=1

Position=0

Prefix=Bates Num

Rotation=0

Start with=15

Transparent=0

X Offset=0

Y Offset=0

 

Number of Formats: This entry specifies the number of bates formats. In this example this value is 2. So there must be 2 sections for describing the settings of the formats (Bates Number 1 and Bates Number 2).

 

Selected Bates Format: This entry specifies the currently selected Bates format. In this example the currently selected format is the second one.

 

Bates Numbering Enabled: If this value is 1, the Bates numbering is enabled in the driver, if 0 the Bates numbering is disabled.

 

Descriptions of  each various setting is not covered in this article, but this information can be found in our documentation.