Documente Academic
Documente Profesional
Documente Cultură
Amherst, NH 03031
Printer Driver
User Manual
Table Of Contents
INTRODUCTION........................................................................................................................25
Organization of the manual..................................................................................................25
PART A: DRIVERS FOR XP/W2K/NT STANDARD AND TERMINAL SERVER
VERSIONS...................................................................................................................................26
Installing the XP/W2K/NT Drivers ...........................................................................................27
XP/W2K/NT AND TERMINAL SERVER TIFF DRIVER....................................................32
Device Settings sheet.................................................................................................................32
Paper Width...........................................................................................................................33
Paper Height.........................................................................................................................33
Units......................................................................................................................................34
Specifying the Paper Size......................................................................................................34
Paper Sizes Supported.......................................................................................................34
Add Fax Header....................................................................................................................35
Create a Faxable Image........................................................................................................35
Force FAX Resolution...........................................................................................................36
What is Fax Paper Size? ....................................................................................................36
How is Page size computed and image size translated into pixels? ..................................36
Advanced Paper size..............................................................................................................36
Specifying Page Orientation.................................................................................................36
Rotate a Landscape Image to Portrait..................................................................................36
Specifying Graphic Resolution..............................................................................................36
Horizontal Resolution............................................................................................................37
Vertical Resolution................................................................................................................37
Generated Image Size............................................................................................................37
File Formats sheet......................................................................................................................39
Specifying the File Format....................................................................................................40
Options..................................................................................................................................40
Create a multi page image....................................................................................................40
Disable image........................................................................................................................40
Eastern Character Support ..................................................................................................41
Write Text File.......................................................................................................................41
Mail Merge............................................................................................................................41
Save Position and style info ................................................................................................43
TIFF Options.........................................................................................................................43
Internet TIFF format.............................................................................................................43
Reverse bit order in TIFF......................................................................................................43
Add Page Numbering Tag.....................................................................................................43
Photo Quality........................................................................................................................43
Intensity.................................................................................................................................44
Filename Generation sheet.........................................................................................................45
Name Generation Methods ...................................................................................................46
i
294 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 1998 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
Filename................................................................................................................................48
Filename Prefix.....................................................................................................................48
Filename Extension...............................................................................................................48
Use custom extension............................................................................................................48
Keep existing files..................................................................................................................48
Output directory....................................................................................................................48
Group File Options...............................................................................................................49
Disable Group File................................................................................................................49
Delete group file after printing.............................................................................................49
Start Application sheet...............................................................................................................50
Enable Start Application.......................................................................................................50
Application............................................................................................................................51
Start Before Printing.............................................................................................................51
Start After Printing................................................................................................................51
Pass Parameters....................................................................................................................51
Show Application Window.....................................................................................................51
Disable Messaging Interface.................................................................................................51
XP/W2K/NT AND TERMINAL SERVER COLOR DRIVER ..............................................53
Driver Files.................................................................................................................................53
Configuring the Driver on Windows XP/W2K/NT and Terminal Server...................................53
Device Settings sheet.................................................................................................................54
Paper Width...........................................................................................................................54
Paper Height.........................................................................................................................55
Units......................................................................................................................................55
Specifying the Paper Size......................................................................................................55
Page Sizes Supported.........................................................................................................55
Add Fax Header....................................................................................................................56
Create a Faxable Image........................................................................................................57
Force FAX Resolution...........................................................................................................57
What is Fax Paper Size? ....................................................................................................57
How is Page size computed and image size translated into pixels?...................................57
Advanced Paper size..............................................................................................................57
Specifying Page Orientation.................................................................................................57
Rotate a Landscape Image to Portrait..................................................................................58
Specifying Graphic Resolution..............................................................................................58
Horizontal Resolution............................................................................................................59
Vertical Resolution................................................................................................................59
Generated Image Size............................................................................................................59
File Formats sheet......................................................................................................................60
Specifying the File Format....................................................................................................60
JPEG Loss Ratio...................................................................................................................61
Color Depth...........................................................................................................................61
Options..................................................................................................................................62
Create a multi page image....................................................................................................62
Disable image........................................................................................................................62
ii
294 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 1998 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
vi
294 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 1998 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
6.3.3.17IsRotatePaperEnabled.........................................................................................172
6.3.3.18EnableRotatePaper.............................................................................................172
6.3.3.19DisableRotatePaper............................................................................................172
6.3.3.20GetXDPI............................................................................................................172
6.3.3.21SetXDPI.............................................................................................................172
6.3.3.22GetYDPI............................................................................................................173
6.3.3.23SetYDPI.............................................................................................................173
6.3.3.24IsFaxLowOutputEnabled....................................................................................173
6.3.3.25EnableLowFaxOutput........................................................................................173
6.3.3.26DisableLowFaxOutput.......................................................................................173
vii
294 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 1998 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
6.3.4.40SetBrightness......................................................................................................183
viii
294 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 1998 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
6.3.6.23DisableMessagingInterface.................................................................................195
ix
294 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 1998 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
6.7.3.19DisableRotatePaper............................................................................................207
6.7.3.20GetXDPI............................................................................................................207
6.7.3.21SetXDPI.............................................................................................................207
6.7.3.22GetYDPI............................................................................................................208
6.7.3.23SetYDPI.............................................................................................................208
6.7.3.24IsFaxLowOutputEnabled....................................................................................208
6.7.3.25EnableLowFaxOutput........................................................................................208
6.7.3.26DisableLowFaxOutput.......................................................................................209
6.7.5.1GetFileGenerationMethod.....................................................................................219
6.7.5.2SetFileGenerationMethod.....................................................................................220
6.7.5.3GetFileNamePrefix...............................................................................................220
6.7.5.4SetFileNamePrefix................................................................................................220
6.7.5.5GetFileExtension..................................................................................................220
6.7.5.6SetFileExtension...................................................................................................220
6.7.5.7IsCustomExtensionEnabled..................................................................................221
6.7.5.8EnableCustomExtension.......................................................................................221
6.7.5.9DisableCustomExtension......................................................................................221
6.7.5.10GetINIFileName.................................................................................................221
6.7.5.11SetINIFileName..................................................................................................221
6.7.5.12GetImageFileName.............................................................................................222
6.7.5.13SetImageFileName..............................................................................................222
6.7.5.14IsKeepExistingFilesEnabled...............................................................................222
6.7.5.15EnableKeepExistingFiles....................................................................................222
6.7.5.16DisableKeepExistingFiles...................................................................................222
6.7.5.17GetOutputDirectory............................................................................................223
6.7.5.18SetOutputDirectory............................................................................................223
6.7.5.19IsGroupFileDisabled...........................................................................................223
6.7.5.20DisableGroupFile...............................................................................................223
6.7.5.21EnableGroupFile................................................................................................223
6.7.5.22IsDeleteGroupFileEnabled..................................................................................224
6.7.5.23EnableDeleteGroupFile.......................................................................................224
6.7.5.24DisableDeleteGroupFile......................................................................................224
6.7.7Miscellaneous methods
231
xi
294 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 1998 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
6.7.7.1GetInterfaceName.................................................................................................231
6.7.7.2SetInterfaceName.................................................................................................231
6.7.7.3GetPaperLength....................................................................................................231
6.7.7.4SetPaperLength....................................................................................................231
6.7.7.5IsTiffDllEnabled...................................................................................................232
6.7.7.6EnableTiffDll.......................................................................................................232
6.7.7.7DisableTiffDll......................................................................................................232
6.7.7.8IsJpegDllEnabled..................................................................................................232
6.7.7.9EnableJpegDll......................................................................................................232
6.7.7.10DisableJpegDll...................................................................................................233
6.7.7.11GetTIFFDLLName.............................................................................................233
6.7.7.12SetTIFFDLLName.............................................................................................233
6.7.7.13GetJPEGDLLName............................................................................................233
6.7.7.14SetJPEGDLLName............................................................................................233
6.7.7.15GetResourceDLLName......................................................................................234
6.7.7.16SetResourceDLLName.......................................................................................234
6.7.7.17GetBitsPerPixel..................................................................................................234
Paper Width.........................................................................................................................286
Paper Height.......................................................................................................................287
Units....................................................................................................................................287
Specifying the Paper Size....................................................................................................287
Page Sizes Supported.......................................................................................................287
Add Fax Header..................................................................................................................288
Create a Faxable Image......................................................................................................288
Force FAX Resolution.........................................................................................................289
What is Fax Paper Size? ..................................................................................................289
How is Page size computed and image size translated into pixels? ................................289
Advanced Paper size............................................................................................................289
Specifying Page Orientation...............................................................................................289
Rotate a Landscape Image to Portrait................................................................................289
Specifying Graphic Resolution............................................................................................289
Horizontal Resolution..........................................................................................................290
Vertical Resolution..............................................................................................................290
Generated Image Size..........................................................................................................291
File Formats sheet....................................................................................................................292
Specifying the File Format..................................................................................................292
Options................................................................................................................................292
Disable image......................................................................................................................293
Eastern Character Support ................................................................................................293
Write Text File.....................................................................................................................293
Mail Merge..........................................................................................................................293
Save Position and style info ..............................................................................................295
Filename Generation sheet ......................................................................................................296
Name Generation Method ..................................................................................................297
Filename..............................................................................................................................299
Filename Prefix...................................................................................................................299
Filename Extension.............................................................................................................299
Use custom extension..........................................................................................................299
Keep existing files................................................................................................................299
Output directory..................................................................................................................299
Group File Options.............................................................................................................300
Disable Group File..............................................................................................................300
Delete group file after printing...........................................................................................300
Start Application sheet.............................................................................................................301
Enable Start Application.....................................................................................................301
Application..........................................................................................................................302
Start Before Printing...........................................................................................................302
Start After Printing..............................................................................................................302
Pass Parameters..................................................................................................................302
Show Application Window...................................................................................................302
Disable Messaging Interface...............................................................................................302
THE PROGRAMMING INTERFACE ..................................................................................303
xv
294 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 1998 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
xvii
294 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 1998 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
6.3.3.21SetXDPI.............................................................................................................359
6.3.3.22GetYDPI............................................................................................................360
6.3.3.23SetYDPI.............................................................................................................360
6.3.3.24IsFaxLowOutputEnabled....................................................................................360
6.3.3.25EnableLowFaxOutput........................................................................................360
6.3.3.26DisableLowFaxOutput.......................................................................................361
xviii
294 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 1998 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
6.3.5.3GetFileNamePrefix...............................................................................................369
6.3.5.4SetFileNamePrefix................................................................................................369
6.3.5.5GetFileExtension..................................................................................................370
6.3.5.6SetFileExtension...................................................................................................370
6.3.5.7IsCustomExtensionEnabled..................................................................................370
6.3.5.8EnableCustomExtension.......................................................................................370
6.3.5.9DisableCustomExtension......................................................................................370
6.3.5.10GetINIFileName.................................................................................................371
6.3.5.11SetINIFileName..................................................................................................371
6.3.5.12GetImageFileName.............................................................................................371
6.3.5.13SetImageFileName..............................................................................................371
6.3.5.14IsKeepExistingFilesEnabled...............................................................................371
6.3.5.15EnableKeepExistingFiles....................................................................................372
6.3.5.16DisableKeepExistingFiles...................................................................................372
6.3.5.17GetOutputDirectory............................................................................................372
6.3.5.18SetOutputDirectory............................................................................................372
6.3.5.19IsGroupFileDisabled...........................................................................................372
6.3.5.20DisableGroupFile...............................................................................................373
6.3.5.21EnableGroupFile................................................................................................373
6.3.5.22IsDeleteGroupFileEnabled..................................................................................373
6.3.5.23EnableDeleteGroupFile.......................................................................................373
6.3.5.24DisableDeleteGroupFile......................................................................................373
xix
294 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 1998 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
6.3.7.4SetPaperLength....................................................................................................379
6.3.7.5IsTiffDllEnabled...................................................................................................379
6.3.7.6EnableTiffDll.......................................................................................................379
6.3.7.7DisableTiffDll......................................................................................................379
6.3.7.8IsJpegDllEnabled..................................................................................................380
6.3.7.9EnableJpegDll......................................................................................................380
6.3.7.10DisableJpegDll...................................................................................................380
6.3.7.11GetTIFFDLLName.............................................................................................380
6.3.7.12SetTIFFDLLName.............................................................................................380
6.3.7.13GetJPEGDLLName............................................................................................381
6.3.7.14SetJPEGDLLName............................................................................................381
6.3.7.15GetResourceDLLName......................................................................................381
6.3.7.16SetResourceDLLName.......................................................................................381
6.3.7.17GetBitsPerPixel..................................................................................................382
xx
294 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 1998 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
8.3.3.25EnableLowFaxOutput .......................................................................................392
8.3.3.26DisableLowFaxOutput ......................................................................................392
xxi
294 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 1998 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
8.3.5.7IsCustomExtensionEnabled..................................................................................402
8.3.5.8EnableCustomExtension.......................................................................................402
8.3.5.9DisableCustomExtension......................................................................................402
8.3.5.10GetINIFileName.................................................................................................403
8.3.5.11SetINIFileName..................................................................................................403
8.3.5.12GetImageFileName.............................................................................................403
8.3.5.13SetImageFileName..............................................................................................403
8.3.5.14IsKeepExistingFilesEnabled...............................................................................403
8.3.5.15EnableKeepExistingFiles....................................................................................404
8.3.5.16DisableKeepExistingFiles...................................................................................404
8.3.5.17GetOutputDirectory............................................................................................404
8.3.5.18SetOutputDirectory............................................................................................404
8.3.5.19IsGroupFileDisabled...........................................................................................404
8.3.5.20DisableGroupFile...............................................................................................405
8.3.5.21EnableGroupFile................................................................................................405
8.3.5.22IsDeleteGroupFileEnabled..................................................................................405
8.3.5.23EnableDeleteGroupFile.......................................................................................405
8.3.5.24DisableDeleteGroupFile......................................................................................405
8.3.7Miscellaneous methods........................................................................................410
8.3.7.1GetInterfaceName.................................................................................................410
8.3.7.2SetInterfaceName.................................................................................................410
8.3.7.3GetPaperLength....................................................................................................411
8.3.7.4SetPaperLength....................................................................................................411
8.3.7.5IsTiffDllEnabled...................................................................................................411
8.3.7.6EnableTiffDll.......................................................................................................411
8.3.7.7DisableTiffDll......................................................................................................411
xxii
294 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 1998 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
8.3.7.8IsJpegDllEnabled..................................................................................................412
8.3.7.9EnableJpegDll......................................................................................................412
8.3.7.10DisableJpegDll...................................................................................................412
8.3.7.11GetTIFFDLLName.............................................................................................412
8.3.7.12SetTIFFDLLName.............................................................................................413
8.3.7.13GetJPEGDLLName............................................................................................413
8.3.7.14SetJPEGDLLName............................................................................................413
8.3.7.15GetResourceDLLName......................................................................................413
8.3.7.16SetResourceDLLName.......................................................................................413
8.3.7.17GetBitsPerPixel..................................................................................................414
xxiii
294 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 1998 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
Introduction
Black Ice Software, Inc., has been licensing printer drivers since 1992 for software companies, System
Integrators, print manufactures, corporate end uses. The printer drivers are available for Windows
95/98, Millennium Windows, NT 4.0, Windows 2000, Windows XP, and Microsoft and Cytrex
Terminal Server operating systems. The printer drivers are available in Monochrome or Color. The
printer drivers can produce raster images as output such as TIFF or vector output such as Microsoft
Meta File Format.
The printer drivers are licensed as:
25
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
26
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
27
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
Fax Applications:
28
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
Here you can specify the type of TIFF file that will be outputted. The settings can be based on a
specific hardware type or you can go with the default setting. Make your selection and press the Next
button to complete the installation. You can change these settings at any time after installation. See
the following sections of the manual for more detail.
Selecting this option automatically configures the driver for document imaging. By default the file
format will be set to 24 bit JPEG. Press finish to complete the installation. You can change these
settings at any time after installation. See the following sections of the manual for more detail.
Custom Config:
29
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
Press the Printer button to manually configure the driver or press the next button to proceed with the
default settings and complete the installation. By default, the image format is set to 24 bit JPEG.
Pressing the Printer button will bring up the following dialog box.
30
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
Use this dialog box and the various sheets to configure the driver. The following sections of the
manual will describe in detail how to configure the properties of the Printer Driver. Make your
selections and press OK to complete the installation.
31
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
32
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
Paper Width
Paper width is shown in the selected unit type of 0.01 inch, 0.1 mm, or a pixel.
Paper Height
Paper height is shown in the selected unit type of 0.01 inch, 0.1 mm, or a pixel.
33
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
Units
The units are the type of measurement used to describe the paper width and height. The units can be
0.01 inch, 0.1 mm (mm = millimeter), or a pixel.
The VARIABLE paper size is specified by 0.01 inch or 0.1 mm. The formula to compute
between mm and pixels is mm = pixel x 254/DPI or pixel = mm x DPI/254.
The VARIABLE paper size specified in pixels can be any size in the boundary of the
Microsoft environment with a maximum width and height of 65535 x 65535 pixels. The DPI
information will be ignored.
Please Note:
The VARIABLE paper size specified in pixels is a special case. Normally, page size times DPI
is equal to the image size in pixels. With the VARIABLE paper size specified in pixels setting,
the image size in pixels is absolute and the DPI can be set arbitrarily. The VARIABLE paper size
specified in pixels setting can be very useful in web and graphic applications where the physical
size of the image is the preeminent factor.
Letter 8 1/2 x 11 in
Tabloid 11 x 17 in
Ledger 17 x 11 in
Legal 8 1/2 x 14 in
Statement 5 1/2 x 8 1/2 in
Executive 7 1/4 x 10 1/2 in
A3 297 x 420 mm
A4 210 x 297 mm
A4 Small 210 x 297 mm
A5 148 x 210 mm
B4 250 x 354
B5 182 x 257 mm
Folio 8 1/2 x 13 in
34
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
If the Create faxable image box is checked, only Fax and Legal paper sizes will be available. As
a result, saved images can be faxed.
204 x 98 DPI
204 x 196 DPI
200x200 DPI
The Driver also supports variable dot per inch (DPI) graphic resolution that can range from 50
DPI to 1500 DPI.
Please Note:
For faxing, when selecting resolution, remember that increased resolution slows down
transmission speed, while lower resolutions increase throughput at the cost of image quality.
Horizontal Resolution
Shows the horizontal resolution setting. Also, when Custom resolution is selected, the required
value can be entered.
Vertical Resolution
Shows the vertical resolution setting. Also, when Custom resolution is selected the required value
can be entered.
38
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
39
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
TIFF Group 3 1D
TIFF Group 3 1D No EOL
TIFF Group 3 2D
TIFF Group 4
TIFF Packed
TIFF LZW
TIFF Uncompressed
PCX Image Format
Intel DCX Image Format
Microsoft DIB (BMP)
CALS
RAW CCITT TIFF Group 3 1D
RAW CCITT TIFF Group 3 1D No EOL
RAW CCITT TIFF Group 3 2D
RAW CCITT TIFF Group 4
IBM MRR
Options
Create a multi page image
When this button is checked the driver will save every printed page in one image file. If it is
unchecked all the pages printed will be generated in separate files.
NOTE: This option is only supported by the TIFF (any type of TIFF) and DCX file formats.
Disable image
Check this option to disable the image file generation setting of the driver. This can be useful when the
Write text file radio button is checked for text output and the image file is not needed. As a result, the
driver will only generate a text file, no image files will be generated.
40
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
Mail Merge
When this checkbox is checked, the driver will recognize special character sequences in the
printed text to extract some of the information in a text file or to force the driver to start
generating a new image file. This feature is useful when generating multi-page TIFF files from a
large document using a custom printing application.
The recognized character sequences all start with two # characters. Most of these commands
will cause the driver to remove or alter the printed text and write it in the merged output file in
text format. This file will have the same filename as the group file, with the MRG extension. The
actual name of this file will be written in the group file in the following format:
Merge Output=c:\aaaa1000.mrg
41
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
Lines starting with these four characters and ending with ~~ will not be printed,
but written to the merged output file. For example, if the following string is sent
to the driver:
##~~ Phone number=6031234321~~
there will be an empty line printed in the output image file and the following line
will be added to the merged output file:
Phone number=6031234321 .
##**
Lines starting with these four characters and ending with ** will be partially
printed and also written to the merged output file. If the string enclosed by the
** marks contains an equation mark, the characters after the equation mark will
be printed. Otherwise the whole string between the asterisks will be printed.
Every character between the asterisks will be written to the merged output file.
For example, if the following string is printed with the driver:
##** Adressee=Company Name**
the following will be written to the merged output file:
Adressee=Company Name
and the following line will be printed to the output image file:
Company Name
All of the above command lines must be printed as one continuous string from left to right. If they
are printed one part at a time using several separate printing function calls, ( first printing ##~~
and then the rest of the line ) the driver may not be able to correctly recognize them.
The mail merge file will also contain page delimiter information to mark where the new page is
started. The page delimiter is an empty line, the Page 1: text (where the number is the current
page number) and another empty line :
Page 1:
Page 2:
Page 3:
This information will appear in the Mail Merge file even is there is no mail merge information in
that particular the page.
42
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
TIFF Options
All of the following settings are only available for TIFF files.
Photo Quality
The Photo Quality option enables or disables the dithering of the Black Ice driver. When Photo
Quality is enabled, five high quality filters become accessible. Digital half-toning, also referred to
as spatial dithering, produces the illusion of continuous-tone pictures on media that is only
capable of displaying binary picture elements, for example: fax machines and most printers.
Floyd-Steinberg and Jarvis-Judice-Ninke are the text book filters. The Smooth, Sharp, and
43
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
Stucki filters are less known, but produce better quality output. Floyd-Steinberg is the default
setting.
Intensity
The photo quality program group also contains a scroll bar that lets you control the intensity of the
output image. The lower the Intensity value is, the darker the output image will be.
44
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
45
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
1. Use the prefix and extension: the output filename will be generated from random
characters. The first three characters will be the characters specified in the Filename
Prefix edit box and random numbers will be added.
NOTE: Only the first 3 characters from the Filename Prefix field will be used, if it is
longer the string will be truncated.
2. Prefix and extension from the registry: The file name prefix and the extension will be
read from the specified registry key. The registry path must be under the
HKEY_LOCAL_MACHINE or HKEY_CURRENT_USER root key. Use the File
Name Prefix value name for the file prefix and the File Name extension value name for
the extension.
46
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
3. Prefix and extension from the INI file: In this case the filename and the prefix will be
read from the specified INI file. The driver will search in the INI file for a section width
the printer name. Use the File Name Prefix key for the file prefix and the File Name
extension key for the extension.
You can search for an existing INI file, create a new one or edit the selected file using the
browse [] and edit [Edit] buttons.
[Black Ice Color Printer]
File name prefix=ABC
File name extension=TIFF
4. Exact filename: The printed file will be generated with the same name specified in the
Enter the filename edit box.
5. Exact filename from the registry: The filename will be read from the specified registry
key. The registry path must be under the HKEY_LOCAL_MACHINE or
HKEY_CURRENT_USER root key. The value name containing the filename must be
"File Name". The file name can be specified with the path or without.
47
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
6. Exact filename from the INI file: In this case the filename will be read from the specified
INI file. The driver will search the INI file for a section with the printers name. Use the
File Name key for the Filename. The file name can be specified with the path or
without.
[Black Ice Color Printer]
File name =C:\Output\page.tiff
7. Use the document name: The driver will use the document name the application passes
to the driver when generating the name of the output image.
Filename
Enter the INI file name here, the registry path, or the file name depending on the selected file name
generation method.
Filename Prefix
This is the prefix for the generated files if the Use this prefix and extension setting is selected for the
filename generation method. If the prefix is longer than 3 characters it will be truncated to the first 3
characters.
Filename Extension
This shows the current extension of the files. If the Use custom extension setting is selected the
default extension is changed with the string entered here.
Output directory
In this edit box you can specify the path where the driver will save the generated image files.
The printer driver can handle long directory names like C:\My Documents\Printed Files\
NOTE: On Terminal Server each user can use a separate output directory. Setting a separate
output directory for each user can be done in two ways:
48
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
a. Each user will set their own output directory manually by entering in this field the
directory path they want to use. The user must have permission to set the printer.
or
b. Specify the environment variable which contains a directory path. The environment
variable name must be between << and >> marks. I.e.: <<TEMP>>. The
printer driver will use the value from the environment variable as the output
directory. This environment variable should be specified for each user by the
system administrator. The system administrator can add to the autoexec.bat the a
SET command which uses the %USER% environment variable so this path will be
unique for each user. I.e.:
SET TEMP=C:\Temp\%USER%
I.e. to specify the TEMP environment variable as output directory enter in this
field: <<TEMP>>
Note: If the specified environment variable is not found the printer driver will
use by default the temp directory of the actual user to generate the image files.
49
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
Application
The name of the application to be started. You must specify a valid application name and the full
pathname (location of the application exe) (for example: e:\fax\test.exe). The printer driver can
handle long file and directory names.
Pass Parameters
If this is option is checked, the driver will pass parameters to the application that is started. Please
refer to the Programming Interface section in this manual for more detail.
51
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
53
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
Paper Width
Paper width is shown in the selected unit type of 0.01 inch, 0.1 mm, or a pixel.
54
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
Paper Height
Paper height is shown in the selected unit type of 0.01 inch, 0.1 mm, or a pixel.
Units
The units are the type of measurement used to describe the paper width and height. The units can be
0.01 inch, 0.1 mm (mm = millimeter), or a pixel.
The VARIABLE paper size is specified by 0.01 inch or 0.1 mm. The formula to compute
between mm and pixels is mm = pixel x 254/DPI or pixel = mm x DPI/254.
The VARIABLE paper size specified in pixels can be any size in the boundary of the
Microsoft environment with a maximum width and height of 65535 x 65535 pixels. The DPI
information will be ignored.
Please Note:
The VARIABLE paper size specified in pixels is a special case. Normally, page size times DPI
is equal to the image size in pixels. With the VARIABLE paper size specified in pixels setting,
the image size in pixels is absolute and the DPI can be set arbitrarily. The VARIABLE paper size
specified in pixels setting can be very useful in web and graphic applications where the physical
size of the image is the preeminent factor.
Letter 8 1/2 x 11 in
Tabloid 11 x 17 in
Ledger 17 x 11 in
Legal 8 1/2 x 14 in
Statement 5 1/2 x 8 1/2 in
Executive 7 1/4 x 10 1/2 in
A3 297 x 420 mm
A4 210 x 297 mm
A4 Small 210 x 297 mm
55
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
A5 148 x 210 mm
B4 250 x 354
B5 182 x 257 mm
Folio 8 1/2 x 13 in
Quarto 215 x 275 mm
10x14 in
11x17 in
Note 8 1/2 x 11 in
Envelope #9 3 7/8 x 8 7/8
Envelope #10 4 1/8 x 9
Envelope #11 4 1/2 x 10 3/8
Envelope #12 4 \276 x 11
Envelope #14 5 x 11
C size sheet
D size sheet
E size sheet
Envelope DL 110 x 220mm
Envelope C5 162 x 229 mm
Envelope C3 324 x 458 mm
Envelope C4 229 x 324 mm
Envelope C6 114 x 162 mm
Envelope C65 114 x 229 mm
Envelope B4 250 x 353 mm
Envelope B5 176 x 250 mm
Envelope B6 176 x 125 mm
Envelope 110 x 230 mm
Envelope Monarch 3.875 x 7.5 in
6 3/4 Envelope 3 5/8 x 6 1/2 in
US Std Fanfold 14 7/8 x 11 in
German Std Fanfold 8 1/2 x 12 in
German Legal Fanfold 8 1/2 x 13 in
Fax paper 8.64 x 11 in or 215 mm
If the Create faxable image box is checked, only Fax and Legal paper sizes will be available. As
a result, saved images can be faxed.
56
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
57
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
204 x 98 DPI
204 x 196 DPI
200x200 DPI
The Driver also supports variable dot per inch (DPI) graphic resolution that can range from 50
DPI to 1500 DPI.
Please Note:
For faxing, when selecting resolution, remember that increased resolution slows down
transmission speed, while lower resolutions increase throughput at the cost of image quality.
58
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
Horizontal Resolution
Shows the horizontal resolution setting. Also, when Custom resolution is selected, the required
value can be entered.
Vertical Resolution
Shows the vertical resolution setting. Also, when Custom resolution is selected the required value
can be entered.
59
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
JPEG
JPEG L*a*b
Microsoft DIB (BMP)
TIFF Uncompressed
TIFF Group 3 1D
TIFF Group 3 1D No EOL
TIFF Group 3 2D
TIFF Group 4
TIFF Packed
TIFF LZW
TIFF JPEG
TIFF Group 3 1D
PCX Image Format
Intel DCX Image Format
CALS
RAW CCITT TIFF Group 3 1D
RAW CCITT TIFF Group 3 1D No EOL
RAW CCITT TIFF Group 3 2D
RAW CCITT TIFF Group 4
Extended Metafile
IBM MRR
Color Depth
The color depth setting for the generated image. The value can be 1 bit, 8 bits, 8 bits grayscale and 24
bits.
The file types shown in the File Format combo box depends on this value. The user can only select
from file types compatible with the current color depth setting. For example: if 1 bit is selected, the
JPEG file type will not be shown.
61
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
Options
Create a multi page image
When this button is checked the driver will save every printed page in one image file. If it is
unchecked all the pages printed will be generated in separate files.
NOTE: This option is only supported by the TIFF (any type of TIFF) and DCX file formats.
Disable image
Check this option to disable the image file generation setting of the driver. This can be useful when the
Write text file is checked for text output and the image file is not needed. As a result, the driver will
only generate a text file, no image files will be generated.
Mail Merge
When this checkbox is checked, the driver will recognize special character sequences in the
printed text to extract some of the information in a text file or to force the driver to start
generating a new image file. This feature is useful when generating multi-page TIFF files from a
large document using a custom printing application.
The recognized character sequences all start with two # characters. Most of these commands
will cause the driver to remove or alter the printed text and write it in the merged output file in
text format. This file will have the same filename as the group file, with the MRG extension. The
actual name of this file will be written in the group file in the following format:
Merge Output=c:\aaaa1000.mrg
The recognized command sequences are as follows:
##~~
Lines starting with these four characters and ending with ~~ will not be printed,
but written to the merged output file. For example, if the following string is sent
to the driver:
##~~ Phone number=6031234321~~
there will be an empty line printed in the output image file and the following line
will be added to the merged output file:
Phone number=6031234321 .
##**
Lines starting with these four characters and ending with ** will be partially
printed and also written to the merged output file. If the string enclosed by the
** marks contains an equation mark, the characters after the equation mark will
be printed. Otherwise the whole string between the asterisks will be printed.
Every character between the asterisks will be written to the merged output file.
For example, if the following string is printed with the driver:
##** Adressee=Company Name**
the following will be written to the merged output file:
Adressee=Company Name
and the following line will be printed to the output image file:
Company Name
All of the above command lines must be printed as one continuous string from left to right. If they
are printed one part at a time using several separate printing function calls, ( first printing ##~~
and then the rest of the line ) the driver may not be able to correctly recognize them.
The mail merge file will also contain page delimiter information to mark where the new page is
started. The page delimiter is an empty line, the Page 1: text (where the number is the current
page number) and another empty line :
Page 1:
63
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
Page 2:
Page 3:
This information will appear in the Mail Merge file even is there is no mail merge information in
that particular the page.
TIFF Options
All of the following settings are only available for TIFF files.
64
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
Photo Quality
The Photo Quality option enables or disables the dithering of the Black Ice driver. When Photo
Quality is enabled, five high quality filters become accessible. Digital half-toning, also referred to
as spatial dithering, produces the illusion of continuous-tone pictures on media that is only
capable of displaying binary picture elements, for example: fax machines and most printers.
Floyd-Steinberg and Jarvis-Judice-Ninke are the text book filters. The Smooth, Sharp, and
Stucki filters are less known, but produce better quality output. Floyd-Steinberg is the default
setting.
Intesity
The photo quality program group also contains a scroll bar that lets you control the intensity of the
output image. The lower the Intensity value is, the darker the output image will be.
65
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
66
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
8. Use this prefix and extension: the output filename will be generated from random
characters. The first three characters will be the characters specified in the Filename
Prefix edit box and random numbers will be added.
NOTE: Only the first 3 characters from the Filename Prefix field will be used, if it is
longer the string will be truncated.
9. Prefix and extension from the registry: The file name prefix and the extension will be
read from the specified registry key. The registry path must be under the
HKEY_LOCAL_MACHINE or HKEY_CURRENT_USER root key. Use the File
Name Prefix value name for the file prefix and the File Name extension value name for
the extension.
67
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
10. Prefix and extension from the INI file: In this case the filename and the prefix will be
read from the specified INI file. The driver will search in the INI file for a section width
the printer name. Use the File Name Prefix key for the file prefix and the File Name
extension key for the extension.
You can search for an existing INI file, create a new one or edit the selected file using the
browse [] and edit [Edit] buttons.
[Black Ice Color Printer]
File name prefix=ABC
File name extension=TIFF
11. Exact filename: The printed file will be generated with the same name specified in the
Enter the filename edit box.
12. Exact filename from the registry: The filename will be read from the specified registry
key. The registry path must be under the HKEY_LOCAL_MACHINE or
HKEY_CURRENT_USER root key. The value name containing the filename must be
"File Name". The file name can be specified with the path or without.
68
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
13. Exact filename from the INI file: In this case the filename will be read from the specified
INI file. The driver will search the INI file for a section with the printers name. Use the
File Name key for the Filename. The file name can be specified with the path or
without.
[Black Ice Color Printer]
File name =C:\Output\page.tiff
14. Use the document name: The driver will use the document name the application passes
to the driver when generating the name of the output image.
Filename
Enter the INI file name here, the registry path, or the file name depending on the selected file name
generation method.
Filename Prefix
This is the prefix for the generated files if the Use this prefix and extension setting is selected for the
filename generation method. If the prefix is longer than 3 characters it will be truncated to the first 3
characters.
Filename Extension
This shows the current extension of the files. If the Use custom extension setting is selected the
default extension is changed with the string entered here.
Output directory
In this edit box you can specify the path where the driver will save the generated image files.
The printer driver can handle long directory names like C:\My Documents\Printed Files\
NOTE: On Terminal Server each user can use a separate output directory. Setting a separate
output directory for each user can be done in two ways:
69
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
a. Each user will set their own output directory manually by entering in this field the
directory path they want to use. The user must have permission to set the printer.
or
b. Specify the environment variable which contains a directory path. The environment
variable name must be between << and >> marks. I.e.: <<TEMP>>. The
printer driver will use the value from the environment variable as the output
directory. This environment variable should be specified for each user by the
system administrator. The system administrator can add to the autoexec.bat the a
SET command which uses the %USER% environment variable so this path will be
unique for each user. I.e.:
SET TEMP=C:\Temp\%USER%
I.e. to specify the TEMP environment variable as output directory enter in this
field: <<TEMP>>
Note: If the specified environment variable is not found the printer driver will
use by default the temp directory of the actual user to generate the image files.
70
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
71
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
Check the Enable start application check box to enable the driver to launch an application or
uncheck it to disable the application launching.
If the specified application is already running, the printer driver will not start it again.
Application
The name of the application to be started. You must specify a valid application name and the full
pathname (location of the application exe) (for example: e:\fax\test.exe). The printer driver can
handle long file and directory names.
Pass Parameters
If this is option is checked, the driver will pass parameters to the application that is started. Please
refer to the Programming Interface section in this manual for more detail.
72
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
73
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
Paper Width
Paper width is shown in the selected unit type of 0.01 inch, 0.1 mm, or a pixel.
74
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
Paper Height
Paper height is shown in the selected unit type of 0.01 inch, 0.1 mm, or a pixel.
Units
The units are the type of measurement used to describe the paper width and height. The units can be
0.01 inch, 0.1 mm (mm = millimeter), or a pixel.
The VARIABLE paper size is specified by 0.01 inch or 0.1 mm. The formula to compute
between mm and pixels is mm = pixel x 254/DPI or pixel = mm x DPI/254.
The VARIABLE paper size specified in pixels can be any size in the boundary of the
Microsoft environment with a maximum width and height of 65535 x 65535 pixels. The DPI
information will be ignored.
Please Note:
The VARIABLE paper size specified in pixels is a special case. Normally, page size times DPI
is equal to the image size in pixels. With the VARIABLE paper size specified in pixels setting,
the image size in pixels is absolute and the DPI can be set arbitrarily. The VARIABLE paper size
specified in pixels setting can be very useful in web and graphic applications where the physical
size of the image is the preeminent factor.
Letter 8 1/2 x 11 in
Tabloid 11 x 17 in
Ledger 17 x 11 in
Legal 8 1/2 x 14 in
Statement 5 1/2 x 8 1/2 in
Executive 7 1/4 x 10 1/2 in
A3 297 x 420 mm
A4 210 x 297 mm
A4 Small 210 x 297 mm
A5 148 x 210 mm
75
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
B4 250 x 354
B5 182 x 257 mm
Folio 8 1/2 x 13 in
Quarto 215 x 275 mm
10x14 in
11x17 in
Note 8 1/2 x 11 in
Envelope #9 3 7/8 x 8 7/8
Envelope #10 4 1/8 x 9
Envelope #11 4 1/2 x 10 3/8
Envelope #12 4 \276 x 11
Envelope #14 5 x 11
C size sheet
D size sheet
E size sheet
Envelope DL 110 x 220mm
Envelope C5 162 x 229 mm
Envelope C3 324 x 458 mm
Envelope C4 229 x 324 mm
Envelope C6 114 x 162 mm
Envelope C65 114 x 229 mm
Envelope B4 250 x 353 mm
Envelope B5 176 x 250 mm
Envelope B6 176 x 125 mm
Envelope 110 x 230 mm
Envelope Monarch 3.875 x 7.5 in
6 3/4 Envelope 3 5/8 x 6 1/2 in
US Std Fanfold 14 7/8 x 11 in
German Std Fanfold 8 1/2 x 12 in
German Legal Fanfold 8 1/2 x 13 in
Fax paper 8.64 x 11 in or 215 mm
If the Create faxable image box is checked, only Fax and Legal paper sizes will be available. As
a result, saved images can be faxed.
76
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
77
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
204 x 98 DPI
204 x 196 DPI
200x200 DPI
The Driver also supports variable dot per inch (DPI) graphic resolution that can range from 50
DPI to 1500 DPI.
Please Note:
For faxing, when selecting resolution, remember that increased resolution slows down
transmission speed, while lower resolutions increase throughput at the cost of image quality.
Horizontal Resolution
Shows the horizontal resolution setting. Also, when Custom resolution is selected, the required
value can be entered.
Vertical Resolution
78
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
Shows the vertical resolution setting. Also, when Custom resolution is selected the required value
can be entered.
79
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
Options
80
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
Disable image
Check this option to disable the image file generation setting of the driver. This can be useful when the
Write text file radio button is checked for text output and the image file is not needed. As a result, the
driver will only generate a text file, no image files will be generated.
Mail Merge
When this checkbox is checked, the driver will recognize special character sequences in the
printed text to extract some of the information in a text file or to force the driver to start
generating a new image file. This feature is useful when generating multi-page TIFF files from a
large document using a custom printing application.
81
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
The recognized character sequences all start with two # characters. Most of these commands
will cause the driver to remove or alter the printed text and write it in the merged output file in
text format. This file will have the same filename as the group file, with the MRG extension. The
actual name of this file will be written in the group file in the following format:
Merge Output=c:\aaaa1000.mrg
The recognized command sequences are as follows:
##~~
Lines starting with these four characters and ending with ~~ will not be printed,
but written to the merged output file. For example, if the following string is sent
to the driver:
##~~ Phone number=6031234321~~
there will be an empty line printed in the output image file and the following line
will be added to the merged output file:
Phone number=6031234321 .
##**
Lines starting with these four characters and ending with ** will be partially
printed and also written to the merged output file. If the string enclosed by the
** marks contains an equation mark, the characters after the equation mark will
be printed. Otherwise the whole string between the asterisks will be printed.
Every character between the asterisks will be written to the merged output file.
For example, if the following string is printed with the driver:
##** Adressee=Company Name**
the following will be written to the merged output file:
Adressee=Company Name
and the following line will be printed to the output image file:
Company Name
All of the above command lines must be printed as one continuous string from left to right. If they
are printed one part at a time using several separate printing function calls, ( first printing ##~~
and then the rest of the line ) the driver may not be able to correctly recognize them.
The mail merge file will also contain page delimiter information to mark where the new page is
started. The page delimiter is an empty line, the Page 1: text (where the number is the current
page number) and another empty line :
Page 1:
Page 2:
Page 3:
82
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
This information will appear in the Mail Merge file even is there is no mail merge information in
that particular the page.
83
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
84
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
15. Use this prefix and extension: the output filename will be generated from random
characters. The first three characters will be the characters specified in the Filename
Prefix edit box and random numbers will be added.
NOTE: Only the first 3 characters from the Filename Prefix field will be used, if it is
longer the string will be truncated.
16. Prefix and extension from the registry: The file name prefix and the extension will be
read from the specified registry key. The registry path must be under the
HKEY_LOCAL_MACHINE or HKEY_CURRENT_USER root key. Use the File
Name Prefix value name for the file prefix and the File Name extension value name for
the extension.
85
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
17. Prefix and extension from the INI file: In this case the filename and the prefix will be
read from the specified INI file. The driver will search in the INI file for a section width
the printer name. Use the File Name Prefix key for the file prefix and the File Name
extension key for the extension.
You can search for an existing INI file, create a new one or edit the selected file using the
browse [] and edit [Edit] buttons.
[Black Ice Color Printer]
File name prefix=ABC
File name extension=TIFF
18. Exact filename: The printed file will be generated with the same name specified in the
Enter the filename edit box.
19. Exact filename from the registry: The filename will be read from the specified registry
key. The registry path must be under the HKEY_LOCAL_MACHINE or
HKEY_CURRENT_USER root key. The value name containing the filename must be
"File Name". The file name can be specified with the path or without.
86
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
20. Exact filename from the INI file: In this case the filename will be read from the specified
INI file. The driver will search the INI file for a section with the printers name. Use the
File Name key for the Filename. The file name can be specified with the path or
without.
[Black Ice Color Printer]
File name =C:\Output\page.tiff
21. Use the document name: The driver will use the document name the application passes
to the driver when generating the name of the output image.
Filename
Enter the INI file name here, the registry path, or the file name depending on the selected file name
generation method.
Filename Prefix
This is the prefix for the generated files if the Use this prefix and extension setting is selected for the
filename generation method. If the prefix is longer than 3 characters it will be truncated to the first 3
characters.
Filename Extension
This shows the current extension of the files. If the Use custom extension setting is selected the
default extension is changed with the string entered here.
Output directory
In this edit box you can specify the path where the driver will save the generated image files.
The printer driver can handle long directory names like C:\My Documents\Printed Files\
NOTE: On Terminal Server each user can use a separate output directory. Setting a separate
output directory for each user can be done in two ways:
87
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
a. Each user will set their own output directory manually by entering in this field the
directory path they want to use. The user must have permission to set the printer.
or
b. Specify the environment variable which contains a directory path. The environment
variable name must be between << and >> marks. I.e.: <<TEMP>>. The
printer driver will use the value from the environment variable as the output
directory. This environment variable should be specified for each user by the
system administrator. The system administrator can add to the autoexec.bat the a
SET command which uses the %USER% environment variable so this path will be
unique for each user. I.e.:
SET TEMP=C:\Temp\%USER%
I.e. to specify the TEMP environment variable as output directory enter in this
field: <<TEMP>>
Note: If the specified environment variable is not found the printer driver will
use by default the temp directory of the actual user to generate the image files.
88
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
generated image files. Please refer to the Messaging Interface, Programming Interface and
Group Files Description section in this manual for more detail.
Check the Enable start application check box to enable the driver to launch an application or
uncheck it to disable the application launching.
If the specified application is already running, the printer driver will not start it again.
Application
The name of the application to be started. You must specify a valid application name and the full
pathname (location of the application exe) (for example: e:\fax\test.exe). The printer driver can
handle long file and directory names.
Pass Parameters
If this is option is checked, the driver will pass parameters to the application that is started. Please
refer to the Programming Interface section in this manual for more detail.
90
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
91
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
By default, the User specific settings are inherited from the printers default settings. To change the
User specific printer settings the User has to select Printing preferences or Properties-> Printing
preferences and modify the settings he wants to change. All the modifications will affect the given User
only. On Windows XP Users have to have rights to modify User specific printer settings.
Every time an application wants to print to the printer, it will read the User specific printer settings and
depending on how the application wants to print, can use these settings or it can change some of the
settings. Changes made in the printer settings by using an applications Printer properties dialog will not
change the printer settings globally. The changes will be made for that given instance of the application
only.
Windows DEVMODE
The Black Ice Printer Drivers are using a BlackIceDEVMODE data structure based on the default
Windows DEVMODE data structure:
typedef struct _devicemode {
BCHAR dmDeviceName[CCHDEVICENAME];
WORD
dmSpecVersion;
WORD
dmDriverVersion;
WORD
dmSize;
WORD
dmDriverExtra;
DWORD dmFields;
union {
struct {
short dmOrientation;
short dmPaperSize;
short dmPaperLength;
short dmPaperWidth;
};
POINTL dmPosition;
};
short dmScale;
short dmCopies;
short dmDefaultSource;
short dmPrintQuality;
short dmColor;
short dmDuplex;
short dmYResolution;
short dmTTOption;
short dmCollate;
BCHAR dmFormName[CCHFORMNAME];
WORD
dmLogPixels;
DWORD dmBitsPerPel;
DWORD dmPelsWidth;
DWORD dmPelsHeight;
union {
DWORD dmDisplayFlags;
DWORD dmNup;
93
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
}
DWORD dmDisplayFrequency;
DWORD dmICMMethod;
DWORD dmICMIntent;
DWORD dmMediaType;
DWORD dmDitherType;
DWORD dmReserved1;
DWORD dmReserved2;
} DEVMODE;
Structure member
dmOrientation
dmPaperSize
dmPaperLength
dmPaperWidth
dmPosition
94
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
DM_SCALE
DM_COPIES
DM_DEFAULTSOURCE
DM_PRINTQUALITY
DM_COLOR
DM_DUPLEX
DM_YRESOLUTION
DM_TTOPTION
DM_COLLATE
DM_FORMNAME
DM_LOGPIXELS
DM_BITSPERPEL
DM_PELSWIDTH
DM_PELSHEIGHT
DM_DISPLAYFLAGS
DM_NUP
DM_DISPLAYFREQUENCY
DM_ICMMETHOD
DM_ICMINTENT
DM_MEDIATYPE
DM_DITHERTYPE
DM_PANNINGWIDTH
DM_PANNINGHEIGHT
dmScale
dmCopies
dmDefaultSource
dmPrintQuality
dmColor
dmDuplex
dmYResolution
dmTTOption
dmCollate
dmFormName
dmLogPixels
dmBitsPerPel
dmPelsWidth
dmPelsHeight
dmDisplayFlags
dmNup
dmDisplayFrequency
dmICMMethod
dmICMIntent
dmMediaType
dmDitherType
Windows 2000 or later: dmPanningWidth
Windows 2000 or later: dmPanningHeight
dmOrientation
For printer devices only, selects the orientation of the paper. This member can be either
DMORIENT_PORTRAIT (1) or DMORIENT_LANDSCAPE (2).
dmPaperSize
For printer devices only, selects the size of the paper to print on. This member can be set
to zero if the length and width of the paper are both set by the dmPaperLength and
dmPaperWidth members. Otherwise, the dmPaperSize member can be set to one of the
following predefined values.
#define DMPAPER_FAX
#define DMPAPER_VARIABLE
#define DMPAPER_VARIABLE_PIXEL
#define
#define
#define
#define
#define
#define
#define
DMPAPER_LETTER
DMPAPER_LETTERSMALL
DMPAPER_TABLOID
DMPAPER_LEDGER
DMPAPER_LEGAL
DMPAPER_STATEMENT
DMPAPER_EXECUTIVE
DMPAPER_USER+1
DMPAPER_USER+2
DMPAPER_USER+3
1
2
3
4
5
6
7
/*
/*
/*
/*
/*
/*
/*
Letter 8 1/2 x 11 in
Letter Small 8 1/2 x 11 in
Tabloid 11 x 17 in
Ledger 17 x 11 in
Legal 8 1/2 x 14 in
Statement 5 1/2 x 8 1/2 in
Executive 7 1/4 x 10 1/2 in
95
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
*/
*/
*/
*/
*/
*/
*/
#define
#define
#define
#define
#define
#define
#define
#define
#define
#define
#define
#define
#define
#define
#define
#define
#define
#define
#define
#define
#define
#define
#define
#define
#define
#define
#define
#define
#define
#define
#define
#define
#define
#define
#define
#define
#define
#define
#define
#define
#define
#define
#define
#define
#define
#define
#define
#define
#define
#define
#define
#define
#define
#define
#define
#define
#define
DMPAPER_A3
8
DMPAPER_A4
9
DMPAPER_A4SMALL
10
DMPAPER_A5
11
DMPAPER_B4
12
DMPAPER_B5
13
DMPAPER_FOLIO
14
DMPAPER_QUARTO
15
DMPAPER_10X14
16
DMPAPER_11X17
17
DMPAPER_NOTE
18
DMPAPER_ENV_9
19
DMPAPER_ENV_10
20
DMPAPER_ENV_11
21
DMPAPER_ENV_12
22
DMPAPER_ENV_14
23
DMPAPER_CSHEET
24
DMPAPER_DSHEET
25
DMPAPER_ESHEET
26
DMPAPER_ENV_DL
27
DMPAPER_ENV_C5
28
DMPAPER_ENV_C3
29
DMPAPER_ENV_C4
30
DMPAPER_ENV_C6
31
DMPAPER_ENV_C65
32
DMPAPER_ENV_B4
33
DMPAPER_ENV_B5
34
DMPAPER_ENV_B6
35
DMPAPER_ENV_ITALY
36
DMPAPER_ENV_MONARCH
37
DMPAPER_ENV_PERSONAL
38
DMPAPER_FANFOLD_US
39
DMPAPER_FANFOLD_STD_GERMAN 40
DMPAPER_FANFOLD_LGL_GERMAN 41
DMPAPER_ISO_B4
42
DMPAPER_JAPANESE_POSTCARD
43
DMPAPER_9X11
44
DMPAPER_10X11
45
DMPAPER_15X11
46
DMPAPER_ENV_INVITE
47
DMPAPER_RESERVED_48
48
DMPAPER_RESERVED_49
49
DMPAPER_LETTER_EXTRA
50
DMPAPER_LEGAL_EXTRA
51
DMPAPER_TABLOID_EXTRA
52
DMPAPER_A4_EXTRA
53
DMPAPER_LETTER_TRANSVERSE
54
DMPAPER_A4_TRANSVERSE
55
DMPAPER_LETTER_EXTRA_TRANSVERSE
DMPAPER_A_PLUS
57
DMPAPER_B_PLUS
58
DMPAPER_LETTER_PLUS
59
DMPAPER_A4_PLUS
60
DMPAPER_A5_TRANSVERSE
61
DMPAPER_B5_TRANSVERSE
62
DMPAPER_A3_EXTRA
63
DMPAPER_A5_EXTRA
64
#define DMPAPER_A0
#define DMPAPER_A1
/*
/*
/*
/*
/*
/*
/*
/*
/*
/*
/*
/*
/*
/*
/*
/*
/*
/*
/*
/*
/*
/*
/*
/*
/*
/*
/*
/*
/*
/*
/*
/*
/*
/*
/*
/*
/*
/*
/*
/*
/*
/*
/*
/*
/*
/*
/*
/*
56
/*
/*
/*
/*
/*
/*
/*
/*
A3 297 x 420 mm
A4 210 x 297 mm
A4 Small 210 x 297 mm
A5 148 x 210 mm
B4 (JIS) 257 x 364 mm
B5 (JIS) 182 x 257 mm
Folio 8 1/2 x 13 in
Quarto 215 x 275 mm
10 x 14 in
11 x 17 in
Note 8 1/2 x 11 in
Envelope #9 3 7/8 x 8 7/8 in
Envelope #10 4 1/8 x 9 1/2 in
Envelope #11 4 1/2 x 10 3/8 in
Envelope #12 4 3/4 x 11 in
Envelope #14 5 x 11 1/2 in
C size sheet
D size sheet
E size sheet
Envelope DL 110 x 220 mm
Envelope C5 162 x 229 mm
Envelope C3 324 x 458 mm
Envelope C4 229 x 324 mm
Envelope C6 114 x 162 mm
Envelope C65 114 x 229 mm
Envelope B4 250 x 353 mm
Envelope B5 176 x 250 mm
Envelope B6 176 x 125 mm
Envelope 110 x 230 mm
Envelope Monarch 3 7/8 x 7 1/2 in
6 3/4 Envelope 3 5/8 x 6 1/2 in
US Standard Fanfold 14 7/8 x 11 in
German Standard Fanfold 8 1/2 x 12
German Legal Fanfold 8 1/2 x 13 in
B4 (ISO) 250 x 353 mm
Japanese Postcard 100 x 148 mm
9 x 11 in
10 x 11 in
15 x 11 in
Envelope Invite 220 x 220 mm
RESERVED--DO NOT USE
RESERVED--DO NOT USE
Letter Extra 9 1/2 x 12 in
Legal Extra 9 1/2 x 15 in
Tabloid Extra 11.69 x 18 in
A4 Extra 9.27 x 12.69 in
Letter Transverse 8 1/2 x 11 in
A4 Transverse 210 x 297 mm
/*Letter Extra Transverse 9 1/2x12
SuperA/SuperA/A4 227 x 356 mm
SuperB/SuperB/A3 305 x 487 mm
Letter Plus 8.5 x 12.69 in
A4 Plus 210 x 330 mm
A5 Transverse 148 x 210 mm
B5 (JIS) Transverse 182 x 257 mm
A3 Extra 322 x 445 mm
A5 Extra 174 x 235 mm
*/
*/
96
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
in */
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
in*/
*/
*/
*/
*/
*/
*/
*/
*/
#define
#define
#define
#define
#define
#define
#define
#define
#define
#define
#define
#define
DMPAPER_ASHEET
DMPAPER_BSHEET
DMPAPER_FSHEET
DMPAPER_GSHEET
DMPAPER_HSHEET
DMPAPER_JSHEET
DMPAPER_KSHEET
DMPAPER_AASHEET
DMPAPER_BASHEET
DMPAPER_CASHEET
DMPAPER_DASHEET
DMPAPER_EASHEET
DMPAPER_USER+6
DMPAPER_USER+7
DMPAPER_USER+8
DMPAPER_USER+9
DMPAPER_USER+11
DMPAPER_USER+12
DMPAPER_USER+13
DMPAPER_USER+14
DMPAPER_USER+15
DMPAPER_USER+16
DMPAPER_USER+17
DMPAPER_USER+18
/*
/*
/*
/*
/*
/*
/*
/*
/*
/*
/*
/*
mm
mm
mm
mm
mm
mm
mm
mm
mm
mm
mm
mm
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
dmPaperLength
For printer devices only, this overrides the length of the paper specified by the
dmPaperSize member, either for custom paper sizes or for devices such as dot-matrix
printers that can print on a page of arbitrary length. These values, along with all other
values in this structure that specify a physical length, are in tenths of a millimeter.
dmPaperWidth
For printer devices only, this overrides the width of the paper specified by the
dmPaperSize member.
dmPosition
Windows 95/98/ME, Windows 2000/XP or later: For display devices only, a POINTL
structure that indicates the positional coordinates of the display device in reference to the
desktop area. The primary display device is always located at coordinates (0,0).
dmScale
Specifies the factor by which the printed output is to be scaled. The apparent page size is
scaled from the physical page size by a factor of dmScale/100. For example, a letter-sized
page with a dmScale value of 50 will contain as much data as a 17 by 22 inch page,
because the output text and graphics would be half their original height and width.
dmCopies
Selects the number of copies printed if the device supports multiple-page copies.
dmDefaultSource
Specifies the paper source. To retrieve a list of the available paper sources for a printer,
use the DeviceCapabilities function with the DC_BINS flag.
This member can be one of the following values, or it can be a device-specific value
greater than or equal to DMBIN_USER.
DMBIN_ONLYONE
DMBIN_LOWER
DMBIN_MIDDLE
DMBIN_MANUAL
DMBIN_ENVELOPE
DMBIN_ENVMANUAL
DMBIN_AUTO
DMBIN_TRACTOR
DMBIN_SMALLFMT
97
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
DMBIN_LARGEFMT
DMBIN_LARGECAPACITY
DMBIN_CASSETTE
DMBIN_FORMSOURCE
dmPrintQuality
Specifies the printer resolution. There are four predefined device-independent values:
DMRES_HIGH
DMRES_MEDIUM
DMRES_LOW
DMRES_DRAFT
If a positive value is specified, it specifies the number of dots per inch (DPI) and is
therefore device dependent.
dmColor
Switches between color and monochrome on color printers. The following values are
possible:
DMCOLOR_COLOR
DMCOLOR_MONOCHROME
dmDuplex
Selects duplex or double-sided printing for printers capable of duplex printing. The
following values are possible:
Value
DMDUP_SIMPLEX
DMDUP_HORIZONTAL
DMDUP_VERTICAL
Meaning
Normal (non-duplex) printing.
Short-edge binding, that is, the long edge of
the page is horizontal.
Long-edge binding, that is, the long edge of
the page is vertical.
dmYResolution
Specifies the y-resolution, in dots per inch, of the printer. If the printer initializes this
member, the dmPrintQuality member specifies the x-resolution, in dots per inch of the
printer.
dmTTOption
Specifies how TrueType fonts should be printed. This member can be one of the
following values.
Value
DMTT_BITMAP
Meaning
Prints TrueType fonts as graphics. This is the default
98
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
Specifies the height, in pixels, of the visible device surface. For example, display drivers
use this member in the ChangeDisplaySettings function. Printer drivers do not use this
member.
dmDisplayFlags
Specifies the device's display mode. This member can be a combination of the following
values.
Value
DM_GRAYSCALE
DM_INTERLACED
Meaning
Specifies that the display is a non-color device. If this flag is not
set, color is assumed.
Specifies that the display mode is interlaced. If the flag is not set,
non-interlaced is assumed.
For example, display drivers use this member in the ChangeDisplaySettings function.
Printer drivers do not use this member.
dmNup
Specifies where the NUP is done. It can be one of the following.
Value
DMNUP_SYSTEM
DMNUP_ONEUP
Meaning
The print spooler does the NUP.
The application does the NUP.
dmDisplayFrequency
Specifies the frequency, in hertz (cycles per second), of the display device in a particular
mode. This value is also known as the display device's vertical refresh rate. Display drivers
use this member. For example, it is used in the ChangeDisplaySettings function. Printer
drivers do not use this member.
When you call the EnumDisplaySettings function, the dmDisplayFrequency member
may return with a value of 0 or 1. These values represent the display hardware's default
refresh rate. This default rate is typically set by switches on a display card or computer
motherboard or by a configuration program that does not use Win32 display functions
such as ChangeDisplaySettings.
dmICMMethod
Windows 95/98/ME and later; Windows XP/W2K and NT or later:
Specifies how ICM is handled. For a non-ICM application, this member determines if ICM
is enabled or disabled. For ICM applications, the system examines this member to
determine how to handle ICM support. This member can be one of the following
predefined values, or a driver-defined value greater than or equal to the value of
DMICMMETHOD_USER.
Value
Meaning
100
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
DMICMMETHOD_NONE
DMICMMETHOD_SYSTEM
DMICMMETHOD_DRIVER
DMICMMETHOD_DEVICE
The printer driver must provide a user interface for setting this member. Most printer
drivers support only the DMICMMETHOD_SYSTEM or DMICMMETHOD_NONE
value. Drivers for PostScript printers support all values.
dmICMIntent
Windows 95/98/ME, Windows XP/W2K and NT or later:
Specifies which color matching method or intent should be used by default. This member
is primarily for non-ICM applications. ICM applications can establish intents by using the
ICM functions. This member can be one of the following predefined values or a driver
defined value greater than or equal to the value of DMICM_USER.
Value
Meaning
DMICM_ABS_COLORIMETRIC Color matching should optimize to match the exact
color requested without white point mapping. This
value is most appropriate for use with proofing.
DMICM_COLORMETRIC
Color matching should optimize to match the exact
color requested. This value is most appropriate for use
with business logos or other images when an exact
color match is desired.
DMICM_CONTRAST
Color matching should optimize for color contrast.
This value is the most appropriate choice for scanned
or photographic images when dithering is desired.
DMICM_SATURATE
Color matching should optimize for color saturation.
This value is the most appropriate choice for business
graphs when dithering is not desired.
dmMediaType
Windows 95/98/ME, Windows XP/W2K and NT or later:
Specifies the type of media being printed on. The member can be one of the following
predefined values or a driver-defined value greater than or equal to the value of
DMMEDIA_USER.
Value
DMMEDIA_STANDARD
DMMEDIA_GLOSSY
DMMEDIA_TRANSPARENCY
Meaning
Plain paper.
Glossy paper.
Transparent film.
101
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
Whistler:
To retrieve a list of the available media types for a printer, use the DeviceCapabilities
function with the DC_MEDIATYPES flag.
dmDitherType
Windows 95/98/ME, Windows XP/W2K and NT or later:
Specifies how dithering is to be done. The member can be one of the following predefined
values, or a driver-defined value greater than or equal to the value of
DMDITHER_USER.
Value
DMDITHER_NONE
DMDITHER_COARSE
DMDITHER_FINE
DMDITHER_LINEART
Meaning
No dithering.
Dithering with a coarse brush.
Dithering with a fine brush.
Line art dithering, a special dithering method that
produces well defined borders between black, white,
and gray scalings. It is not suitable for images that
include continuous graduations in intensisty and hue,
such as scanned photographs.
DMDITHER_ERRORDIFFUSION Windows 95/98/ME: Dithering in which an
algorithm is used to spread, or diffuse, the error of
approximating a specified color over adjacent pixels.
In contrast, DMDITHER_COARSE,
DMDITHER_FINE, and DMDITHER_LINEART
use patterned half toning to approximate a color..
DMDITHER_GRAYSCALE
Device does gray scaling.
dmReserved1
Windows 95/98/ME, Windows XP/W2K and NT or later: Not used; must be zero.
dmReserved2
Windows 95/98/ME, Windows XP/W2K and NT or later: Not used; must be zero.
102
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
Also, on
Windows XP/W2K and XP, the string members of the BlackIceDEVMODE structure are
UNICODE strings. When the application reads or writes these members it is very important to use
UNICODE strings.
The BlackIceDEVMODE is defined in the 'devmode.h' file located in the Resource Toolkit under the
Install\InstallDll\ directory. (by default C:\Program Files\Black Ice Software, Inc\TIFF Printer Driver
Resource Toolkit\Install\InstallDLL\devmode.h)
Access the members of the BlackIceDEVMODE through the functions defined in the devmode.cpp file,
located in the RTK in the Install\InstallDll\ directory.
Example:
The InterfaceName member of the devmode can be accessed through the
DEVMODE_GetInterfaceName(BlackIceDEVMODE* pDevMode) and
DEVMODE_SetInterfaceName(BlackIceDEVMODE* pDevMode, LPCTSTR InterfaceName);
TCHAR InterfaceName[MAX_PATH]:
A TCHAR string type member.
The InterfaceName member stores the name of the messaging interface.
For Windows 95/98/ME is the name of the Windows Message broadcasted by
the driver.
Access functions:
LPCTSTR
DEVMODE_GetInterfaceName(BlackIceDEVMODE* pDevMode);
void
DEVMODE_SetInterfaceName(BlackIceDEVMODE* pDevMode, LPCTSTR
InterfaceName);
DM;
BliceMode;
Format;
ColorMode;
FAXheader;
LossRatio;
Dithering;
Brightness;
PaperWidthInPixels;
PaperHeightInPixels;
ApplicationPath[MAX_PATH];
LaunchFlags;
FileNameGenerationFlags;
OutputDirectory[MAX_PATH];
ImageFileName[MAX_PATH];
FileNamePrefix[MAX_PREFIX_LENGTH+1];
FileExtension[MAX_FILE_EXTENSION_LENGTH+1];
InterfaceName[MAX_PATH];
INIFileName[MAX_PATH];
TIFFDLLName[MAX_PATH];
103
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
TCHAR
TCHAR
DWORD
DWORD
TCHAR
TCHAR
}BlackIceDEVMODE,
JPEGDLLName[MAX_PATH];
ResourceDLLName[MAX_PATH];
SessionID;
UserFlags;
szUser1[128];
szUser2[128];
*LPBlackIceDEVMODE;
0x00000004
0x00000008
0x00000010
0x00000020
0x00000040
0x00000080
0x00000100
0x00000200
0x00000400
0x00000800
0x00001000
0x00002000
0x00004000
0x00008000
0x00010000
0x00020000
0x00040000
0x00080000
0x00100000
0x00200000
0x00400000
DEVMODE_IsInternetTiffFormatEnabled(BlackIceDEVMODE* pDevMode);
DEVMODE_EnableInternetTiffFormat(BlackIceDEVMODE* pDevMode);
104
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
void
DEVMODE_DisableInternetTiffFormat(BlackIceDEVMODE* pDevMode);
DEVMODE_IsPageNumberingEnabled(BlackIceDEVMODE* pDevMode);
DEVMODE_EnablePageNumbering(BlackIceDEVMODE* pDevMode);
DEVMODE_DisablePageNumbering(BlackIceDEVMODE* pDevMode);
DEVMODE_IsReverseBitOrderEnabled(BlackIceDEVMODE* pDevMode);
DEVMODE_EnableReverseBitOrder(BlackIceDEVMODE* pDevMode);
DEVMODE_DisableReverseBitOrder(BlackIceDEVMODE* pDevMode);
DEVMODE_IsAppendImageEnabled(BlackIceDEVMODE* pDevMode);
DEVMODE_EnableAppendImage(BlackIceDEVMODE* pDevMode);
DEVMODE_DisableAppendImage(BlackIceDEVMODE* pDevMode);
DEVMODE_IsWriteTextEnabled(BlackIceDEVMODE* pDevMode);
DEVMODE_EnableWriteText(BlackIceDEVMODE* pDevMode);
DEVMODE_DisableWriteText(BlackIceDEVMODE* pDevMode);
DEVMODE_IsMailMergeEnabled(BlackIceDEVMODE* pDevMode);
DEVMODE_EnableMailMerge(BlackIceDEVMODE* pDevMode);
DEVMODE_DisableMailMerge(BlackIceDEVMODE* pDevMode);
DEVMODE_IsAdvancedTextEnabled(BlackIceDEVMODE* pDevMode);
DEVMODE_EnableAdvancedText(BlackIceDEVMODE* pDevMode);
DEVMODE_DisableAdvancedText(BlackIceDEVMODE* pDevMode);
DEVMODE_IsImageDisabled(BlackIceDEVMODE* pDevMode);
DEVMODE_EnableDisableImage(BlackIceDEVMODE* pDevMode);
DEVMODE_DisableDisableImage(BlackIceDEVMODE* pDevMode);
DEVMODE_IsGroupFileDisabled(BlackIceDEVMODE* pDevMode);
DEVMODE_DisableGroupFile(BlackIceDEVMODE* pDevMode);
105
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
void
DEVMODE_EnableGroupFile(BlackIceDEVMODE* pDevMode);
DEVMODE_IsMessagingInterfaceEnabled(BlackIceDEVMODE* pDevMode);
DEVMODE_EnableMessagingInterface(BlackIceDEVMODE* pDevMode);
DEVMODE_DisableMessagingInterface(BlackIceDEVMODE* pDevMode);
BLF_ENABLETIFFDLL: If set the using of the TIFF32.DLL is enabled. Can be set only
programmatically.
Access functions:
BOOL
void
void
DEVMODE_IsTiffDllEnabled(BlackIceDEVMODE* pDevMode);
DEVMODE_EnableTiffDll(BlackIceDEVMODE* pDevMode);
DEVMODE_DisableTiffDll(BlackIceDEVMODE* pDevMode);
DEVMODE_IsFaxOutputEnabled(BlackIceDEVMODE* pDevMode);
DEVMODE_EnableFaxOutput(BlackIceDEVMODE* pDevMode);
DEVMODE_DisableFaxOutput(BlackIceDEVMODE* pDevMode);
DEVMODE_IsEasternCharSupportEnabled(BlackIceDEVMODE* pDevMode);
DEVMODE_EnableEasternCharSupport(BlackIceDEVMODE* pDevMode);
DEVMODE_DisableEasternCharSupport(BlackIceDEVMODE* pDevMode);
DEVMODE_IsRotatePaperEnabled(BlackIceDEVMODE* pDevMode);
DEVMODE_EnableRotatePaper(BlackIceDEVMODE* pDevMode);
DEVMODE_DisableRotatePaper(BlackIceDEVMODE* pDevMode);
DEVMODE_IsDeleteGroupFileEnabled(BlackIceDEVMODE* pDevMode);
DEVMODE_EnableDeleteGroupFile(BlackIceDEVMODE* pDevMode);
DEVMODE_DisableDeleteGroupFile(BlackIceDEVMODE* pDevMode);
DEVMODE_IsKeepExistingFilesEnabled(BlackIceDEVMODE* pDevMode);
DEVMODE_EnableKeepExistingFiles(BlackIceDEVMODE* pDevMode);
DEVMODE_DisableKeepExistingFiles(BlackIceDEVMODE* pDevMode) ;
DEVMODE_IsAdvancedPaperSizeEnabled(BlackIceDEVMODE* pDevMode);
106
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
void
void
DEVMODE_EnableAdvancedPaperSize(BlackIceDEVMODE* pDevMode);
DEVMODE_DisableAdvancedPaperSize(BlackIceDEVMODE* pDevMode);
DEVMODE_IsCustomExtensionEnabled(BlackIceDEVMODE* pDevMode);
DEVMODE_EnableCustomExtension(BlackIceDEVMODE* pDevMode);
DEVMODE_DisableCustomExtension(BlackIceDEVMODE* pDevMode)
DWORD Format :
A DWORD type member.
Specifies the file format used by the driver. The available file formats are enumerated in
the devmode.h
enum TEFileFormats{ FFR_BMP,
FFR_PCX,
FFR_DCX,
FFR_TIFF_UNC,
FFR_TIFF_G31D,
FFR_TIFF_G31DNOEOL,
FFR_TIFF_G32D,
FFR_TIFF_G4,
FFR_TIFF_PACK,
FFR_TIFF_LZW,
FFR_TIFF_JPEG,
FFR_CALS,
FFR_RAW_G31D,
FFR_RAW_G31DNOEOL,
FFR_RAW_G32D,
FFR_RAW_G4,
FFR_JPEG,
FFR_JPEG_LAB,
FFR_EMF,
FFR_MMR,
FFR_END
};
Access functions:
DWORD DEVMODE_GetFileFormat(BlackIceDEVMODE* pDevMode);
void
DEVMODE_SetFileFormat(BlackIceDEVMODE* pDevMode, DWORD Format);
NOTE: In the Monochrome driver only the monochrome file formats are available, such as
TIFF. The Metafile driver creates only Enhanced Metafile Format (EMF).
DWORD ColorMode:
A DWORD type member.
Specifies the color depth used by the printer. The values are enumerated in the devmode.h
enum ColorMode {
BITS_1,
BITS_8GRAY,
BITS_8,
BITS_24,
107
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
BITS_END
};
Access functions:
DWORD DEVMODE_GetColorDepth(BlackIceDEVMODE* pDevMode);
void
DEVMODE_SetColorDepth(BlackIceDEVMODE* pDevMode, DWORD ColorDepth);
NOTE: In the Monochrome driver only the BITS_1 ColorMode is available. The Metafile
driver accepts only the BITS_24 value..
DWORD FAXheader:
A DWORD type member.
Specifies the height in pixels of the fax header.
Access functions:
DWORD DEVMODE_GetFaxHeader(BlackIceDEVMODE* pDevMode);
void
DEVMODE_SetFaxHeader(BlackIceDEVMODE* pDevMode, DWORD nPixels);
DWORD LossRatio:
A DWORD type member.
Specifies the loss ratio of the jpeg image.
Access functions:
DWORD DEVMODE_GetLossRatio(BlackIceDEVMODE* pDevMode);
void
DEVMODE_SetLossRatio(BlackIceDEVMODE* pDevMode, DWORD dwLossRatio);
DWORD Dithering:
A DWORD type member.
Specifies the dithering method for the monochrome image. The available values are
defined in the devmode.h
#define
#define
#define
#define
#define
#define
DITHER_NONE
DITHER_FS4
DITHER_JJN
DITHER_SMOOTH
DITHER_SHARP
DITHER_STUCKI
0
1
2
3
4
5
Access functions:
DWORD DEVMODE_GetDithering(BlackIceDEVMODE* pDevMode);
void
DEVMODE_SetDithering(BlackIceDEVMODE* pDevMode, DWORD dwDithering);
DWORD Brightness:
A DWORD type member.
Specifies the brightness value.
Access functions:
DWORD DEVMODE_GetBrightness(BlackIceDEVMODE* pDevMode);
void
DEVMODE_SetBrightness(BlackIceDEVMODE* pDevMode, DWORD dwBrightness);
108
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
DWORD PaperWidthInPixels:
A DWORD type member.
Specifies the Paper Width value in pixels.
Access functions:
DWORD DEVMODE_GetPageWidthInPixels(BlackIceDEVMODE* pDevMode);
void
DEVMODE_SetPaperWidthInPixel(BlackIceDEVMODE* pDevMode, DWORD nPixels);
DWORD PaperHeightInPixels:
A DWORD type member.
Specifies the Paper Width value in pixels.
Access functions:
DWORD DEVMODE_GetPageHeightInPixels(BlackIceDEVMODE* pDevMode);
void DEVMODE_SetPaperHeightInPixel(BlackIceDEVMODE* pDevMode, DWORD nPixels);
TCHAR ApplicationPath[MAX_PATH]:
A string type member.
Specifies the name and the path of the application to be started after printing.
Access functions:
LPCTSTR DEVMODE_GetApplicationPath(BlackIceDEVMODE* pDevMode);
void
DEVMODE_SetApplicationPath(BlackIceDEVMODE* pDevMode, LPCTSTR
ApplicationPath);
DWORD LaunchFlags :
A DWORD type member.
Each bit of LaunchFlags represents a flag used by the printer driver. If the bit is set the
value is TRUE, if it is not the value is FALSE. The flags and their values are the
following:
BLF_LAUNCHAPP
0x00000001
BLF_STARTBEFOREPRINT
0x00000002
BLF_PASSPARAMETERS
0x00000004
BLF_STARTNORMAL
0x00000008
BLF_STARTMINIMIZED
0x00000010
BLF_STARTHIDDEN
0x00000020
DEVMODE_IsStartApplicationEnabled(BlackIceDEVMODE* pDevMode);
DEVMODE_EnableStartApplication(BlackIceDEVMODE* pDevMode);
DEVMODE_DisableStartApplication(BlackIceDEVMODE* pDevMode);
DEVMODE_IsStartBeforePrint(BlackIceDEVMODE* pDevMode);
DEVMODE_EnableStartBeforePrint(BlackIceDEVMODE* pDevMode);
109
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
void
DEVMODE_DisableStartBeforePrint(BlackIceDEVMODE* pDevMode) ;
DEVMODE_IsPassParametersEnabled(BlackIceDEVMODE* pDevMode);
DEVMODE_EnablePassParameters(BlackIceDEVMODE* pDevMode);
DEVMODE_DisablePassParameters(BlackIceDEVMODE* pDevMode) ;
DEVMODE_IsStartNormal(BlackIceDEVMODE* pDevMode);
DEVMODE_EnableStartNormal(BlackIceDEVMODE* pDevMode);
DEVMODE_DisableStartNormal(BlackIceDEVMODE* pDevMode) ;
DEVMODE_IsStartMinimized(BlackIceDEVMODE* pDevMode);
DEVMODE_EnableStartMinimized(BlackIceDEVMODE* pDevMode);
DEVMODE_DisableStartMinimized(BlackIceDEVMODE* pDevMode) ;
DEVMODE_IsStartHidden(BlackIceDEVMODE* pDevMode);
DEVMODE_EnableStartHidden(BlackIceDEVMODE* pDevMode);
DEVMODE_DisableStartHidden(BlackIceDEVMODE* pDevMode) ;
DWORD FileNameGenerationFlags :
A DWORD type member.
The FileNameGenerationFlags member represents the method used by the printer driver
to generate the files. This setting is in the Name generation Method combo. The
available values are defined in the devmode.h and must be one of the followings:
enum {
FILENAME_PREFIX_DEVMODE,
FILENAME_PREFIX_REGISTRY,
FILENAME_PREFIX_INI,
FILENAME_EXACT_DEVMODE,
FILENAME_EXACT_REGISTRY,
FILENAME_EXACT_INI,
FILENAME_DOCUMENT_NAME,
FILENAME_LAST
};
Access functions:
DWORD DEVMODE_GetFileGenerationMethod(BlackIceDEVMODE* pDevMode);
void
DEVMODE_SetFileGenerationMethod(BlackIceDEVMODE* pDevMode,
DWORD dwGenMethod);
TCHAR OutputDirectory[MAX_PATH]:
A TCHAR string type member.
The OutputDirectory member stores the path where the printer driver generates the files.
Access functions:
110
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
void
DEVMODE_SetOutputDirectory(BlackIceDEVMODE* pDevMode, LPCTSTR
OutputDir);
LPCTSTR DEVMODE_GetOutputDirectory(BlackIceDEVMODE* pDevMode);
TCHAR FileImageName[MAX_PATH]:
A TCHAR string type member.
The FileImageName member stores the file name if the file generation method is Exact
Filename.
Access functions:
LPCTSTR
DEVMODE_GetImageFileName(BlackIceDEVMODE* pDevMode);
void
DEVMODE_SetImageFileName(BlackIceDEVMODE* pDevMode, LPCTSTR
ImageFileName);
TCHAR InterfaceName[MAX_PATH]:
A TCHAR string type member.
The InterfaceName member stores the name of the messaging interface. For Windows
95/98/ME is the name of the Windows Message broadcasted by the driver.
Each driver has an unique Messaging Interface Name. You can create your own
Messaging Interface Name by changing the default Messaging Interface Name in the
printers DEVMODE InterfaceName member. To do this use the following functions:
Access functions:
LPCTSTR
DEVMODE_GetInterfaceName(BlackIceDEVMODE* pDevMode);
void
DEVMODE_SetInterfaceName(BlackIceDEVMODE* pDevMode, LPCTSTR
InterfaceName);
111
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
TCHAR INIFileName[MAX_PATH]:
A TCHAR string type member.
The INIFileName member stores the name of the INI file which contains the information
depending on the filename generation information.
For FILENAME_PREFIX_INI,
TCHAR TIFFDLLName[MAX_PATH]:
A TCHAR string type member.
The TIFFDLLName member stores the name and path of the TIFF32.DLL. This DLL
encodes the TIFF files. The file is needed for TIFF output.
Access functions:
LPCTSTR
DEVMODE_GetTIFFDLLName(BlackIceDEVMODE* pDevMode);
void
DEVMODE_SetTIFFDLLName (BlackIceDEVMODE* pDevMode, LPCTSTR
TIFFDLLName);
TCHAR JPEGDLLName[MAX_PATH]:
A TCHAR string type member.
The JPEGDLLName member stores the name and path of the JPEG32.DLL. This DLL
encodes the Jpeg files. The file is needed for Jpeg output.
Access functions:
LPCTSTR
DEVMODE_GetJPEGDLLName(BlackIceDEVMODE* pDevMode);
void
DEVMODE_SetJPEGDLLName (BlackIceDEVMODE* pDevMode, LPCTSTR
JPEGDLLName);
TCHAR ResourceDLLName[MAX_PATH]:
A TCHAR string type member.
The resources of the driver such as the driver property dialogs - are stored in a separate
DLL file. The look of the property sheets of the printer driver can be modified by moving
or hiding controls. Also, all the names of the paper formats, DPI setting and file name
generation methods are stored in this DLL and can be changed as well.
The ResourceDLLName member stores the name and path of the driver resource DLL.
112
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
Access functions:
LPCTSTR
DEVMODE_GetResourceDLLName(BlackIceDEVMODE* pDevMode);
void
DEVMODE_SetResourceDLLName(BlackIceDEVMODE* pDevMode, LPCTSTR
ResourceDLLName);
DWORD SessionID:
Reserverd.
DWORD UserFlags::
A DWORD value.
Reserved for extra programming possibilities.
TCHAR szUser1[128]:
A TCHAR string type member.
Reserved for extra programming possibilities.
TCHAR szUser2[128]:
A TCHAR string type member.
Reserved for extra programming possibilities.
113
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
Messaging Interface
All the Black Ice Printer Drivers have a messaging interface. The printer driver can communicate
with applications through this interface. The applications capture and process the messages sent
by the driver.
The driver can communicate with an application three different ways.
1. Method I: Through the WM_COPYDATA Windows message.
This method is NOT supported on Terminal Server.
The WM_COPYDATA message is sent by the driver to a specific window. The driver has
to know the applications window handle. To pass the window handle to the driver, the
application, when it starts, should write its window handle using the WritePrinterData()
function to the PRINTER_DATA_WINDOW_HANDLE_KEY key.
The driver sends a WM_COPYDATA message to the applications window. The
application extracts the information from the data structure arrived with the message.
Before the application exits, it should overwrite the window handle in the registry to 0 by
setting the PRINTER_DATA_WINDOW_HANDLE_KEY to 0.
2. Method II. Through a windows message registered with RegisterWindowMessage ().
This method is NOT supported on Terminal Server.
The driver registers a message with the RegisterWindowMessage () function and then
starts broadcasting the message. The application has to register the same message as the
driver. To accomplish this, use the string from the InterfaceName member of the
BlackIceDEVMODE structure. The application will then capture and process the
messages. The data will be written to an ini file by the driver defined in devmode.h.
#define BLACK_ICE_DEFAULT_INIFILE
TEXT("bi_group.ini")
The application will read the ini file when the BLACKICE_MESSAGE_STARTDOC
message arrives in order to get the name of the group file.. The driver writes all the
information about the generated images in the group file. See the Description of the
Black Ice Printer Messages and the Group File Description sections in this manual for
more detail.
3. Method III. Through a pipe interface.
This method is supported on Terminal Server.
This method was included for compatibility reasons only.
The printer drivers uses a named pipe interface to communicate with the application. The
BLICECTR.DLL captures the pipe messages sent by the printer driver and converts
them to window messages. The application captures the window messages and extracts
114
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
#define BLACKICE_MESSAGE_STARTDOC
0x00000001
#define BLACKICE_MESSAGE_STARTPAGE 0x00000002
#define BLACKICE_MESSAGE_ENDPAGE
0x00000003
#define BLACKICE_MESSAGE_ENDDOC0x00000004
#define BLACKICE_MESSAGE_ABORT
0x00000005
4. The TSPrnMessage structure did change since previous versions. Please update the
code to use the new structure.
NOTE: On Terminal Server when a Windows Test Page is printed, the test page is printed by the
spooler. In that particular case the messages will be captured on the server machine by the
administrator account, not by the user who prints.
//
//
//
//
Parameters
wParam
Handle to the window passing the data.
lParam
Pointer to a COPYDATASTRUCT structure that contains the data to be passed.
Return Values
If the receiving application processes this message, it should return TRUE; otherwise, it should
return FALSE.
Remarks
The data being passed must not contain pointers or other references to objects not accessible to
the application receiving the data.
While this message is being sent, the referenced data must not be changed by another thread of
the sending process.
116
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
The receiving application should consider the data read-only. The lParam parameter is valid only
during the processing of the message. The receiving application should not free the memory
referenced by lParam. If the receiving application must access the data after SendMessage
returns, it must copy the data into a local buffer.
When you send a WM_COPYDATA message, SendMessage allocates a block of memory
cbData bytes in size and copies the data from the caller's address space to this block. It then
sends the message to the destination window. When the receiving window procedure processes
this message, the lParam parameter is a pointer to a COPYDATASTRUCT structure that exists
in the address space of the receiving process. The lpData member is a pointer to the copied block
of memory and the address reflects the memory location in the receiving process's address space.
Members
dwData
Specifies data to be passed to the receiving application.
cbData
Specifies the size, in bytes, of the data pointed to by the lpData member.
lpData
Pointer to data to be passed to the receiving application. This member can be NULL.
117
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
{
DWORD dwBlackIceFlag;
DWORD dwSize;
DWORD dwMessage;
TCHAR szFileName[MAX_PATH];
TCHAR szInterfaceName[MAX_PATH];
}BLACKICE_PRINTER_MESSAGE;
Members
DWORD dwBlackIceFlag:
This constant value identifies the message. The value of this member should be BLACK_ICE_FLAG
(defined in devmode.h).
DWORD dwSize:
The size of the BLACKICE_PRINTER_MESSAGE structure.
DWORD dwMessage:
0x00000001
0x00000002
0x00000003
0x00000004
0x00000005
TCHAR szFileName[MAX_PATH]:
A string passed with the message. The string content depends on the message. It can be the group file
name, the image name, or an error code.
TCHAR szInterfaceName[MAX_PATH]:
This string identifies a printer driver (can be than more than one printer driver). The printer driver fills
the szInterfaceName[MAX_PATH] member with the value of the InterfaceName member of the
BlackIceDEVMODE structure. When the application captures the WM_COPYDATA message, the
application should compare the InterfaceName member of the designated printer drivers devmode data
structure with the szInterfaceName.
TEXT("bi_group.ini")
Method II. With this message the driver sends the name of the group file in the
szFileName member of the BLACKICE_PRINTER_MESSAGE structure .
118
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
120
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
121
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
Image Format=JPEG
Image format can be
Microsoft Bitmap format
Paint Brush format
Intel format
- BMP"
- "PCX"
- "DCX"
- "TIFF Group 3 1D No EOL"
- "TIFF Uncompressed"
- "TIFF Group 3 2D"
- "TIFF Group 4"
- "TIFF Packed"
- "TIFF LZW"
- "TIFF JPEG"
- "TIFF Group 3 1D"
- "CALS"
- "RAW TIFF Group 3 1D"
- "RAW TIFF Group 3 1D No EOL"
- "RAW TIFF Group 3 2D"
- "RAW TIFF Group 4"
- "JPEG"
- "JPEG L*a*b"
- "Extended Metafile"
The message "JPEG32.DLL cannot be loaded" shown f driver failed to load the
JPEG DLL.
[Page 2]
FileName=c:\temp\AAA43840002.JPG
TextFileName=c:\temp\AAA43840002.TXT
[Page 3]
FileName=c:\temp\AAA60D30003.JPG
TextFileName=c:\temp\AAA60D30003.TXT
124
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
PrinterName Property
This property contains the name of the printer the application wants to capture messages from.
StartDoc event
The StartDoc event is fired when the selected printer starts to print a document. The parameter of this
event is the name (with the full path) of the generated group file.
StartPage event
The StartPage event is fired when the selected printer starts to print a new page. The parameter of this
event is the actual page number.
125
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
EndPage event
The EndPage event is fired when the selected printer finishes printing a page. The parameter of this
event is the name (with the full path) of the generated image file.
EndDoc event
The EndDoc event is fired when the selected printer finishes printing a document. The parameter of this
event is the name (with the full path) of the generated group file.
126
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
0x00000001
127
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
#define BLACKICE_MESSAGE_STARTPAGE
#define BLACKICE_MESSAGE_ENDPAGE
#define BLACKICE_MESSAGE_ENDDOC
#define BLACKICE_MESSAGE_ABORT
0x00000002
0x00000003
0x00000004
0x00000005
4. The TSPrnMessage structure did change from previous versions. Please update the code to use the
new structure.
The BLICECTR.DLL exports the following three functions:
WaitForPrnPipe
BOOL PASCAL WaitForPrnPipe( LPWSTR pszPipeName, HWND hMsgWnd, DWORD
dwMessageNum )
The function has the following parameters:
LPWSTR pszPipeName pointer to a NULL terminated UNICODE string that contains the pipe
name, including the \\.\pipe\ prefix.
HWND hMsgWnd A Window handle. The BLICECTR.DLL will send window messages to this
window.
DWORD dwMessageNum Message number. The message number of the registered window
message.
EndWaitPrnPipe
BOOL PASCAL EndWaitPrnPipe(PWCHAR pszPipeName)
The function has the following parameter:
PWCHAR pszPipeName pointer to a NULL terminated UNICODE string that contains the pipe
name, including the \\.\pipe\ prefix.
SetListeningPriority
BOOL PASCAL SetListeningPriority( int nPri )
The function has the following parameters:
INT nPri sets the priority of the thread which waits for pipe messages. Valid values are the
following:
128
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
THREAD_PRIORITY_LOWEST
THREAD_PRIORITY_BELOW_NORMAL
THREAD_PRIORITY_NORMAL
THREAD_PRIORITY_HIGHEST
THREAD_PRIORITY_ABOVE_NORMAL
THREAD_PRIORITY_ERROR_RETURN
THREAD_PRIORITY_TIME_CRITICAL
THREAD_PRIORITY_IDLE
129
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
130
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
return FALSE;
}
lFlag = DocumentProperties(NULL, hPrinter,
pPrinterName,
(PDEVMODE)pDevMode, NULL,
DM_OUT_BUFFER);
if (lFlag != IDOK || pDevMode == NULL)
{
GlobalFree(pDevMode);
GlobalFree(pi2);
ClosePrinter(hPrinter);
return FALSE;
}
pi2->pDevMode = (PDEVMODE)pDevMode;
}
// Driver is reporting that it doesn't support this change...
if (!(pi2->pDevMode->dmFields & DM_ORIENTATION))
{
GlobalFree(pi2);
ClosePrinter(hPrinter);
if (pDevMode)
GlobalFree(pDevMode);
return FALSE;
}
// Specify exactly what we are attempting to change...
pi2->pDevMode->dmFields = DM_ORIENTATION;
pi2->pDevMode->dmOrientation = dmOrientation;
// Do not attempt to set security descriptor...
pi2->pSecurityDescriptor = NULL;
// Make sure the driver-dependent part of devmode is updated...
lFlag = DocumentProperties(NULL, hPrinter,
pPrinterName,
pi2->pDevMode, pi2->pDevMode,
DM_IN_BUFFER | DM_OUT_BUFFER);
if (lFlag != IDOK)
{
GlobalFree(pi2);
ClosePrinter(hPrinter);
if (pDevMode)
GlobalFree(pDevMode);
return FALSE;
}
// Update printer information...
bFlag = SetPrinter(hPrinter, 2, (LPBYTE)pi2, 0);
if (!bFlag)
// The driver doesn't support, or it is unable to make the change...
131
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
{
GlobalFree(pi2);
ClosePrinter(hPrinter);
if (pDevMode)
GlobalFree(pDevMode);
return FALSE;
}
// Tell other apps that there was a change...
SendMessageTimeout(HWND_BROADCAST, WM_DEVMODECHANGE, 0L,
(LPARAM)(LPCSTR)pPrinterName,
SMTO_NORMAL, 1000, NULL);
// Clean up...
if (pi2)
GlobalFree(pi2);
if (hPrinter)
ClosePrinter(hPrinter);
if (pDevMode)
GlobalFree(pDevMode);
return TRUE;
}
NOTES:
1. The first call of the DocumentProperties() function will return the size needed for the
devmode. The returned size should be the same as the size of the BlackIceDEVMODE
structure. If the returned size is not the same as the size of the BlackIceDEVMODE
structure, please check the following:
a. Make sure that the printer handle you specified as the second parameter in the
DocumentProperties function call was obtained by calling the OpenPrinter function
with a Black Ice printer. Non Black Ice printers will have a different DEVMODE
structure and this is the reason why the size is not correct.
b. Make sure that the structure member alignment in your project is set to 1 and the
following values have been defined: UNICODE, _UNICODE,
_WIN32_WINNT=0x0400.
c. The correct size of the BlackIceDEVMODE structure is 0x136A.
2. Modify the printer settings by modifying members of the BlackIceDEVMODE structure.
The devmode.h and devmode.cpp file provides a set of functions that access and modify
members of the structure. It is not recommended modifying any structure member directly,
but through the functions from the devmode.h file.
On Windows XP/W2K and XP all the string members of the structure are UNICODE.
When you modify these members, please make sure that the new value is a UNICODE
string.
The following code sample sets the output directory to c:\temp and sets the printer to
use the image.tif file name as image file name for the printed document.
132
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
DEVMODE_SetOutputDirectory(pDevMode, TEXT("C:\\TEMP"));
DEVMODE_SetFileGenerationMethod(pDevMode,
FILENAME_EXACT_DEVMODE);
DEVMODE_SetImageFileName(pDevMode, TEXT(IMAGE.TIF));
133
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
Fax Boards
GammaLink Fax Boards
In order to generate images for the GammaFax board use the following settings:
File Format = Tiff Group 3. 1 Dimension with Fillbits
Paper Size =Fax Paper or Create faxable Image checkbox checked.
Graphic Resolution = Fine FAX Resolution or Standard FAX Resolution
At this point the DPI setting has to be 204 x 98 or 204 x 196.
The Reverse Bit Order checkbox should be checked.
134
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
135
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
137
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
be
defined
in
the
project:
UNICODE,
_UNICODE,
To change a member of the DEVMODE at install time follow the steps below:
1. Call the dSetParameter() function from the Install DLL to set a member of the DEVMODE
structure.
2. Repeat step 1 for each member of the DEVMODE you wish to set.
When all of the members are set to the required value, call the dDocumentProperties() function
from the Install DLL to write the new settings to the printer.
138
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
HWND
MainWnd
- a window handle (can be NULL)
LPLONG
lpLong
- a pointer to a long value. Represents the member of the
DEVMODE to be changed. The valid values are defined in the setup.h file
// Parameters to
#define
default
#define
#define
#define
#define
#define
#define
#define
#define
#define
call dSetParameter()
PAR_INIC_PARAMETERS
values.
PAR_DRIVER_VERZIO
PAR_DRIVER_NAME
PAR_DRIVER_DRIVERFILE
PAR_DRIVER_DATAFILE
PAR_DRIVER_CONFIGFILE
PAR_PRINTER_NAME
PAR_PRINTER_PORT
PAR_PRINTER_PROCESS
PAR_PRINTER_DATATYPE
1
2
3
4
5
101
102
103
104
//
//
//
//
//
//
//
//
//
numeric
string
string
string
string
string
string
string
string
139
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
LPSTR
lpStringTmp - Represents the new value of the DEVMODE member specified in
the lpLong parameter.
Return Value
The dSetParameter() will return FALSE if the value passed in the lpLong parameter is not valid
(code to set the specified DEVMODE member is not present in the dSetParameter() function) ,
otherwise TRUE. Check the How to add code to set a member of the DEVMODE section of
the manual for information on implementing your own code to set the DEVMODE members.
G_DllFileName;
DllProc;
ParamValue;
tmpLong;
nResult;
G_DllFileName =
DllProc
tmpLong
ParamValue
CallDLLFx(
DllProc
SUPPORTDIR ^ "MYDLL_NT.DLL";
= "dSetParameter";
= PAR_DEVMODE_XDPI;
= "300";
G_DllFileName, DllProc, tmpLong, ParamValue);
= "dDocumentProperties";
140
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
tmpLong
= 0;
ParamValue = "";
CallDLLFx( G_DllFileName, DllProc, tmpLong, ParamValue );
DEVMODE_IsWriteTextEnabled(BlackIceDEVMODE* pDevMode);
DEVMODE_EnableWriteText(BlackIceDEVMODE* pDevMode);
DEVMODE_DisableWriteText(BlackIceDEVMODE* pDevMode)
1. Define a new value in the setup.h file in the Install DLL project for each member you want to
access:
#define PAR_DEVMODE_ADVTEXT
311
2. Modify the dSetParameter() function in the setupdll.cpp file in the Install DLL project. Add
the following to the switch statement:
case PAR_DEVMODE_ADVTEXT:
if ( _ttoi(lpString))
DEVMODE_ EnableWriteText (&DefDevMode);
else
DEVMODE_ DisableWriteText (&DefDevMode);
break;
3. Modify the dDocumentProperties() function in the setupdll.cpp file in the Install DLL
project. Add the following code to the dDocumentProperties(), before the last call of the
DocumentProperties() function:
Modify the flag only if it was set.
if (DEVMODE_IsWriteTextEnabled(&DefDevMode))
DEVMODE_EnableWriteText (pBlackIceDevmode);
else
DEVMODE_DisableWriteText (pBlackIceDevmode);
141
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
4. Rebuild the Install DLL and copy the file to the Install Shield project
Files\Compressed Files\Language Independent\OS Independent folder.
Setup
Open the Install Shield project. Open the script file. Add the following code to the RUL file:
STRING
STRING
STRING
LONG
NUMBER
G_DllFileName;
DllProc;
ParamValue;
tmpLong;
nResult;
G_DllFileName =
DllProc
tmpLong
ParamValue
CallDLLFx(
SUPPORTDIR ^ "MYDLL_NT.DLL";
= "dSetParameter";
= PAR_DEVMODE_ADVTEXT;
= VAL_YES;
G_DllFileName, DllProc, tmpLong, ParamValue);
DllProc
= "dDocumentProperties";
tmpLong
= 0;
ParamValue = "";
CallDLLFx( G_DllFileName, DllProc, tmpLong, ParamValue );
NOTE: Important ! The printer must be installed correctly before you call the
dSetParameter() and dDocumentProprieties() functions to change the settings.
dIsPrintProcessorInstalled(LPSTR lpPrintProcessorName)
- Returns TRUE if the specified print processor is already installed
dDeletePrintProcessor(LPSTR lpPrintProcessor)
- Deletes the specified print processor.
- Returns TRUE if the print processor was deleted, otherwise returns the GetLastError() value.
dAddPrintProcessor(LPSTR lpProcessorDllName, LPSTR lpProcessorName)
- Adds the specified print processor to the system.
- lpProcessorDllName
- the name of the print processor dll
- lpProcessorName
- the name of the print processor
- Returns 0 on success, otherwise GetLastError().
dIsPortMonitorInstalled(LPSTR lpMonitorName)
- Returns TRUE if the specified port monitor is installed
dAddPortMonitor(LPSTR lpMonitorDllName, LPSTR lpMonitorName)
- adds the specified port monitor to the system
- lpMonitorDllName
- the dll file name
- lpMonitorName
- the name of the port monitor
- Returns 0 if the port monitor was successfully added, otherwise returns the GetLastError();
dIsPortInstalled(LPSTR lpPortName, LPSTR lpMonitorName)
- Returns TRUE if the port is already installed, otherwise FALSE
- lpPortName
- the name of the port
- lpMonitorName - the name of the port monitor
dAddPort(LPSTR lpPortName, LPSTR lpMonitorName)
- Adds the specified port to the specified port monitor
- lpPortName
- the name of the port to be added
- lpMonitorName - the name of the port monitor to add the port to
dAddPrinterDriver(HWND MainWnd, LPLONG lpLong, LPSTR lpStrTemp)
- Adds the specified printer driver to the system
- MainWnd
- handle to a window
- lpLong
- pointer to a long value. Not used, the value can be 0.
- lpStrTemp- the name of the driver to be installed
- Returns 1 if the driver is already installed. Returns GetLastError() if adding the driver failed.
Returns 0 on success.
dAddPrinter( LPSTR szPrinterNameTmp, LPSTR szPrinterPortTmp,
LPSTR szDriverNameTmp, LPSTR szPrintProcessorTmp )
-
- szDriverName
- the name of the printer driver
- szPrintProcessor - the name of the print processor
NOTE: The printer driver, the port and the print processor must be installed before calling the
dAddprinter() function.
dDocumentProperties(HWND MainWnd, LPLONG lpLong, LPTSTR lpString)
- writes the settings modified by the dSetParameters() function to the installed printer
- MainWnd - handle to a window. Not used.
- lpLong
- pointer to a value A handle to the printer to set. By default the value can be
NULL. In this case the currently installed printer settings will be chanced.
- lpString - a string value. Not used.
If an error occurs function return the GetLastError() error code, otherwise 0.
dSetParameter(HWND MainWnd, LPLONG lpLong, LPSTR lpStringTmp)
- Modifies the settings of the printer one at a time. After calling this function for all the
required settings, the dDocumentProperties() must be called to write the settings to the
printer.
- MainWnd- handle to a window
- lpLong
- pointer to a long value. Represents the member of the DEVMODE to be
changed. The valid values are defined in the setup.h file. See 1.2 The dSetParameter() for
details
- lpStringTmp
- Represents the new value of the DEVMODE member specified in the
lpLong parameter.
- Return Value
- The dSetParameter() will return FALSE if the value passed in the lpLong
parameter is not valid (code to set the specified DEVMODE member is not present in the
dSetParameter() function) , otherwise TRUE. Please see the How to add code to set a
member of the DEVMODE section for information on implementing your own code to set
the DEVMODE members.
CreateRegistryKeyForApplicationStarting(DWORD PrinterType);
This function will create the required entries in the registry for the Start Application feature.
The registry key will be created under the HKEY_LOCAL_MACHINE\Black Ice Software,
Inc.\ key. The registry key is different for each printer driver.
- DWORD PrinterType the printer to create the registry keys for.
The values of the PrinterType can be one of the followings:
0=
Color NT
1=
Monocrome NT
2=
Emf NT
3=
Color Terminal Server
4=
Mono Terminal Server
5=
Emf Terminal Server
144
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
The function will also grant full access to the Everyone and Administrator groups to this key
in the registry. The system administrator can change the access rights for these registry keys and
can add or remove access rights for different groups and users after installation.
NOTE: To be able to launch an application after printing, using the printer drivers Start
Application feature, the user must have read/write permission to these registry keys! If the
read/write process fails, the application will not be launched by the printer driver.
CreateRegistryKeyForApplicationStarting_ColorNT()
CreateRegistryKeyForApplicationStarting_MonoNT()
CreateRegistryKeyForApplicationStarting_EmfNT()
CreateRegistryKeyForApplicationStarting_ColorTS()
CreateRegistryKeyForApplicationStarting_MonoTS()
CreateRegistryKeyForApplicationStarting_EmfTS()
- Each of these functions will create a registry entry for the printer driver. They will call the
CreateRegistryKeyForApplicationStarting function and will pass the required parameter.
146
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
...\Distribution\ BiCRmvTS.dll
- Library for the driver uninstall for NT/W2K/XP Terminal
Server
...\Distribution\ BiCUifTS.dll
- User Interface file for NT/W2K/XP Terminal Server
...\Distribution\ BiCProTS.dll
- Print processor file for NT Terminal Server
...\Distribution\Process.2k\BiCProTS.dll - Print processor file for Win2000 and XP Terminal
Server
...\Distribution\BiCAppTS.exe
- program launcher for NT/W2K/XP Terminal Server
...\Distribution\ BiImg.dll
- file for NT/W2K/XP Terminal Server
...\Distribution\ JPEG32.DLL
- file for NT/W2K/XP Terminal Server
...\Distribution\ TIFF32.DLL
- file for NT/W2K/XP Terminal Server
- file for NT/W2K/XP Terminal Server
...\Distribution\ BiImg.dll
...\Distribution\ JPEG32.DLL
...\Distribution\ TIFF32.DLL
148
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
Printer driver
Monochrome
printer driver for
Windows
NT/2000/XP
Metafile printer
driver for Windows
NT/2000/XP
File description
Driver file
Print processor file
Port monitor file
User Interface DLL
Resource DLL
Driver Remove DLL
Driver initialization file
TIFF DLL
Filename
BiMDrvNT.dll
BiMProNT.dll
BiMMonNT.dll
BiMUifNT.dll
BiMResNT.dll
BiMRmvNT.dll
BiMIniNT.ini
Tiff32.dll
JPEG DLL
JPEG32.dll
BiImg.dll
Application Starter
Driver file
Print processor file
Port monitor file
User Interface DLL
Resource DLL
Driver Remove DLL
Driver initialization file
TIFF DLL
BiMAppNT.exe
BiCDrvNT.dll
BiCProNT.dll
BiCMonNT.dll
BiCUifNT.dll
BiCResNT.dll
BiCRmvNT.dll
BiCIniNT.ini
Tiff32.dll
JPEG DLL
JPEG32.dll
BiImg.dll
Application Starter
Driver file
Print processor file
Port monitor file
User Interface DLL
Resource DLL
Driver Remove DLL
Driver initialization file
TIFF DLL
BiCAppNT.exe
BiEDrvNT.dll
BiEProcNT.dll
BiEMonNT.dll
BiEUifNT.dll
BiEResNT.dll
BiERmvNT.dll
BiECIniNT.ini
Tiff32.dll
JPEG DLL
JPEG32.dll
BiImg.dll
Application Starter
BiCAppNT.exe
Target location
< DRIVERDIR >
< PROCESSORDIR >
<SYSTEM>
< DRIVERDIR >
< SYSTEM >
< SYSTEM >
< DRIVERDIR >
<SYSTEM>,
<WINDOWS>
<SYSTEM>,
<WINDOWS>
<SYSTEM>,
<WINDOWS>
< SYSTEM >
< DRIVERDIR >
< PROCESSORDIR >
<SYSTEM>
< DRIVERDIR >
< SYSTEM >
< SYSTEM >
< DRIVERDIR >
<SYSTEM>,
<WINDOWS>
<SYSTEM>,
<WINDOWS>
<SYSTEM>,
<WINDOWS>
< SYSTEM >
< DRIVERDIR >
< PROCESSORDIR >
<SYSTEM>
< DRIVERDIR >
<SYSTEM>
< SYSTEM >
< DRIVERDIR >
<SYSTEM>,
<WINDOWS>
<SYSTEM>,
<WINDOWS>
<SYSTEM>,
<WINDOWS>
< SYSTEM >
149
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
Printer driver
Monochrome
printer driver for
Windows
NT/2000/XP
Terminal Server
Metafile printer
driver for Windows
NT/2000/XP and
Terminal Server
File description
Driver file
Print processor file
Port monitor file
User Interface DLL
Resource DLL
Driver Remove DLL
Driver initialization file
TIFF DLL
Filename
BiMDrvTS.dll
BiMProTS.dll
BiMMonTS.dll
BiMUifTS.dll
BiMResTS.dll
BiMRmvTS.dll
BiMIniTS.ini
Tiff32.dll
JPEG DLL
JPEG32.dll
BiImg.dll
BiMAppTS.exe
JPEG DLL
JPEG32.dll
BiImg.dll
BiMAppTS.exe
JPEG DLL
JPEG32.dll
BiImg.dll
BiCDrvTS.dll
BiCProTS.dll
BiCMonTS.dll
BiCUifTS.dll
BiCResTS.dll
BiCRmvTS.dll
BiCIniTS.ini
Tiff32.dll
BiEDrvTS.dll
BiEProcTS.dll
BiEMonTS.dll
BiEUifTS.dll
BiEResTS.dll
BiERmvTS.dll
BiECIniTS.ini
Tiff32.dll
Target location
< DRIVERDIR >
< PROCESSORDIR >
<SYSTEM>
< DRIVERDIR >
< SYSTEM >
< SYSTEM >
< DRIVERDIR >
<SYSTEM>,
<WINDOWS>
<SYSTEM>,
<WINDOWS>
<SYSTEM>,
<WINDOWS>
<SYSTEM>,
< DRIVERDIR >
< PROCESSORDIR >
<SYSTEM>
< DRIVERDIR >
< SYSTEM >
< SYSTEM >
< DRIVERDIR >
<SYSTEM>,
<WINDOWS>
<SYSTEM>,
<WINDOWS>
<SYSTEM>,
<WINDOWS>
<SYSTEM>,
< DRIVERDIR >
< PROCESSORDIR >
<SYSTEM>
< DRIVERDIR >
<SYSTEM>
<SYSTEM>
<SYSTEM>
<SYSTEM>,
<WINDOWS>
<SYSTEM>,
<WINDOWS>
<SYSTEM>,
150
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
BiEAppTS.exe
<WINDOWS>
<SYSTEM>,
<SYSTEM> The default location for the driver files is the \WINDOWS\system directory.
<WINDOWS>The Windows directory.
<DRIVERDIR> - For NT / Windows 2000, the default location for the driver files is the
\WINNT\system32\spool\drivers\w32x86 and the
\WINNT\system32\spool\drivers\w32x86\2 directory (the files should be copied
in both these directories). To retrieve the location of this folder, use the
dGetPrinterDriverDirectory function from the InstallDLL.
<PROCESSORDIR> - For NT / Windows 2000, the default location for the print processor files
is the \WINNT\system32\spool\prtprocs\w32x86 directory. To retrieve the
location of this folder, use the "dGetPrintProcessorDirectory function from the
InstallDLL.
1.
2.
5.
6.
7.
8.
9.
DllProc = "dSetParameter";
tmpLong = PAR_INIC_PARAMETERS;
ParamValue = VAL_INIC_BLICENT;
nResult = CallDLLFx(G_DllFileName, DllProc, tmpLong, ParamValue);
DriverFiles = @PRINTER_NAME; // the name of the printer
tmpLong = PAR_PRINTER_NAME;
nResult = CallDLLFx(G_DllFileName, DllProc, tmpLong, DriverFiles);
DriverFiles = G_DriverDir ^ @USER_INTERFACE_NAME; // the name and full path of the
user interface dll (i.e. BiCuifNT.dll for the NT Color driver)
tmpLong = PAR_DRIVER_CONFIGFILE;
nResult = CallDLLFx(G_DllFileName, DllProc, tmpLong, DriverFiles);
DriverFiles = G_DriverDir ^ @DRIVER_FILE; // the name and full path of the driver dll (i.e.
BiCDrvNT.dll for the NT Color driver)
tmpLong = PAR_DRIVER_DRIVERFILE;
nResult = CallDLLFx(G_DllFileName, DllProc, tmpLong, DriverFiles);
DriverFiles = G_DriverDir ^ @DRIVER_CONFIG_INI; // the name and full path of the INI
configuration file (i.e. BiCIniNT.ini for the NT Color driver)
tmpLong = PAR_DRIVER_DATAFILE;
nResult = CallDLLFx(G_DllFileName, DllProc, tmpLong, DriverFiles);
DriverFiles = @PROCESSOR_NAME; // The name of the print processor (i.e. Color Print
Processor for the NT Color driver)
152
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
tmpLong = PAR_PRINTER_PROCESS;
nResult = CallDLLFx(G_DllFileName, DllProc, tmpLong, DriverFiles);
DriverFiles = @PORT_NAME; //The name of the port to install the printer to. (i.e.
IcePortCR: for the NT Color driver)
tmpLong = PAR_PRINTER_PORT;
nResult = CallDLLFx(G_DllFileName, DllProc, tmpLong, DriverFiles);
How to set the printer setting at install time using an INI file?
To set the printer driver settings at install time a specific INI file can be used.
The INI file is located by default in the "C:\Program Files\Black Ice Software, Inc\Black Ice
Color Printer Driver\Distribution" folder. (for the color driver for example)
The Distribution folder is installed with the Printer Driver.
The INI file name is:
BiCIniNT.ini - for the Color driver
BiEIniNT.ini - for the EMF (metafile) driver
BiMIniNT.ini - for the TIFF (monochrome) driver
Modify the contents of this INI file to match your requirements.
Replace the INI file located in the Driver Files folder of the Install Shield project with the new
modified INI file.
Rebuild the Install Shield project.
In this case if the Install Shield project doesnt set the printer default settings, the settings from
the INI file will be used.
The structure of the INI file (for the monochrome driver):
[Default Settings]
Paper Size =1
;Specify this for Variable Paper Size
Paper Width =
Paper Length =
X DPI =300
Y DPI =300
Orientation =1
File Format =3
BitsPerPixel =1
Flags =188448
Brightness =100
;Specify this for Variable Paper Size In Pixels
PaperWidthInPixels =
PaperHeightInPixels =
FAXheader = 0
LossRatio = 54
153
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
Dithering = 0
FileNameGenerationFlags = 0
FileNamePrefix=AAA
FileExtension =TIF
INIFileName=
FixedFileName=
ApplicationPath=C:\windows\notepad.exe
LaunchFlags=10
InterfaceName=MonoMessageInterface
ResourceDLLName =
TIFFDLLName =
JPEGDLLName =
OutputDirectory =
Description of the values
Paper Size=<number>
Specifies the paper format used by the printer.
Paper Type
LETTER
LETTERSMALL
TABLOID
LEDGER
LEGAL
STATEMENT
EXECUTIVE
A3
A4
A4SMALL
A5
B4
B5
FOLIO
QUARTO
10X14
11X17
NOTE
ENV_9
ENV_10
ENV_11
ENV_12
ENV_14
CSHEET
DSHEET
ESHEET
ENV_DL
<number> Description
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/*
/*
/*
/*
/*
/*
/*
/*
/*
/*
/*
/*
/*
/*
/*
/*
/*
/*
/*
/*
/*
/*
/*
/*
/*
/*
/*
Letter 8 1/2 x 11 in
Letter Small 8 1/2 x 11 in
Tabloid 11 x 17 in
Ledger 17 x 11 in
Legal 8 1/2 x 14 in
Statement 5 1/2 x 8 1/2 in
Executive 7 1/4 x 10 1/2 in
A3 297 x 420 mm
A4 210 x 297 mm
A4 Small 210 x 297 mm
A5 148 x 210 mm
B4 (JIS) 250 x 354
B5 (JIS) 182 x 257 mm
Folio 8 1/2 x 13 in
Quarto 215 x 275 mm
10x14 in
11x17 in
Note 8 1/2 x 11 in
Envelope #9 3 7/8 x 8 7/8
Envelope #10 4 1/8 x 9 1/2
Envelope #11 4 1/2 x 10 3/8
Envelope #12 4 \276 x 11
Envelope #14 5 x 11 1/2
C size sheet
D size sheet
E size sheet
Envelope DL 110 x 220mm
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
154
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
ENV_C5
28
ENV_C3
29
ENV_C4
30
C6
31
ENV_C65
32
ENV_B4
33
ENV_B5
34
ENV_B6
35
ENV_ITALY
36
ENV_MONARCH
37
ENV_PERSONAL
38
FANFOLD_US
39
FANFOLD_STD_GERMAN 40
FANFOLD_LGL_GERMAN 41
ISO_B4
42
JAPANESE_POSTCARD
43
9X11
44
10X11
45
15X11
46
ENV_INVITE
47
RESERVED_48
48
RESERVED_49
49
LETTER_EXTRA
50
LEGAL_EXTRA
51
TABLOID_EXTRA
52
A4_EXTRA
53
LETTER_TRANSVERSE
54
A4_TRANSVERSE
55
LETTER_EXTRA_TRANSVERSE
A_PLUS
57
B_PLUS
58
LETTER_PLUS
59
A4_PLUS
60
A5_TRANSVERSE
61
B5_TRANSVERSE
62
A3_EXTRA
63
A5_EXTRA
64
FAX
VARIABLE
VARIABLE_PIXEL
257
258
259
A0
A1
ASHEET
BSHEET
FSHEET
GSHEET
HSHEET
JSHEET
KSHEET
AASHEET
BASHEET
CASHEET
260
261
262
263
264
265
266
267
268
269
270
271
/*
/*
/*
/*
/*
/*
/*
/*
/*
/*
/*
/*
/*
/*
/*
/*
/*
/*
/*
/*
/*
/*
/*
/*
/*
/*
/*
/*
56
/*
/*
/*
/*
/*
/*
/*
/*
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
12 in */
*/
*/
*/
*/
*/
*/
*/
*/
155
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
DASHEET
EASHEET
272
273
NOTE: If you want to specify Variable Paper size, Variable Paper In Pixels the paper width and
paper height must be set.
Paper Width=<number>
The width of the paper in tents of milimeter. Must be specified if Variable Paper size selected.
Value can be between 1 and 65535.
Paper Length=<number>
The length of the paper in tents of milimeter . Must be specified if Variable Paper size selected.
Value can be between 1 and 65535.
X DPI =<number>
The horizontal DPI of the image. Can be a value between 1 and 1500.
Y DPI =<number>
The vertical DPI of the image. Can be a value between 1 and 1500.
File Format=<number>
The output file format for the printer.
The value can be one of the following:
File format
<number>
BMP
PCX
DCX
TIFF uncompressed
TIFF Group 3 1 D
TIFF Group 3 1 D NOEOL
TIFF Group 3 2 D
TIFF Group 4
TIFF Packed
TIFF LZW
TIFF Jpeg
CALS
RAW CCITT TIFF Group 3 1 D
RAW CCITT TIFF Group 3 1 D NOEOL
TIFF CCITT Group 3 2 D
TIFF CCITT Group 4
JPEG
JPEG l*a*b
EMF
IBM MMR IOCA
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
156
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
Orientation =<number>
The orientation of the paper. Set <number> to 1 for portrait or 2 for landscape.
BitsPerPixel =<number>
The bits per pixel in the image. Can be 1, 8 or 24
Flags=<number>
To set the enable or disable features of the printer at install time simply add or remove the value
of the required flag. The values of the flags are defined in the devmode.h file located in the
Resource Toolkit. The value of the flag can be one or a combination of the following values:
Flag Name
Value
BLF_INTERNETTIFF
0x00000004
BLF_PAGENUMBERING
0x00000008
BLF_REVERSEFILLORDER 0x00000010
BLF_MULTIIMAGE
0x00000020
BLF_WRITETEXT
0x00000040
BLF_MAILMERGE
0x00000100
BLF_ADVANCEDTEXT
0x00000200
BLF_DISABLEIMAGE
0x00000400
BLF_DISABLEGROUPFILE 0x00000800
BLF_SENDMESSAGE
0x00002000
BLF_ENABLETIFFDLL
0x00004000
BLF_ENABLEJPEGDLL
0x00008000
BLF_FAXOUTPUT
0x00010000
BLF_GLYPHSUPPORT
0x00020000
BLF_ROTATEPAPER
0x00040000
BLF_DELETEGROUPFILE
0x00080000
BLF_KEEPFILES
0x00100000
BLF_ADVANCEDPAPERSIZE 0x00200000
BLF_CUSTOMEXT
0x00400000
BLF_LOWFAXRES
0x00800000
Sets
157
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
If you don't need the flags specified in the INI file, simply comment the
line with the ';' like this:
;Flags=49192
Brightness =<number>
The brightness value for the image. Can be a value between 1 and 199. Not used by the EMF
driver.
PaperWidthInPixels =<number>
Specify the paper width in pixels when Variable Paper Size In Pixels is set for the paper size. Can
be a value between 1 and 65535.
PaperHeightInPixels =<number>
Specify the paper height in pixels when Variable Paper Size In Pixels is set for the paper size. Can
be a value between 1 and 65535.
FAXheader=<number>
The size in pixels for the fax header. Can be a value between 0 and 65535.
LossRatio=<number>
The loss ration setting for the Jpeg images. Can be a value between 0 and 100. Used only by the
color driver.
Dithering=<number>
Set the dithering method. The value can be :
Description
NONE (disable photo quality)
Floyd-Steinberg
Jarvis-Judice-Ninke
Smooth
Sharp
Stucki
<number>
0
1
2
3
4
5
FileNameGenerationFlags =<number>
Set the file name generation method. The value can be:
Description
<number>
158
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
FileNamePrefix=AAA
Sets the prefix for the generated file. Can be maximum 3 characters
FileExtension =TIF
Sets the extension for the generated file. Can be maximum 3 characters.
INIFileName =<string>
This will specify the name of the INI file if the File Generation Method is Prefix and extension
from the INI file or Exact Filename from INI
If the File Generation Method is Prefix and extension from the Registry or Exact Filename
from the registry this will represent the registry key.
FixedFileName =<string>
This is the name of the file to be generated by the printer driver if the File Generation Method is
Exact filename
ApplicationPath= <string>
Full path and filename for the application to be launched by the printer.
LaunchFlags=<number>
Set the flags for the application launching. Can be one or a combination of the following values.
Description
<number>
0x00000001
0x00000002
0x00000004
0x00000008
0x00000010
0x00000020
159
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
The output directory for the printer. The image files will be generated here.
160
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
I.e. to specify the TEMP environment variable as output directory enter in this
field: <<TEMP>>
Note: If the specified environment variable is not found the printer driver will
use by default the temp directory of the actual user to generate the image files.
Set different output directory for each user at install time:
Specify in the INI file (i.e. BiCIniNT.ini for the color NT driver) at the OutputDirectory field
the environment variable which contains the output directory for each user. Use the << and
>> marks before and after the name of the environment variable.
I.e. to set the value of the TEMP environment variable as output directory for each user at install
time, enter the following line in the INI file:
OutputDirectory=<<TEMP>>
The system administrator can add to the autoexec.bat the a SET command which uses the
%USER% environment variable so this path will be unique for each user. I.e.:
SET TEMP=C:\Temp\%USER%
161
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
You can overwrite this Messaging Interface Name for the current user only by setting the
PAR_DEVMODE_INTERFACENAME from the Install Shield code.
NOTE: If the message capturing application was started by the printer driver not the user, the
application runs on system account not on user account and the messaging interface name for the
system account will be different then the messaging interface name set for the user.
To avoid using different Messaging Interface Names by the application and the printer driver
there are two possibilities:
1. Do not set the interface name at install time. Leave the default setting set by the printer driver.
From the Install Shield script comment or delete the following lines from the
SetCommonSettings() function:
// Messaging interface name
tmpLong = PAR_DEVMODE_INTERFACENAME;
ParamValue = @PRINTER_NAME; // Can be any string like "MyMessagingInterface"
nResult = CallDLLFx( G_DllFileName, DllProc, tmpLong, ParamValue);
2. If you need to change the name of the default messaging interface for some reason, specify the
new name for the messaging interface in the INI file. I.e.:
InterfaceName=ColorMessageInterface
The Capture OCX can be found in the OCX directory in your RTK installation folder.
To redistribute the OCX, you have to register the OCX with regsvr32.exe or with your
installation package.
The OCX does not have any Black Ice DLL or OCX file dependency.
The BiPrnDrv.ocx file loads the following system DLLs:
-MFC42.DLL
-MSVCRT.DLL
-ADVAPI32.DLL
-OLEAUT32.DLL
-KERNEL32.DLL
-GDI32.DLL
-USER32.DLL
-WINSPOOL.DRV
-OLE32.DLL
If any of the above DLL is missing, the BiPrnDrv.ocx will not register correctly.
The Message Capture OCX control does not require a license file.
The OCX control exports the following Properties and Events:
PrinterName Property
This property contains the name of the printer the application wants to capture messages from.
StartDoc event
The StartDoc event is fired when the selected printer starts to print a document. The parameter of this
event is the name (with the full path) of the generated group file.
StartPage event
The StartPage event is fired when the selected printer starts to print a new page. The parameter of this
event is the actual page number.
EndPage event
The EndPage event is fired when the selected printer finishes printing a page. The parameter of this
event is the name (with the full path) of the generated image file.
EndDoc event
The EndDoc event is fired when the selected printer finishes printing a document. The parameter of this
event is the name (with the full path) of the generated group file.
163
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
6 The BlackIceDEVMODE.DLL
The BlackceDEVMODE.DLLis a tool to retrieve, modify and set the values of the printer
DEVMODE. Setting the values of the printer DEVMODE changes the settings of the printer.
The BlackIceDEVMODE>DLL can be found in the Resource Toolkit
To correctly use the Black Ice Printer DEVMODE structure, the project must contain the
following preprocessor definitions:
_UNICODE, UNICODE, _WIN32_WINNT=0x0400
To set the preprocessor definitions in your Visual C++ project :
open Project -> Settings menu (the Project Settings dialog window will appear)
select the project setting configuration that you want to modify from the Setting For combo
box. (for example: Win32 Release).
Click the C/C++ tab control, choose General from the Category combo box. Add the
following Preprocessor definitions _UNICODE, UNICODE, _WIN32_WINNT=0x0400.
Next, click the Link tab control, select the Output item from the Category combo box, and
write the wWinMainCRTStartup string into the Entry-point symbol edit box.
When you are finished, click OK to close the Project Settings dialog window.
164
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
{
HMODULE hDLL;
hDLL = LoadLibrary( DLL_PATH);
if (hDLL)
{
GetOrientation = (_GetOrientation)GetProcAddress(hDLL,szGetOrientation);
if (!GetOrientation)
{
AfxMessageBox(TEXT("Error loading function"),MB_OK,0);
return FALSE;
}
}
/* declare a pointer to the BlackIceDEVMODE structure. The LoadBlackIceDEVMODE()
function will allocate the required amount of memory for the pointer. */
BlackIceDEVMODE* pDevMode;
/* Before using other functions, load the DevMode from the printer with the
LoadBlackIceDEVMODE() function. */
pDevMode = LoadBlackIceDEVMODE(TEXT(Black Ice Color));
if (!pDevMode) {
wsprintf(szMessage, TEXT(
"Error loading the devmode. Error no.: %d ),
BlackIce_GetLastError());
AfxMessageBox(szMessage,MB_OK,0);
return(0);
}
if (!GetOrientation)
{
AfxMessageBox(TEXT("Function not loaded from the DLL"),MB_OK,0);
}
else
{
if( GetOrientation(pDevMode) == 1)
{
// Portrait
}
else
{
if( GetOrientation(pDevMode) == 2)
{
// Landscape
)
else
{
// wrong value;
}
}
}
165
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
/* At the end you should release the DEVMODE buffer allocated by the
LoadBlackIceDEVMODE() function. You can use the ReleaseBlackIceDEVMODE function */
ReleaseBlackIceDEVMODE(pDevMode);
6.3.1
The BlackIceDEVMODE.DLL contains functions for loading and saving the DEVMODE.
6.3.1.1
BlackIce_GetLastError
Returns the last error code that has occurred in the system. This function helps to debug
programs.
DWORD BlackIce_GetLastError();
LoadBlackIceDEVMODE
This function returns a pointer to a BlackIceDEVMODE structure. The settings of the specified
printer can be accessed through the BlackIceDEVMODE structure. The function allocates the
required amount of memory for the structure. The allocated memory must be freed by calling the
ReleaseBlackIceDEVMODE() function.
BlackIceDEVMODE*
LoadBlackIceDEVMODE(LPCTSTR printername);
ReleaseBlackIceDEVMODE
ReleaseBlackIceDEVMODE(BlackIceDEVMODE* pDevMode);
Input value
166
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
6.3.1.4
SaveBlackIceDEVMODE
Use this function to save the new settings to the printer. The settings are saved to the current user
if possible (Win2000), if not the settings are saved to all users (default).
BOOL
SaveDefaultBlackIceDEVMODE
6.3.2
The description of the functions from the BlackIceDEVMODE.DLL are organized as the controls
of the Printer Driver User Interface.
The Black Ice Printer Driver User Interface driver has 4 tab controls.
1.
2.
3.
4.
Device Settings
File Formats
Filename Generation
Start Application
167
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
All the values from the user interface can be set programmatically using functions from the
BlackIceDEVMODE.DLL. The following chapter describes all of the functions.
6.3.3
6.3.3.1
Returns the value of the dmPaperSize member of the DevMode. Represents the value of the
'Paper Size' combo box.
int
GetPaperSize(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure
Return value - paper size (integer number)
168
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
6.3.3.2
SetPaperSize
Sets the dmPaperSize member of the DevMode. Represents the value of the 'Paper Size' combo
box.
BOOL
Returns the value of the PaperWidthInPixels member of the BlackIceDEVMODE. Represents the
value of the 'Paper Width' edit box when PIXEL is selected for units.
DWORD GetPageWidthInPixels(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure
Return value - paper width in pixels (DWORD number)
6.3.3.4
SetPaperWidthInPixel
Input value
- pointer to the BlackIceDEVMODE structure
Return value - paper height in pixels (DWORD number)
6.3.3.6
SetPaperHeightInPixel
Sets the PaperHeightInPixels member of the BlackIceDEVMODE. Sets the value of the 'Paper
Height' edit box when PIXEL is selected for the measurement unit.
BOOL
169
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
6.3.3.7
GetFaxHeader
Returns the value of the FAXheader member of BlackIceDEVMODE. Represents the value of the
'Fax header' edit box.
DWORD GetFaxHeader(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure
Return value - fax header in pixels (DWORD number)
6.3.3.8
SetFaxHeader
Sets the FAXheader member of the BlackIceDEVMODE. Sets the value of the 'Fax header' edit
box.
BOOL
Returns the value of the BLF_FAXOUTPUT flag. Represents the value of the Create Faxable
Image checkbox.
BOOL
IsFaxOutputEnabled(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure
Return value - TRUE if Fax Output is used, otherwise FALSE
6.3.3.10
EnableFaxOutput
Sets the BLF_FAXOUTPUT flag. Sets the value of the Create Faxable Image checkbox.
BOOL
EnableFaxOutput(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure.
Return value - TRUE if the flag was successfully set, otherwise FALSE.
6.3.3.11
DisableFaxOutput
Sets the BLF_FAXOUTPUT flag 0 (false). Sets the value of the Create Faxable Image
checkbox UNCHECKED.
BOOL
DisableFaxOutput(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure.
Return value - TRUE if the flag was successfully set to 0 (false), otherwise FALSE.
170
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
6.3.3.12
IsAdvancedPaperSizeEnabled
Returns the value of the BLF_ADVANCEDPAPERSIZE flag. Represents the value of the
Advanced Paper size checkbox.
BOOL
IsAdvancedPaperSizeEnabled(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure
Return value - TRUE if Advanced Paper size is used, otherwise FALSE
6.3.3.13
EnableAdvancedPaperSize
Sets the BLF_ADVANCEDPAPERSIZE flag. Sets the value of the Advanced Paper size
checkbox.
BOOL
EnableAdvancedPaperSize(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure.
Return value - TRUE if the flag was successfully set, otherwise FALSE.
6.3.3.14
DisableAdvancedPaperSize
Sets the BLF_ADVANCEDPAPERSIZE flag to 0 (false). Sets the value of the Advanced Paper
size checkbox UNCHECKED.
BOOL
DisableAdvancedPaperSize(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure.
Return value - TRUE if the flag was successfully set to 0 (false), otherwise FALSE.
6.3.3.15
GetOrientation
Returns the value of the dmOrientation member of the DevMode. Represents the value of the
'Orientation' radio button.
int
GetOrientation(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure
Return value - Orientation: if the value is 1 the orientation is Portrait, if the value is 2: the
orientation is Landscape
6.3.3.16
SetOrientation
Sets the dmOrientation member of the DevMode. Sets the value of the 'Orientation' radio button.
BOOL
171
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
6.3.3.17
IsRotatePaperEnabled
Returns the value of the BLF_ROTATEPAPER flag. Represents the value of the Rotate
Landscape image to Portrait checkbox.
BOOL
IsRotatePaperEnabled(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure
Return value - TRUE if the Rotate Landscape image to Portrait is used, otherwise FALSE
6.3.3.18
EnableRotatePaper
Sets the BLF_ROTATEPAPER flag. Sets the value of the Rotate Landscape image to Portrait
checkbox.
BOOL
EnableRotatePaper(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure.
Return value - TRUE if the flag was successfully set, otherwise FALSE.
6.3.3.19
DisableRotatePaper
Sets the BLF_ROTATEPAPER flag to 0 (false). Sets the value of the Rotate Landscape image
to Portrait checkbox UNCHECKED.
BOOL
DisableRotatePaper(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure.
Return value - TRUE if the flag was successfully set to 0 (false), otherwise FALSE.
6.3.3.20
GetXDPI
Returns the value of the dmPrintQuality member of the DevMode. Represents the value of the
'Horizontal Resolution' edit box.
int
GetXDPI(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure
Return value - Horizontal Resolution (integer number)
6.3.3.21
SetXDPI
Sets the dmPrintQuality member of the DevMode. Sets the value of the 'Horizontal Resolution'
edit box.
BOOL
172
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
6.3.3.22
GetYDPI
Returns the value of the dmYResolutionmember of the DevMode. Represents the value of the
'Vertical Resolution' edit box.
int
GetYDPI(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure
Return value - Vertical Resolution (integer number)
6.3.3.23
SetYDPI
Sets the dmYResolution member of the DevMode. Sets the value of the 'Vertical Resolution' edit
box.
BOOL
Returns the value of the BLF_LOWFAXRES flag. If true, the low fax resolution (204x98) is
selected, if false the Fine Fax resolution (204x196) is selected when the Create Faxable Image
option is selected.
BOOL
IsLowFaxOutputEnabled(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure
Return value - TRUE if Low Fax Output is used, otherwise FALSE
6.3.3.25
EnableLowFaxOutput
Sets the BLF_ LOWFAXRES flag. Sets the value of the fax resolution when the Create Faxable
Image checkbox is selected.
BOOL
EnableLowFaxOutput(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure.
Return value - TRUE if the flag was successfully set, otherwise FALSE.
6.3.3.26
DisableLowFaxOutput
Sets the BLF_ LOWFAXRES flag 0 (false). Sets the value of the fax resolution when the Create
Faxable Image checkbox is selected.
BOOL
DisableLowFaxOutput(BlackIceDEVMODE* pDevMode);
Input value
173
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
Return value - TRUE if the flag was successfully set to 0 (false), otherwise FALSE.
174
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
6.3.4
6.3.4.1
GetFileFormat
Returns the value of the Format member of the BlackIceDEVMODE. Represents the value of the
'File Format' combo box.
DWORD GetFileFormat(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure
Return value - File Format (DWORD number)
175
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
6.3.4.2
SetFileFormat
Sets the Format member of the BlackIceDEVMODE. Sets the value of the 'File Format' combo
box.
BOOL
GetLossRatio
Returns the value of the LossRatio member of the BlackIceDEVMODE. Represents the value of
the 'JPEG loss ratio' slider.
DWORD GetLossRatio(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure
Return value - JPEG loss ratio (DWORD number)
6.3.4.4
SetLossRatio
Sets the LossRatio member of the BlackIceDEVMODE. Sets the value of the 'JPEG loss ratio'
slider.
BOOL
Returns the value of the ColorMode member of the BlackIceDEVMODE. Represents the value of
the 'Color Depth' radio button.
DWORD GetColorDepth(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure
Return value - Color Depth (DWORD number)
6.3.4.6
SetColorDepth
Sets the ColorMode member of the BlackIceDEVMODE. Sets the value of the 'Color Depth'
radio button.
BOOL
176
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
Return value
6.3.4.7
Returns the value of the BLF_MULTIIMAGE flag. Represents the value of the Create
Multipage Image checkbox.
BOOL
IsMultipageImageEnabled(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure
Return value - TRUE if Create Multi-page Image is used, otherwise FALSE
6.3.4.8
EnableMultipageImage
Sets the BLF_MULTIIMAGE flag. Sets the value of the Create Multi-page Image checkbox.
BOOL
EnableMultipageImage(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure.
Return value - TRUE if the flag was successfully set, otherwise FALSE.
6.3.4.9
DisableMultipageImage
Clears the BLF_MULTIIMAGE flag. Sets the value of the Create Multipage Image checkbox
UNCHECKED.
BOOL
DisableMultipageImage(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure.
Return value - TRUE if the flag was successfully set to 0 (false), otherwise FALSE.
6.3.4.10
IsAppendImageEnabled
Returns the value of the BLF_MULTIIMAGE flag. Represents the value of the Create Multipage Image checkbox.
BOOL
IsAppendImageEnabled(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure
Return value - TRUE if the Create Multi-page Image is used, otherwise FALSE
6.3.4.11
EnableAppendImage
Sets the BLF_MULTIIMAGE flag. Sets the value of the Create Multi-page Image checkbox.
BOOL
EnableAppendImage(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure.
Return value - TRUE if the flag was successfully set, otherwise FALSE.
177
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
6.3.4.12
DisableAppendImage
Sets the BLF_MULTIIMAGE flag to 0 (false). Sets the value of the Create Multi-page Image
checkbox UNCHECKED.
BOOL
DisableAppendImage(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure.
Return value - TRUE if the flag was successfully set to 0 (false), otherwise FALSE.
6.3.4.13
IsDisableImageEnabled
Returns the value of the BLF_DISABLEIMAGE flag. Represents the value of the 'Disable Image'
checkbox.
BOOL
IsDisableImageEnabled(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure
Return value - TRUE if Disable Image is used, otherwise FALSE
6.3.4.14
EnableDisableImage
Sets the BLF_DISABLEIMAGE flag. Sets the value of the 'Disable Image' checkbox.
BOOL
EnableDisableImage(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure.
Return value - TRUE if the flag was successfully set, otherwise FALSE.
6.3.4.15
DisableDisableImage
Sets the BLF_DISABLEIMAGE flag to 0 (false). Sets the value of the 'Disable Image' checkbox
UNCHECKED.
BOOL
DisableDisableImage(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure.
Return value - TRUE if the flag was successfully set to 0 (false), otherwise FALSE.
6.3.4.16
IsEasternCharSupportEnabled
Returns the value of the BLF_GLYPHSUPPORT flag. Represents the value of the 'Eastern
Character Support' checkbox.
BOOL
IsEasternCharSupportEnabled(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure
Return value - TRUE if Eastern Character Support is used, otherwise FALSE
178
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
6.3.4.17
EnableEasternCharSupport
Sets the BLF_GLYPHSUPPORT flag. Sets the value of the 'Eastern Character Support'
checkbox.
BOOL
EnableEasternCharSupport(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure.
Return value - TRUE if the flag was successfully set, otherwise FALSE.
6.3.4.18
DisableEasternCharSupport
Sets the BLF_GLYPHSUPPORT flag to 0 (false). Sets the value of the 'Eastern Character
Support' checkbox UNCHECKED.
BOOL
DisableEasternCharSupport(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure.
Return value - TRUE if the flag was successfully set to 0 (false), otherwise FALSE.
6.3.4.19
IsWriteTextEnabled
Returns the value of the BLF_WRITETEXT flag. Represents the value of the 'Write Text File'
checkbox.
BOOL
IsWriteTextEnabled(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure
Return value - TRUE if Write Text File is used, otherwise FALSE
6.3.4.20
EnableWriteText
Sets the BLF_WRITETEXT flag. Sets the value of the 'Write Text File' checkbox.
BOOL
EnableWriteText(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure.
Return value - TRUE if the flag was successfully set, otherwise FALSE.
6.3.4.21
DisableWriteText
Sets the BLF_WRITETEXT flag to 0 (false). Sets the value of the 'Write Text File' checkbox
UNCHECKED.
BOOL
DisableWriteText(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure.
Return value - TRUE if the flag was successfully set to 0 (false), otherwise FALSE.
179
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
6.3.4.22
IsMailMergeEnabled
Returns the value of the BLF_MAILMERGE flag. Represents the value of the Mail Merge
checkbox.
BOOL
IsMailMergeEnabled(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure
Return value - TRUE if WriteText File is used, otherwise FALSE
6.3.4.23
EnableMailMerge
Sets the BLF_MAILMERGE flag. Sets the value of the Mail Merge checkbox.
BOOL
EnableMailMerge(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure.
Return value - TRUE if the flag was successfully set, otherwise FALSE.
6.3.4.24
DisableMailMerge
Sets the BLF_MAILMERGE flag to 0 (false). Sets the value of the Mail Merge checkbox
UNCHECKED.
BOOL
DisableMailMerge(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure.
Return value - TRUE if the flag was successfully set to 0 (false), otherwise FALSE.
6.3.4.25
IsAdvancedTextEnabled
Returns the value of the BLF_ADVANCEDTEXT flag. Represents the value of the 'Save
position and style' checkbox.
BOOL
IsAdvancedTextEnabled(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure
Return value - TRUE if the Save position and style is used, otherwise FALSE
6.3.4.26
EnableAdvancedText
Sets the BLF_ADVANCEDTEXT flag. Sets the value of the 'Save position and style' checkbox.
BOOL
EnableAdvancedText(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure.
Return value - TRUE if the flag was successfully set, otherwise FALSE.
6.3.4.27
DisableAdvancedText
Sets the BLF_ADVANCEDTEXT flag to 0 (false). Sets the value of the 'Save position and style'
checkbox UNCHECKED.
180
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
BOOL
DisableAdvancedText(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure.
Return value - TRUE if the flag was successfully set to 0 (false), otherwise FALSE.
6.3.4.28
IsInternetTiffFormatEnabled
Returns the value of the BLF_INTERNETTIFF flag. Represents the value of the Internet TIFF
format checkbox.
BOOL
IsInternetTiffFormatEnabled(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure
Return value - TRUE if the Internet TIFF format is used, otherwise FALSE
6.3.4.29
EnableInternetTiffFormat
Sets the BLF_INTERNETTIFF flag. Sets the value of the Internet TIFF format checkbox.
BOOL
EnableInternetTiffFormat(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure.
Return value - TRUE if the flag was successfully set, otherwise FALSE.
6.3.4.30
DisableInternetTiffFormat
Sets the BLF_INTERNETTIFF flag to 0 (false). Sets the value of the Internet TIFF format
checkbox UNCHECKED.
BOOL
DisableInternetTiffFormat(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure.
Return value - TRUE if the flag was successfully set to 0 (false), otherwise FALSE.
6.3.4.31
IsReverseBitOrderEnabled
Returns the value of the BLF_REVERSEFILLORDER flag. Represents the value of the Reverse
Bit Order in TIFF checkbox.
BOOL
IsReverseBitOrderEnabled(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure
Return value - TRUE if Reverse Bit Order in TIFF is used, otherwise FALSE
6.3.4.32
EnableReverseBitOrder
Sets the BLF_REVERSEFILLORDER flag. Sets the value of the Reverse Bit Order in TIFF
checkbox.
BOOL
EnableReverseBitOrder(BlackIceDEVMODE* pDevMode);
181
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
Input value
- pointer to the BlackIceDEVMODE structure.
Return value - TRUE if the flag was successfully set, otherwise FALSE.
6.3.4.33
DisableReverseBitOrder
Sets the BLF_REVERSEFILLORDER flag to 0 (false). Sets the value of the Reverse Bit Order
in TIFF checkbox UNCHECKED.
BOOL
DisableReverseBitOrder(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure.
Return value - TRUE if the flag was successfully set to 0 (false), otherwise FALSE.
6.3.4.34
IsPageNumberingEnabled
Returns the value of the BLF_PAGENUMBERING flag. Represents the value of the Add Page
Numbering Tag checkbox.
BOOL
IsPageNumberingEnabled(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure
Return value - TRUE if the Add Page Numbering Tag is used, otherwise FALSE
6.3.4.35
EnablePageNumbering
Sets the BLF_PAGENUMBERING flag. Sets the value of the Add Page Numbering Tag
checkbox.
BOOL
EnablePageNumbering(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure.
Return value - TRUE if the flag was successfully set, otherwise FALSE.
6.3.4.36
DisablePageNumbering
Sets the BLF_PAGENUMBERING flag to 0 (false). Sets the value of the Add Page Numbering
Tag checkbox UNCHECKED.
BOOL
DisablePageNumbering(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure.
Return value - TRUE if the flag was successfully set to 0 (false), otherwise FALSE.
6.3.4.37
GetDithering
Returns the value of the Dithering member of the BlackIceDEVMODE. Represents the value of
the 'Photo Quality' radio button.
DWORD GetDithering(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure
Return value - Photo Quality (DWORD number)
182
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
6.3.4.38
SetDithering
Sets the Dithering member of the BlackIceDEVMODE. Sets the value of the 'Photo Quality' radio
button.
BOOL
Returns the value of the Brightness member of the BlackIceDEVMODE. Represents the value of
the 'Intensity' slider.
DWORD GetBrightness(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure
Return value - Intensity (DWORD number)
6.3.4.40
SetBrightness
Sets the Brightness member of the BlackIceDEVMODE. Sets the value of the 'Intensity' slider.
BOOL
183
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
6.3.5
6.3.5.1
GetFileGenerationMethod
Input value
184
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
SetFileGenerationMethod
Sets the FileNameGenerationFlags member of the BlackIceDEVMODE. Sets the value of the 'File
Name Generation Method' combo box.
BOOL
Returns the value of the FileNamePrefix member of the BlackIceDEVMODE. Represents the
value of the 'File Name Prefix' edit box.
LPCTSTR
GetFileNamePrefix(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure
Return value - File Name Prefix (string)
6.3.5.4
SetFileNamePrefix
Sets the FileNamePrefix member of the BlackIceDEVMODE. Sets the value of the 'File Name
Prefix' edit box.
BOOL
Returns the value of the FileExtension member of the BlackIceDEVMODE. Represents the value
of the 'File Name Extension' edit box.
LPCTSTR
GetFileExtension(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure
Return value - File Name Extension (string)
6.3.5.6
SetFileExtension
Sets the FileExtension member of the BlackIceDEVMODE. Sets the value of the 'File Name
Extension' edit box.
BOOL
185
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
Returns the value of the BLF_CUSTOMEXT flag. Represents the value of the 'Use Custom
Extension' checkbox.
BOOL
IsCustomExtensionEnabled(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure
Return value - TRUE if the Use Custom Extension is used, otherwise FALSE
6.3.5.8
EnableCustomExtension
Sets the BLF_CUSTOMEXT flag. Sets the value of the 'Use Custom Extension' checkbox.
BOOL
EnableCustomExtension(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure.
Return value - TRUE if the flag was successfully set, otherwise FALSE.
6.3.5.9
DisableCustomExtension
Sets the BLF_CUSTOMEXT flag 0 (false). Sets the value of the 'Use Custom Extension'
checkbox UNCHECKED.
BOOL
DisableCustomExtension(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure.
Return value - TRUE if the flag was successfully set to 0 (false), otherwise FALSE.
6.3.5.10
GetINIFileName
Returns the value of the INIFileName member of the BlackIceDEVMODE. Represents the value
of the 'INI File Name'/'Registry path'/etc. edit box.
LPCTSTR
GetINIFileName(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure
Return value - INI File Name/Registry Path/etc. (string)
6.3.5.11
SetINIFileName
Sets the INIFileName member of the BlackIceDEVMODE. Sets the value of the 'INI File
Name'/'Registry path' edit box.
BOOL
186
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
6.3.5.12
GetImageFileName
Returns the value of the FileImageName member of the BlackIceDEVMODE. Represents the
value of the 'File Image Name' edit box if the Filename Generation method is Exact filename.
LPCTSTR
GetImageFileName(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure
Return value - Image Filename (string)
6.3.5.13
SetImageFileName
Sets the FileImageName member of the BlackIceDEVMODE. Sets the value of the 'File Image
Name' edit box if the Filename Generation method is Exact filename.
BOOL
Returns the value of the BLF_KEEPFILES flag. Represents the value of the 'Keep existing files'
checkbox.
BOOL
IsKeepExistingFilesEnabled(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure
Return value - TRUE if Keep existing files is used, otherwise FALSE
6.3.5.15
EnableKeepExistingFiles
Sets the BLF_KEEPFILES flag. Sets the value of the 'Keep existing files' checkbox.
BOOL
EnableKeepExistingFiles(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure.
Return value - TRUE if the flag was successfully set, otherwise FALSE.
6.3.5.16
DisableKeepExistingFiles
Sets the BLF_KEEPFILES flag 0 (false). Sets the value of the 'Keep existing files' checkbox
UNCHECKED.
BOOL
DisableKeepExistingFiles(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure.
Return value - TRUE if the flag was successfully set to 0 (false), otherwise FALSE.
187
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
6.3.5.17
GetOutputDirectory
Returns the value of the OutputDirectory member of the BlackIceDEVMODE. Represents the
value of the 'Output Directory' edit box.
LPCTSTR
GetOutputDirectory(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure
Return value - Output Directory (string)
6.3.5.18
SetOutputDirectory
Sets the OutputDirectory member of the BlackIceDEVMODE. Sets the value of the 'Output
Directory' edit box.
BOOL
Returns the value of the BLF_DISABLEGROUPFILE flag. Represents the value of the 'Disable
Group File' checkbox.
BOOL
IsGroupFileDisabled(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure
Return value - TRUE if the Disable Group File is used, otherwise FALSE
6.3.5.20
DisableGroupFile
Sets the BLF_DISABLEGROUPFILE flag. Sets the value of the 'Disable Group File' checkbox.
BOOL
DisableGroupFile(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure.
Return value - TRUE if the flag was successfully set, otherwise FALSE.
6.3.5.21
EnableGroupFile
Sets the BLF_DISABLEGROUPFILE flag 0 (false). Sets the value of the 'Disable Group File'
checkbox UNCHECKED.
BOOL
EnableGroupFile(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure.
Return value - TRUE if the flag was successfully set to 0 (false), otherwise FALSE.
188
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
6.3.5.22
IsDeleteGroupFileEnabled
Returns the value of the BLF_DELETEGROUPFILE flag. Represents the value of the 'Delete
Group File After Printing' checkbox.
BOOL
IsDeleteGroupFileEnabled(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure
Return value - TRUE if the Delete Group File After Printing is used, otherwise FALSE
6.3.5.23
EnableDeleteGroupFile
Sets the BLF_DELETEGROUPFILE flag. Sets the value of the 'Delete Group File After Printing'
checkbox.
BOOL
EnableDeleteGroupFile(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure.
Return value - TRUE if the flag was successfully set, otherwise FALSE.
6.3.5.24
DisableDeleteGroupFile
Sets the BLF_DELETEGROUPFILE flag 0 (false). Sets the value of the 'Delete Group File After
Printing' checkbox UNCHECKED.
BOOL
DisableDeleteGroupFile(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure.
Return value - TRUE if the flag was successfully set to 0 (false), otherwise FALSE.
189
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
6.3.6
6.3.6.1
IsStartApplicationEnabled
Returns the value of the BLF_LAUNCHAPP flag. Represents the value of the 'Enable Start
Application' checkbox.
BOOL
IsStartApplicationEnabled(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure
Return value - TRUE if Enable Start Application is used, otherwise FALSE
190
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
6.3.6.2
EnableStartApplication
Sets the BLF_LAUNCHAPP flag. Sets the value of the 'Enable Start Application' checkbox.
BOOL
EnableStartApplication(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure.
Return value - TRUE if the flag was successfully set, otherwise FALSE.
6.3.6.3
DisableStartApplication
Sets the BLF_LAUNCHAPP flag to 0 (false). Sets the value of the 'Enable Start Application'
checkbox UNCHECKED.
BOOL
DisableStartApplication(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure.
Return value - TRUE if the flag was successfully set to 0 (false), otherwise FALSE.
6.3.6.4
GetApplicationPath
Returns the value of the ApplicationPath member of the BlackIceDEVMODE. Represents the
value of the 'Output Directory' edit box.
LPCTSTR
GetApplicationPath(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure
Return value - Application Path (string)
6.3.6.5
SetApplicationPath
Sets the ApplicationPath member of the BlackIceDEVMODE. Sets the value of the 'Application
Path' edit box.
BOOL
IsStartBeforePrint
Returns the value of the BLF_STARTBEFOREPRINT flag. Represents the value of the 'Start
Before Printing' radio button.
BOOL
IsStartBeforePrint(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure
Return value - TRUE if Start Before Printing is used, otherwise FALSE (it means that the
printer driver will start the application after the printing was finished)
191
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
6.3.6.7
EnableStartBeforePrint
Sets the BLF_STARTBEFOREPRINT flag. Sets the value of the 'Start Before Printing' radio
button.
BOOL
EnableStartBeforePrint(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure.
Return value - TRUE if the flag was successfully set, otherwise FALSE.
6.3.6.8
DisableStartBeforePrint
Sets the BLF_STARTBEFOREPRINT flag to 0 (false). Sets the value of the 'Start After Printing'
radio button CHECKED.
BOOL
DisableStartBeforePrint(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure.
Return value - TRUE if the flag was successfully set to 0 (false), otherwise FALSE.
6.3.6.9
IsPassParametersEnabled
Returns the value of the BLF_PASSPARAMETERS flag. Represents the value of the 'Pass
Parameters' checkbox.
BOOL
IsPassParametersEnabled(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure
Return value - TRUE if Pass Parameters is used, otherwise FALSE
6.3.6.10
EnablePassParameters
Sets the BLF_PASSPARAMETERS flag. Sets the value of the 'Pass Parameters' checkbox.
BOOL
EnablePassParameters(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure.
Return value - TRUE if the flag was successfully set, otherwise FALSE.
6.3.6.11
DisablePassParameters
Sets the BLF_PASSPARAMETERS flag to 0 (false). Sets the value of the 'Pass Parameters'
checkbox UNCHECKED.
BOOL
DisablePassParameters(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure.
Return value - TRUE if the flag was successfully set to 0 (false), otherwise FALSE.
192
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
6.3.6.12
IsStartNormal
Returns the value of the BLF_STARTNORMAL flag. Represents the value of the 'Normal' radio
button.
BOOL
IsStartNormal(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure
Return value - TRUE if the Start Application In Normal Window is used, otherwise FALSE
6.3.6.13
EnableStartNormal
Sets the BLF_STARTNORMAL flag. Sets the value of the 'Normal' radio button. The driver will
start the application In a Normal window
BOOL
EnableStartNormal(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure.
Return value - TRUE if the flag was successfully set, otherwise FALSE.
6.3.6.14
DisableStartNormal
Sets the BLF_STARTNORMAL flag to 0 (false). Sets the value of the 'Normal' radio button
UNCHECKED.
BOOL
DisableStartNormal(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure.
Return value - TRUE if the flag was successfully set to 0 (false), otherwise FALSE.
6.3.6.15
IsStartMinimized
Returns the value of the BLF_STARTMINIMIZED flag. Represents the value of the 'Minimized'
radio button.
BOOL
IsStartMinimized(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure
Return value - TRUE if the Start Application In Minimized Window is used, otherwise FALSE
6.3.6.16
EnableStartMinimized
Sets the BLF_STARTMINIMIZED flag. Sets the value of the 'Minimized' radio button. The
driver will start the application In a Minimized window.
BOOL
EnableStartMinimized(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure.
Return value - TRUE if the flag was successfully set, otherwise FALSE.
193
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
6.3.6.17
DisableStartMinimized
Sets the BLF_STARTMINIMIZED flag to 0 (false). Sets the value of the 'Minimized' radio
button UNCHECKED.
BOOL
DisableStartMinimized(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure.
Return value - TRUE if the flag was successfully set to 0 (false), otherwise FALSE.
6.3.6.18
IsStartHidden
Returns the value of the BLF_STARTHIDDEN flag. Represents the value of the 'Hidden' radio
button.
BOOL
IsStartHidden(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure
Return value - TRUE if Start Application Hidden is used, otherwise FALSE
6.3.6.19
EnableStartHidden
Sets the BLF_STARTHIDDEN flag. Sets the value of the 'Hidden' radio button. The driver will
start the application Hidden
BOOL
EnableStartHidden(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure.
Return value - TRUE if the flag was successfully set, otherwise FALSE.
6.3.6.20
DisableStartHidden
Sets the BLF_STARTHIDDEN flag to 0 (false). Sets the value of the 'Hidden' radio button
UNCHECKED.
BOOL
DisableStartHidden(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure.
Return value - TRUE if the flag was successfully set to 0 (false), otherwise FALSE.
6.3.6.21
IsMessagingInterfaceEnabled
Returns the value of the BLF_SENDMESSAGE flag. Represents the value of the 'Disable the
Messaging Interface' checkbox.
BOOL
IsMessagingInterfaceEnabled(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure
Return value - TRUE if the Messaging Interface is used (the check box is unchecked), otherwise
FALSE (Messaging Interface is not used and the check box is checked)
194
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
6.3.6.22
EnableMessagingInterface
Sets the BLF_SENDMESSAGE flag. Sets the value of the 'Disable the Messaging Interface'
checkbox UNCHECKED. The driver will use the Messaging Interface and will broadcast
messages at every startdoc, startpage, endpage and enddoc.
BOOL
EnableMessagingInterface(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure.
Return value - TRUE if the flag was successfully set, otherwise FALSE.
6.3.6.23
DisableMessagingInterface
Sets the BLF_SENDMESSAGE flag to 0 (false). Sets the value of the 'Disable the Messaging
Interface' checkbox. The driver doesnt use the Messaging Interface.
BOOL
DisableMessagingInterface(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure.
Return value - TRUE if the flag was successfully set to 0 (false), otherwise FALSE.
6.3.7
Miscellaneous functions
6.3.7.1
GetInterfaceName
Returns the value of the InterfaceName member of the BlackIceDEVMODE. The InterfaceName
member stores the name of the messaging interface.
LPCTSTR
InterfaceName(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure
Return value - Interface Name (string)
6.3.7.2
SetInterfaceName
Sets the InterfaceName member of the BlackIceDEVMODE. The InterfaceName member stores
the name of the messaging interface.
BOOL
Returns the value of the dmPaperLength member of the DevMode. (DM.dmPaperLength member
of BlackIceDEVMODE ) This value represents the 'Actual paper length'.
195
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
int
GetPaperLength(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure
Return value - Actual paper length (integer number)
6.3.7.4
SetPaperLength
Returns the value of the BLF_ENABLETIFFDLL flag. If set the using of the TIFF32.DLL is
enabled. Can be set only programmatically.
BOOL
IsTiffDllEnabled(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure
Return value - TRUE if the TIFF32.DLL is enabled, otherwise FALSE
6.3.7.6
EnableTIFFDll
Sets the BLF_ENABLETIFFDLL flag. If this flag is set, the printer driver will load and use the
TIFF32.DLL. This flag can only be set programmatically.
BOOL
EnableTiffDll(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure.
Return value - TRUE if the flag was successfully set, otherwise FALSE.
6.3.7.7
DisableTIFFDll
Sets the BLF_ENABLETIFFDLL flag to 0 (false). If this flag is set, the printer driver will load
and use the TIFF32.DLL. This flag can only be set programmatically.
BOOL
DisableTiffDll(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure.
Return value - TRUE if the flag was successfully set to 0 (false), otherwise FALSE.
6.3.7.8
IsJPEGDllEnabled
Returns the value of the BLF_ENABLEJPEGDLL flag. If this flag is set, the printer driver will
load and use the JPEG32.DLL. This flag can only be set programmatically.
BOOL
IsJpegDllEnabled(BlackIceDEVMODE* pDevMode);
196
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
Input value
- pointer to the BlackIceDEVMODE structure
Return value - TRUE if the JPEG32.DLL is enabled, otherwise FALSE
6.3.7.9
EnableJPEGDll
Sets the BLF_ENABLEJPEGDLL flag. If this flag is set, the printer driver will load and use the
JPEG32.DLL. This flag can only be set programmatically.
BOOL
EnableJpegDll(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure.
Return value - TRUE if the flag was successfully set, otherwise FALSE.
6.3.7.10
DisableJPEGDll
Sets the BLF_ENABLEJPEGDLL flag 0 (false). If this flag is set, the printer driver will load and
use the JPEG32.DLL. This flag can only be set programmatically.
BOOL
DisableJpegDll(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure.
Return value - TRUE if the flag was successfully set to 0 (false), otherwise FALSE.
6.3.7.11
GetTIFFDLLName
GetTIFFDLLName(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure
Return value - TIFFDLLName (string)
6.3.7.12
SetTIFFDLLName
- TIFFDLLName (string)
- pointer to the BlackIceDEVMODE structure.
- TRUE if the member was successfully set, otherwise FALSE.
197
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
6.3.7.13
GetJPEGDLLName
GetJPEGDLLName(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure
Return value - JPEGDLLName (string)
6.3.7.14
SetJPEGDLLName
- JPEGDLLName (string)
- pointer to the BlackIceDEVMODE structure.
- TRUE if the member was successfully set, otherwise FALSE.
GetResourceDLLName
GetResourceDLLName(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure
Return value - ResourceDLLName (string)
6.3.7.16
SetResourceDLLName
- ResourceDLLName (string)
- pointer to the BlackIceDEVMODE structure.
- TRUE if the member was successfully set, otherwise FALSE.
GetBitsPerPixel
DWORD
GetResourceDLLName(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure
Return value - Color depth in pixels (DWORD number)
The PrinterSettings program allows users to change the settings of the Black Ice printers. It is a
dialog based MFC application.
There are five buttons in the form:
OK:
saves the settings and exits the program.
Cancel:
exits the program without changing the printer settings
Apply:
saves the settings without exiting. You can continue modify the controls.
199
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
Open printer:
closes the currently opened printer and tries to open the printer specified in
the Printer Name edit box.
8 The BlackIceDEVMODE.OCX
The BlackceDEVMODE.OCX is distributed in the Resource Toolkit.
In this sample you can see how to read or modify the page orientation of the printer
200
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
To save the settings, call the SaveBlackIceDEVMODE function. The return value specifies
whether the changes were successfully saved or not.
bSuccess = Form1.BlackIceDEVMODE1.SaveBlackIceDEVMODE(PrinterName, pBlackIceDEVMODE)
If (bSuccess = False) Then
MsgBox ("Error saving the devmode")
Exit Sub
End If
When you are finished you have to release the memory allocated by the
LoadBlackIceDEVMODE method. You can use the ReleaseBlackIceDEVMODE method:
Call Form1.BlackIceDEVMODE1.ReleaseBlackIceDEVMODE(pBlackIceDEVMODE)
6.7.1
To set the Printer Driver settings you have to set the value of the printer DEVMODE. The
BlackIceDEVMODE.OCX contains methods to load, save and modify the printer settings.
6.7.1.1
LoadBlackIceDEVMODE
This method returns a long value that represents the BalckIceDEVMODE handle. This handle is
used by the rest of the methods to read and modify the settings of the printer.
The LoadBalckIceDEVMODE method allocates the memory space required for the DevMode
structure ( for the printer settings).
NOTE: The memory must be freed using the ReleaseBlackIceDEVMODE method.
LoadBlackIceDEVMODE(PrinterName As String) As Long
- Printer Name
- handle to the BlackIceDEVMODE
201
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
ReleaseBlackIceDEVMODE
This method frees the memory allocated for the printer settings represented by the
BlackIceDEVMODE handle.
ReleaseBlackIceDEVMODE(pBlackIceDEVMODE) As Long
SaveBlackIceDEVMODE
This method will save the new printer settings. The printer devmode is saved for the current user
if possible(Win2000), if not to every user (default on NT, XP).
SaveBlackIceDEVMODE(szPrinterName As String, pBlackIceDEVMODE As Long) As Boolean
SaveDefaultBlackIceDEVMODE
6.7.2
The methods from the BlackIceDEVMODE.OCX are organized as the controls of the Printer
Driver User Interface. The Black Ice Printer Driver User Interface driver has 4 tab controls.
1. Device Settings
2. File Formats
3. Filename Generation
4. Start Application
202
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
All of the values from the user interface can be set programmatically using the functions from the
BlackIceDEVMODE.OCX.
6.7.3
6.7.3.1
Returns the value of the dmPaperSize member of the DevMode. Represents the value of the
'Paper Size' combo box.
GetPaperSize(pBlackIceDEVMODE As Long) As Integer
Input value
203
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
Return value
6.7.3.2
Sets the dmPaperSize member of the DevMode. Sets the value of the 'Paper Size' combo box.
SetPaperSize(papersize As Integer, pBlackIceDEVMODE As Long ) As Boolean
GetPageWidthInPixels
Returns the value of the PaperWidthInPixels member of the BlackIceDEVMODE. Represents the
value of the 'Paper Width' edit box.
GetPageWidthInPixels(pBlackIceDEVMODE As Long) As Long
Input value
Return value
6.7.3.4
Sets the PaperWidthInPixels member of the BlackIceDEVMODE. Sets the value of the 'Paper
Width' edit box.
SetPaperWidthInPixel(paperwidth As Long, pBlackIceDEVMODE As Long) As Boolean
GetPageHeightInPixels
Input value
- handle to the BlackIceDEVMODE
Return value - paper height in pixels
6.7.3.6
SetPaperHeightInPixel
Sets the PaperHeightInPixels member of the BlackIceDEVMODE. Sets the value of the 'Paper
Height' edit box.
SetPaperHeightInPixel(paperheight As Long, pBlackIceDEVMODE As Long) As Boolean
204
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
GetFaxHeader
Returns the value of the FAXheader member of the BlackIceDEVMODE. Represents the value of
the 'Fax header' edit box.
GetFaxHeader(pBlackIceDEVMODE As Long) As Long
Input value
Return value
6.7.3.8
Sets the FAXheader member of the BlackIceDEVMODE. Sets the value of the 'Fax header' edit
box.
Boolean SetFaxHeader( As Long faxheader, pBlackIceDEVMODE As Long) As
IsFaxOutputEnabled
Returns the value of the BLF_FAXOUTPUT flag. Represents the value of the Create Faxable
Image checkbox.
IsFaxOutputEnabled(pBlackIceDEVMODE As Long) As Boolean
Input value
Return value
6.7.3.10
Sets the BLF_FAXOUTPUT flag. Sets the value of the Create Faxable Image checkbox.
EnableFaxOutput(pBlackIceDEVMODE As Long) As Boolean
Input value
Return value
6.7.3.11
Sets the BLF_FAXOUTPUT flag to 0 (false). Sets the value of the Create Faxable Image
checkbox UNCHECKED.
205
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
Input value
Return value
6.7.3.12
Returns the value of the BLF_ADVANCEDPAPERSIZE flag. Represents the value of the
Advanced Paper size checkbox.
IsAdvancedPaperSizeEnabled(pBlackIceDEVMODE As Long) As Boolean
Input value
- handle to the BlackIceDEVMODE
Return value - TRUE if Advanced Paper size is used, otherwise FALSE
6.7.3.13
EnableAdvancedPaperSize
Sets the BLF_ADVANCEDPAPERSIZE flag. Sets the value of the Advanced Paper size
checkbox.
EnableAdvancedPaperSize(pBlackIceDEVMODE As Long) As Boolean
Input value
- handle to the BlackIceDEVMODE.
Return value - TRUE if the flag was successfully set, otherwise FALSE.
6.7.3.14
DisableAdvancedPaperSize
Sets the BLF_ADVANCEDPAPERSIZE flag 0 (false). Sets the value of the Advanced
Papersize checkbox UNCHECKED.
DisableAdvancedPaperSize(pBlackIceDEVMODE As Long) As Boolean
Input value
- handle to the BlackIceDEVMODE.
Return value - TRUE if the flag was successfully set to 0 (false), otherwise FALSE.
6.7.3.15
GetOrientation
Returns the value of the dmOrientation member of the DevMode. Represents the value of the
'Orientation' radio button.
GetOrientation(pBlackIceDEVMODE As Long) As Integer
Input value
- handle to the BlackIceDEVMODE
Return value - Orientation: If the value is 1 the orientation is Portrait. If the value is 2 the
orientation is Landscape
6.7.3.16
SetOrientation
Sets the dmOrientation member of the DevMode. Sets the value of the 'Orientation' radio button.
SetOrientation(Orientation As Integer, pBlackIceDEVMODE As Long) As Boolean
206
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
IsRotatePaperEnabled
Returns the value of the BLF_ROTATEPAPER flag. Represents the value of the Rotate
Landscape image to Portrait checkbox.
IsRotatePaperEnabled(pBlackIceDEVMODE As Long) As Boolean
Input value
- handle to the BlackIceDEVMODE
Return value - TRUE if Rotate Landscape image to Portrait is used, otherwise FALSE
6.7.3.18
EnableRotatePaper
Sets the BLF_ROTATEPAPER flag. Sets the value of the Rotate Landscape image to Portrait
checkbox.
EnableRotatePaper(pBlackIceDEVMODE As Long) As Boolean
Input value
- handle to the BlackIceDEVMODE.
Return value - TRUE if the flag was successfully set, otherwise FALSE.
6.7.3.19
DisableRotatePaper
Sets the BLF_ROTATEPAPER flag to 0 (false). Sets the value of the Rotate Landscape image
to Portrait checkbox UNCHECKED.
DisableRotatePaper(pBlackIceDEVMODE As Long) As Boolean
Input value
- handle to the BlackIceDEVMODE.
Return value - TRUE if the flag was successfully set to 0 (false), otherwise FALSE.
6.7.3.20
GetXDPI
Returns the value of the dmPrintQuality member of the DevMode. Represents the value of the
'Horizontal Resolution' edit box.
GetXDPI(pBlackIceDEVMODE As Long) As Integer
Input value
- handle to the BlackIceDEVMODE
Return value - Horizontal Resolution (integer number)
6.7.3.21
SetXDPI
Sets the dmPrintQuality member of the DevMode. Sets the value of the 'Horizontal Resolution'
edit box.
SetXDPI(xdpi As Integer, pBlackIceDEVMODE As Long) As Boolean
207
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
GetYDPI
Returns the value of the dmYResolutionmember of the DevMode. Represents the value of the
'Vertical Resolution' edit box.
GetYDPI(pBlackIceDEVMODE As Long) As Integer
Input value
- handle to the BlackIceDEVMODE
Return value - Vertical Resolution
6.7.3.23
SetYDPI
Sets the dmYResolutionmember of the DevMode. Sets the value of the 'Vertical Resolution' edit
box.
SetYDPI(ydpi As Integer, pBlackIceDEVMODE As Long) As Boolean
IsFaxLowOutputEnabled
Returns the value of the BLF_LOWFAXRES flag. If true, the low fax resolution (204x98) is
selected, if false the Fine Fax resolution (204x196) is selected when the Create Faxable Image
option is selected.
BOOL
IsLowFaxOutputEnabled(BlackIceDEVMODE* pDevMode);
EnableLowFaxOutput
Sets the BLF_ LOWFAXRES flag. Sets the value of the fax resolution when the Create Faxable
Image checkbox is selected.
BOOL
EnableLowFaxOutput(BlackIceDEVMODE* pDevMode);
6.7.3.26
DisableLowFaxOutput
Sets the BLF_ LOWFAXRES flag 0 (false). Sets the value of the fax resolution when the Create
Faxable Image checkbox is selected.
BOOL
DisableLowFaxOutput(BlackIceDEVMODE* pDevMode);
209
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
6.7.4
6.7.4.1
GetFileFormat
Returns the value of the Format member of the BlackIceDEVMODE. Represents the value of the
'File Format' combo box.
GetFileFormat(pBlackIceDEVMODE As Long) As Long
Input value
- handle to the BlackIceDEVMODE
Return value - File Format
210
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
6.7.4.2
SetFileFormat
Sets the Format member of the BlackIceDEVMODE. Sets the value of the 'File Format' combo
box.
SetFileFormat(fileformat As Long, pBlackIceDEVMODE As Long) As Boolean
GetLossRatio
Returns the value of the LossRatio member of the BlackIceDEVMODE. Represents the value of
the 'JPEG loss ratio' slider.
GetLossRatio(pBlackIceDEVMODE As Long) As Long
Input value
- handle to the BlackIceDEVMODE
Return value - JPEG loss ratio
6.7.4.4
SetLossRatio
Sets LossRatio member of BlackIceDEVMODE. Sets the value of the 'JPEG loss ratio' slider.
SetLossRatio(lossratio As Long, pBlackIceDEVMODE As Long) As Boolean
GetColorDepth
Returns the value of the ColorMode member of the BlackIceDEVMODE. Represents the value of
the 'Color Depth' radio button.
GetColorDepth(pBlackIceDEVMODE As Long) As Long
Input value
- handle to the BlackIceDEVMODE
Return value - Color Depth
6.7.4.6
SetColorDepth
Sets the ColorMode member of the BlackIceDEVMODE. Sets the value of the 'Color Depth'
radio button.
SetColorDepth(colordepth As Long, pBlackIceDEVMODE As Long) As Boolean
- Color Depth
211
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
IsMultipageImageEnabled
Returns the value of the BLF_MULTIIMAGE flag. Represents the value of the Create Multipage Image checkbox.
IsMultipageImageEnabled(pBlackIceDEVMODE As Long) As Boolean
Input value
- handle to the BlackIceDEVMODE
Return value - TRUE if Create Multi-page Image is used, otherwise FALSE
6.7.4.8
EnableMultipageImage
Sets the BLF_MULTIIMAGE flag. Sets the value of the Create Multi-page Image checkbox.
EnableMultipageImage(pBlackIceDEVMODE As Long) As Boolean
Input value
- handle to the BlackIceDEVMODE.
Return value - TRUE if the flag was successfully set, otherwise FALSE.
6.7.4.9
DisableMultipageImage
Sets the BLF_MULTIIMAGE flag 0 (false). Sets the value of the Create Multipage Image
checkbox UNCHECKED.
DisableMultipageImage(pBlackIceDEVMODE As Long) As Boolean
Input value
- handle to the BlackIceDEVMODE.
Return value - TRUE if the flag was successfully set 0 (false), otherwise FALSE.
6.7.4.10
IsAppendImageEnabled
Returns the value of the BLF_MULTIIMAGE flag. Represents the value of the Create
Multipage Image checkbox.
IsAppendImageEnabled(pBlackIceDEVMODE As Long) As Boolean
Input value
- handle to the BlackIceDEVMODE
Return value - TRUE if the Create Multipage Image is used, otherwise FALSE
6.7.4.11
EnableAppendImage
Sets the BLF_MULTIIMAGE flag. Sets the value of the Create Multipage Image checkbox.
EnableAppendImage(pBlackIceDEVMODE As Long) As Boolean
Input value
- handle to the BlackIceDEVMODE.
Return value - TRUE if the flag was successfully set, otherwise FALSE.
212
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
6.7.4.12
DisableAppendImage
Sets the BLF_MULTIIMAGE flag to 0 (false). Sets the value of the Create Multi-page Image
checkbox UNCHECKED.
DisableAppendImage(pBlackIceDEVMODE As Long) As Boolean
Input value
- handle to the BlackIceDEVMODE.
Return value - TRUE if the flag was successfully set to 0 (false), otherwise FALSE.
6.7.4.13
IsDisableImageEnabled
Returns the value of the BLF_DISABLEIMAGE flag. Represents the value of the 'Disable Image'
checkbox.
IsDisableImageEnabled(pBlackIceDEVMODE As Long) As Boolean
Input value
- handle to the BlackIceDEVMODE
Return value - TRUE if the Disable Image is used, otherwise FALSE
6.7.4.14
EnableDisableImage
Sets the BLF_DISABLEIMAGE flag. Sets the value of the 'Disable Image' checkbox.
EnableDisableImage(pBlackIceDEVMODE As Long) As Boolean
Input value
- handle to the BlackIceDEVMODE.
Return value - TRUE if the flag was successfully set, otherwise FALSE.
6.7.4.15
DisableDisableImage
Sets the BLF_DISABLEIMAGE flag to 0 (false). Sets the value of the 'Disable Image' checkbox
UNCHECKED.
DisableDisableImage(pBlackIceDEVMODE As Long) As Boolean
Input value
- handle to the BlackIceDEVMODE.
Return value - TRUE if the flag was successfully set to 0 (false), otherwise FALSE.
6.7.4.16
IsEasternCharSupportEnabled
Returns the value of the BLF_GLYPHSUPPORT flag. Represents the value of the 'Eastern
Character Support' checkbox.
IsEasternCharSupportEnabled(pBlackIceDEVMODE As Long) As Boolean
Input value
- handle to the BlackIceDEVMODE
Return value - TRUE if the Eastern Character Support is used, otherwise FALSE
213
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
6.7.4.17
EnableEasternCharSupport
Sets the BLF_GLYPHSUPPORT flag. Sets the value of the 'Eastern Character Support'
checkbox.
EnableEasternCharSupport(pBlackIceDEVMODE As Long) As Boolean
Input value
- handle to the BlackIceDEVMODE.
Return value - TRUE if the flag was successfully set, otherwise FALSE.
6.7.4.18
DisableEasternCharSupport
Sets the BLF_GLYPHSUPPORT flag to 0 (false). Sets the value of the 'Eastern Character
Support' checkbox UNCHECKED.
DisableEasternCharSupport(pBlackIceDEVMODE As Long) As Boolean
Input value
- handle to the BlackIceDEVMODE.
Return value - TRUE if the flag was successfully set to 0 (false), otherwise FALSE.
6.7.4.19
IsWriteTextEnabled
Returns the value of the BLF_WRITETEXT flag. Represents the value of the 'Write Text File'
checkbox.
IsWriteTextEnabled(pBlackIceDEVMODE As Long) As Boolean
Input value
- handle to the BlackIceDEVMODE
Return value - TRUE if the Write Text File is used, otherwise FALSE
6.7.4.20
EnableWriteText
Sets the BLF_WRITETEXT flag. Sets the value of the 'Write Text File' checkbox.
EnableWriteText(pBlackIceDEVMODE As Long) As Boolean
Input value
- handle to the BlackIceDEVMODE.
Return value - TRUE if the flag was successfully set, otherwise FALSE.
6.7.4.21
DisableWriteText
Sets the BLF_WRITETEXT flag to 0 (false). Sets the value of the 'Write Text File' checkbox
UNCHECKED.
DisableWriteText(pBlackIceDEVMODE As Long) As Boolean
Input value
- handle to the BlackIceDEVMODE.
Return value - TRUE if the flag was successfully set to 0 (false), otherwise FALSE.
214
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
6.7.4.22
IsMailMergeEnabled
Returns the value of the BLF_MAILMERGE flag. Represents the value of the Mail Merge
checkbox.
IsMailMergeEnabled(pBlackIceDEVMODE As Long) As Boolean
Input value
- handle to the BlackIceDEVMODE
Return value - TRUE if WriteText File is used, otherwise FALSE
6.7.4.23
EnableMailMerge
Sets the BLF_MAILMERGE flag. Sets the value of the Mail Merge checkbox.
EnableMailMerge(pBlackIceDEVMODE As Long) As Boolean
Input value
- handle to the BlackIceDEVMODE.
Return value - TRUE if the flag was successfully set, otherwise FALSE.
6.7.4.24
DisableMailMerge
Sets the BLF_MAILMERGE flag to 0 (false). Sets the value of the Mail Merge checkbox
UNCHECKED.
DisableMailMerge(pBlackIceDEVMODE As Long) As Boolean
Input value
- handle to the BlackIceDEVMODE.
Return value - TRUE if the flag was successfully set to 0 (false), otherwise FALSE.
6.7.4.25
IsAdvancedTextEnabled
Returns the value of the BLF_ADVANCEDTEXT flag. Represents the value of the 'Save
position and style' checkbox.
IsAdvancedTextEnabled(pBlackIceDEVMODE As Long) As Boolean
Input value
- handle to the BlackIceDEVMODE
Return value - TRUE if the Save position and style is used, otherwise FALSE
6.7.4.26
EnableAdvancedText
Sets the BLF_ADVANCEDTEXT flag. Sets the value of the 'Save position and style' checkbox.
EnableAdvancedText(pBlackIceDEVMODE As Long) As Boolean
Input value
- handle to the BlackIceDEVMODE.
Return value - TRUE if the flag was successfully set, otherwise FALSE.
6.7.4.27
DisableAdvancedText
Sets the BLF_ADVANCEDTEXT flag to 0 (false). Sets the value of the 'Save position and style'
checkbox UNCHECKED.
215
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
Input value
- handle to the BlackIceDEVMODE.
Return value - TRUE if the flag was successfully set to 0 (false), otherwise FALSE.
6.7.4.28
IsInternetTiffFormatEnabled
Returns the value of the BLF_INTERNETTIFF flag. Represents the value of the Internet TIFF
format checkbox.
IsInternetTiffFormatEnabled(pBlackIceDEVMODE As Long) As Boolean
Input value
- handle to the BlackIceDEVMODE
Return value - TRUE if the Internet TIFF format is used, otherwise FALSE
6.7.4.29
EnableInternetTiffFormat
Sets the BLF_INTERNETTIFF flag. Sets the value of the Internet TIFF format checkbox.
EnableInternetTiffFormat(pBlackIceDEVMODE As Long) As Boolean
Input value
- handle to the BlackIceDEVMODE.
Return value - TRUE if the flag was successfully set, otherwise FALSE.
6.7.4.30
DisableInternetTiffFormat
Sets the BLF_INTERNETTIFF flag to 0 (false). Sets the value of the Internet TIFF format
checkbox UNCHECKED.
DisableInternetTiffFormat(pBlackIceDEVMODE As Long) As Boolean
Input value
- handle to the BlackIceDEVMODE.
Return value - TRUE if the flag was successfully set to 0 (false), otherwise FALSE.
6.7.4.31
IsReverseBitOrderEnabled
Returns the value of the BLF_REVERSEFILLORDER flag. Represents the value of the Reverse
Bit Order in TIFF checkbox.
IsReverseBitOrderEnabled(pBlackIceDEVMODE As Long) As Boolean
Input value
- handle to the BlackIceDEVMODE
Return value - TRUE if the Reverse Bit Order in TIFF is used, otherwise FALSE
6.7.4.32
EnableReverseBitOrder
Sets the BLF_REVERSEFILLORDER flag. Sets the value of the Reverse Bit Order in TIFF
checkbox.
EnableReverseBitOrder(pBlackIceDEVMODE As Long) As Boolean
216
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
Input value
- handle to the BlackIceDEVMODE.
Return value - TRUE if the flag was successfully set, otherwise FALSE.
6.7.4.33
DisableReverseBitOrder
Sets the BLF_REVERSEFILLORDER flag to 0 (false). Sets the value of the Reverse Bit Order
in TIFF checkbox UNCHECKED.
DisableReverseBitOrder(pBlackIceDEVMODE As Long) As Boolean
Input value
- handle to the BlackIceDEVMODE.
Return value - TRUE if the flag was successfully set to 0 (false), otherwise FALSE.
6.7.4.34
IsPageNumberingEnabled
Returns the value of the BLF_PAGENUMBERING flag. Represents the value of the Add Page
Numbering Tag checkbox.
IsPageNumberingEnabled(pBlackIceDEVMODE As Long) As Boolean
Input value
- handle to the BlackIceDEVMODE
Return value - TRUE if the Add Page Numbering Tag is used, otherwise FALSE
6.7.4.35
EnablePageNumbering
Sets the BLF_PAGENUMBERING flag. Sets the value of the Add Page Numbering Tag
checkbox.
EnablePageNumbering(pBlackIceDEVMODE As Long) As Boolean
Input value
- handle to the BlackIceDEVMODE.
Return value - TRUE if the flag was successfully set, otherwise FALSE.
6.7.4.36
DisablePageNumbering
Sets the BLF_PAGENUMBERING flag to 0 (false). Sets the value of the Add Page Numbering
Tag checkbox UNCHECKED.
DisablePageNumbering(pBlackIceDEVMODE As Long) As Boolean
Input value
- handle to the BlackIceDEVMODE.
Return value - TRUE if the flag was successfully set to 0 (false), otherwise FALSE.
6.7.4.37
GetDithering
Returns the value of the Dithering member of the BlackIceDEVMODE. Represents the value of
the 'Photo Quality' radio button.
GetDithering(pBlackIceDEVMODE As Long) As Long
Input value
- handle to the BlackIceDEVMODE
Return value - Photo Quality
217
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
6.7.4.38
SetDithering
Sets the Dithering member of the BlackIceDEVMODE. Sets the value of the 'Photo Quality' radio
button.
SetDithering(dithering As Long, pBlackIceDEVMODE As Long) As Boolean
GetBrightness
Returns the value of the Brightness member of the BlackIceDEVMODE. Represents the value of
the 'Intensity' slider.
GetBrightness(pBlackIceDEVMODE As Long) As Long
Input value
- handle to the BlackIceDEVMODE
Return value - Intensity
6.7.4.40
SetBrightness
Sets the Brightness member of the BlackIceDEVMODE. Sets the value of the 'Intensity' slider.
SetBrightness(brightness As Long, pBlackIceDEVMODE As Long) As Boolean
218
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
6.7.5
6.7.5.1
GetFileGenerationMethod
Input value
- handle to the BlackIceDEVMODE
Return value - File Name Generation Method
219
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
6.7.5.2
SetFileGenerationMethod
Sets the FileNameGenerationFlags member of the BlackIceDEVMODE. Sets the value of the 'File
Name Generation Method' combo box.
SetFileGenerationMethod(fnamegen As Long, pBlackIceDEVMODE As Long) As Boolean
GetFileNamePrefix
Returns the value of the FileNamePrefix member of the BlackIceDEVMODE. Represents the
value of the 'File Name Prefix' edit box.
GetFileNamePrefix(pBlackIceDEVMODE As Long) As String
Input value
- handle to the BlackIceDEVMODE
Return value - File Name Prefix
6.7.5.4
SetFileNamePrefix
Sets the FileNamePrefix member of the BlackIceDEVMODE. Sets the value of the 'File Name
Prefix' edit box.
SetFileNamePrefix(fnamepref As String, pBlackIceDEVMODE As Long) As Boolean
GetFileExtension
Returns the value of the FileExtension member of the BlackIceDEVMODE. Represents the value
of the 'File Name Extension' edit box.
GetFileExtension(pBlackIceDEVMODE As Long) As String
Input value
- handle to the BlackIceDEVMODE
Return value - File Name Extension
6.7.5.6
SetFileExtension
Sets the FileExtension member of the BlackIceDEVMODE. Sets the value of the 'File Name
Extension' edit box.
SetFileExtension(fnameext As String, pBlackIceDEVMODE As Long) As Boolean
220
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
IsCustomExtensionEnabled
Returns the value of the BLF_CUSTOMEXT flag. Represents the value of the 'Use Custom
Extension' checkbox.
IsCustomExtensionEnabled(pBlackIceDEVMODE As Long) As Boolean
Input value
- handle to the BlackIceDEVMODE
Return value - TRUE if Use Custom Extension is used, otherwise FALSE
6.7.5.8
EnableCustomExtension
Sets the BLF_CUSTOMEXT flag. Sets the value of the 'Use Custom Extension' checkbox.
EnableCustomExtension(pBlackIceDEVMODE As Long) As Boolean
Input value
- handle to the BlackIceDEVMODE.
Return value - TRUE if the flag was successfully set, otherwise FALSE.
6.7.5.9
DisableCustomExtension
Sets the BLF_CUSTOMEXT flag to 0 (false). Sets the value of the 'Use Custom Extension'
checkbox UNCHECKED.
DisableCustomExtension(pBlackIceDEVMODE As Long) As Boolean
Input value
- handle to the BlackIceDEVMODE.
Return value - TRUE if the flag was successfully set to 0 (false), otherwise FALSE.
6.7.5.10
GetINIFileName
Returns the value of the INIFileName member of the BlackIceDEVMODE. Represents the value
of the 'INI File Name'/'Registry path'/etc. edit box.
GetINIFileName(pBlackIceDEVMODE As Long) As String
Input value
- handle to the BlackIceDEVMODE
Return value - INI File Name/Registry Path/etc
6.7.5.11
SetINIFileName
Sets INIFileName member of the BlackIceDEVMODE. Sets the value of the 'INI File
Name'/'Registry path'/etc. edit box.
SetINIFileName(inifname As String, pBlackIceDEVMODE As Long) As Boolean
221
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
GetImageFileName
Returns the value of the FileImageName member of the BlackIceDEVMODE. Represents the
value of the 'File Image Name' edit box if Filename Generation method is Exact filename.
GetImageFileName(pBlackIceDEVMODE As Long) As String
Input value
- handle to the BlackIceDEVMODE
Return value - Image Filename
6.7.5.13
SetImageFileName
Sets the FileImageName member of the BlackIceDEVMODE. Sets the value of the 'File Image
Name' edit box if Filename Generation method is Exact filename.
SetImageFileName(filename As String, pBlackIceDEVMODE As Long) As Boolean
IsKeepExistingFilesEnabled
Returns the value of the BLF_KEEPFILES flag. Represents the value of the 'Keep existing files'
checkbox.
IsKeepExistingFilesEnabled(pBlackIceDEVMODE As Long) As Boolean
Input value
- handle to the BlackIceDEVMODE
Return value - TRUE if Keep existing files is used, otherwise FALSE
6.7.5.15
EnableKeepExistingFiles
Sets the BLF_KEEPFILES flag. Sets the value of the 'Keep existing files' checkbox.
EnableKeepExistingFiles(pBlackIceDEVMODE As Long) As Boolean
Input value
- handle to the BlackIceDEVMODE.
Return value - TRUE if the flag was successfully set, otherwise FALSE.
6.7.5.16
DisableKeepExistingFiles
Sets the BLF_KEEPFILES flag to 0 (false). Sets the value of the 'Keep existing files' checkbox
UNCHECKED.
DisableKeepExistingFiles(pBlackIceDEVMODE As Long) As Boolean
222
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
Input value
- handle to the BlackIceDEVMODE.
Return value - TRUE if the flag was successfully set to 0 (false), otherwise FALSE.
6.7.5.17
GetOutputDirectory
Returns the value of the OutputDirectory member of the BlackIceDEVMODE. Represents the
value of the 'Output Directory' edit box.
GetOutputDirectory(pBlackIceDEVMODE As Long) As String
Input value
- handle to the BlackIceDEVMODE
Return value - Output Directory
6.7.5.18
SetOutputDirectory
Sets the OutputDirectory member of the BlackIceDEVMODE. Sets the value of the 'Output
Directory' edit box.
SetOutputDirectory(outputdir As String, pBlackIceDEVMODE As Long) As Boolean
IsGroupFileDisabled
Returns the value of the BLF_DISABLEGROUPFILE flag. Represents the value of the 'Disable
Group File' checkbox.
IsGroupFileDisabled(pBlackIceDEVMODE As Long) As Boolean
Input value
- handle to the BlackIceDEVMODE
Return value - TRUE if Disable Group File is used, otherwise FALSE
6.7.5.20
DisableGroupFile
Sets the BLF_DISABLEGROUPFILE flag. Sets the value of the 'Disable Group File' checkbox.
DisableGroupFile(pBlackIceDEVMODE As Long) As Boolean
Input value
- handle to the BlackIceDEVMODE.
Return value - TRUE if the flag was successfully set, otherwise FALSE.
6.7.5.21
EnableGroupFile
Sets the BLF_DISABLEGROUPFILE flag to 0 (false). Sets the value of the 'Disable Group File'
checkbox UNCHECKED.
EnableGroupFile(pBlackIceDEVMODE As Long) As Boolean
Input value
223
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
Return value - TRUE if the flag was successfully set to 0 (false), otherwise FALSE.
6.7.5.22
IsDeleteGroupFileEnabled
Returns the value of the BLF_DELETEGROUPFILE flag. Represents the value of the 'Delete
Group File After Printing' checkbox.
IsDeleteGroupFileEnabled(pBlackIceDEVMODE As Long) As Boolean
Input value
- handle to the BlackIceDEVMODE
Return value - TRUE if Delete Group File After Printing is used, otherwise FALSE
6.7.5.23
EnableDeleteGroupFile
Sets the BLF_DELETEGROUPFILE flag. Sets the value of the 'Delete Group File After Printing'
checkbox.
EnableDeleteGroupFile(pBlackIceDEVMODE As Long) As Boolean
Input value
- handle to the BlackIceDEVMODE.
Return value - TRUE if the flag was successfully set, otherwise FALSE.
6.7.5.24
DisableDeleteGroupFile
Sets the BLF_DELETEGROUPFILE flag to 0 (false). Sets the value of the 'Delete Group File
After Printing' checkbox UNCHECKED.
DisableDeleteGroupFile(pBlackIceDEVMODE As Long) As Boolean
Input value
- handle to the BlackIceDEVMODE.
Return value - TRUE if the flag was successfully set to 0 (false), otherwise FALSE.
224
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
6.7.6
6.7.6.1
IsStartApplicationEnabled
Returns the value of the BLF_LAUNCHAPP flag. Represents the value of the 'Enable Start
Application' checkbox.
IsStartApplicationEnabled(pBlackIceDEVMODE As Long) As Boolean
Input value
- handle to the BlackIceDEVMODE
Return value - TRUE if the Enable Start Application is used, otherwise FALSE
225
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
6.7.6.2
EnableStartApplication
Sets the BLF_LAUNCHAPP flag. Sets the value of the 'Enable Start Application' checkbox.
EnableStartApplication(pBlackIceDEVMODE As Long) As Boolean
Input value
- handle to the BlackIceDEVMODE.
Return value - TRUE if the flag was successfully set, otherwise FALSE.
6.7.6.3
DisableStartApplication
Sets the BLF_LAUNCHAPP flag to 0 (false). Sets the value of the 'Enable Start Application'
checkbox UNCHECKED.
DisableStartApplication(pBlackIceDEVMODE As Long) As Boolean
Input value
- handle to the BlackIceDEVMODE.
Return value - TRUE if the flag was successfully set to 0 (false), otherwise FALSE.
6.7.6.4
GetApplicationPath
Returns the value of the ApplicationPath member of the BlackIceDEVMODE. Represents the
value of the 'Output Directory' edit box.
GetApplicationPath(pBlackIceDEVMODE As Long) As String
Input value
- handle to the BlackIceDEVMODE
Return value - Application Path
6.7.6.5
SetApplicationPath
Sets the ApplicationPath member of the BlackIceDEVMODE. Sets the value of the 'Application
Path' edit box.
SetApplicationPath(applicationpath As String ,pBlackIceDEVMODE As Long) As Boolean
IsStartBeforePrint
Returns the value of the BLF_STARTBEFOREPRINT flag. Represents the value of the 'Start
Before Printing' radio button.
IsStartBeforePrint(pBlackIceDEVMODE As Long) As Boolean
Input value
- handle to the BlackIceDEVMODE
Return value - TRUE if Start Before Printing is used, otherwise FALSE (the driver will start the
application after printing)
226
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
6.7.6.7
EnableStartBeforePrint
Sets the BLF_STARTBEFOREPRINT flag. Sets the value of the 'Start Before Printing' radio
button.
EnableStartBeforePrint(pBlackIceDEVMODE As Long) As Boolean
Input value
- handle to the BlackIceDEVMODE.
Return value - TRUE if the flag was successfully set, otherwise FALSE.
6.7.6.8
DisableStartBeforePrint
Sets the BLF_STARTBEFOREPRINT flag to 0 (false). Sets the value of the 'Start Before
Printing' radio button UNCHECKED. (Sets the value of the 'Start After Printing' radio button
CHECKED)
DisableStartBeforePrint(pBlackIceDEVMODE As Long) As Boolean
Input value
- handle to the BlackIceDEVMODE.
Return value - TRUE if the flag was successfully set to 0 (false), otherwise FALSE.
6.7.6.9
IsPassParametersEnabled
Returns the value of the BLF_PASSPARAMETERS flag. Represents the value of the 'Pass
Parameters' checkbox.
IsPassParametersEnabled(pBlackIceDEVMODE As Long) As Boolean
Input value
- handle to the BlackIceDEVMODE
Return value - TRUE if Pass Parameters is used, otherwise FALSE
6.7.6.10
EnablePassParameters
Sets the BLF_PASSPARAMETERS flag. Sets the value of the 'Pass Parameters' checkbox.
EnablePassParameters(pBlackIceDEVMODE As Long) As Boolean
Input value
- handle to the BlackIceDEVMODE.
Return value - TRUE if the flag was successfully set, otherwise FALSE.
6.7.6.11
DisablePassParameters
Sets the BLF_PASSPARAMETERS flag to 0 (false). Sets the value of the 'Pass Parameters'
checkbox UNCHECKED.
DisablePassParameters(pBlackIceDEVMODE As Long) As Boolean
Input value
- handle to the BlackIceDEVMODE.
Return value - TRUE if the flag was successfully set to 0 (false), otherwise FALSE.
227
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
6.7.6.12
IsStartNormal
Returns the value of the BLF_STARTNORMAL flag. Represents the value of the 'Normal' radio
button.
IsStartNormal(pBlackIceDEVMODE As Long) As Boolean
Input value
- handle to the BlackIceDEVMODE
Return value - TRUE if Start Application In a Normal Window is used, otherwise FALSE
6.7.6.13
EnableStartNormal
Sets the BLF_STARTNORMAL flag. Sets the value of the 'Normal' radio button. The driver will
start the application In a Normal window
EnableStartNormal(pBlackIceDEVMODE As Long) As Boolean
Input value
- handle to the BlackIceDEVMODE.
Return value - TRUE if the flag was successfully set, otherwise FALSE.
6.7.6.14
DisableStartNormal
Sets the BLF_STARTNORMAL flag to 0 (false). Sets the value of the 'Normal' radio button
UNCHECKED.
DisableStartNormal(pBlackIceDEVMODE As Long) As Boolean
Input value
- handle to the BlackIceDEVMODE.
Return value - TRUE if the flag was successfully set to 0 (false), otherwise FALSE.
6.7.6.15
IsStartMinimized
Returns the value of the BLF_STARTMINIMIZED flag. Represents the value of the 'Minimized'
radio button.
IsStartMinimized(pBlackIceDEVMODE As Long) As Boolean
Input value
- handle to the BlackIceDEVMODE
Return value - TRUE if Start Application In a Minimized Window is used, otherwise FALSE
6.7.6.16
EnableStartMinimized
Sets the BLF_STARTMINIMIZED flag. Sets the value of the 'Minimized' radio button. The
driver will start the application In a Minimized window
EnableStartMinimized(pBlackIceDEVMODE As Long) As Boolean
Input value
- handle to the BlackIceDEVMODE.
Return value - TRUE if the flag was successfully set, otherwise FALSE.
228
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
6.7.6.17
DisableStartMinimized
Sets the BLF_STARTMINIMIZED flag to 0 (false). Sets the value of the 'Minimized' radio
button UNCHECKED.
DisableStartMinimized(pBlackIceDEVMODE As Long) As Boolean
Input value
- handle to the BlackIceDEVMODE.
Return value - TRUE if the flag was successfully set to 0 (false), otherwise FALSE.
6.7.6.18
IsStartHidden
Returns the value of the BLF_STARTHIDDEN flag. Represents the value of the 'Hidden' radio
button.
IsStartHidden(pBlackIceDEVMODE As Long) As Boolean
Input value
- handle to the BlackIceDEVMODE
Return value - TRUE if Start Application Hidden is used, otherwise FALSE
6.7.6.19
EnableStartHidden
Sets the BLF_STARTHIDDEN flag. Sets the value of the 'Hidden' radio button. The driver will
start the application Hidden
EnableStartHidden(pBlackIceDEVMODE As Long) As Boolean
Input value
- handle to the BlackIceDEVMODE.
Return value - TRUE if the flag was successfully set, otherwise FALSE.
6.7.6.20
DisableStartHidden
Sets the BLF_STARTHIDDEN flag to 0 (false). Sets the value of the 'Hidden' radio button
UNCHECKED.
DisableStartHidden(pBlackIceDEVMODE As Long) As Boolean
Input value
- handle to the BlackIceDEVMODE.
Return value - TRUE if the flag was successfully set to 0 (false), otherwise FALSE.
6.7.6.21
IsMessagingInterfaceEnabled
Returns the value of the BLF_SENDMESSAGE flag. Represents the value of the 'Disable the
Messaging Interface' checkbox, BUT the flag and the check box contain the opposite value.
IsMessagingInterfaceEnabled(pBlackIceDEVMODE As Long) As Boolean
Input value
- handle to the BlackIceDEVMODE
Return value - TRUE if the Messaging Interface is used (the check box is unchecked), otherwise
FALSE ( The Messaging Interface is not used and the check box is checked)
229
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
6.7.6.22
EnableMessagingInterface
Sets the BLF_SENDMESSAGE flag. Sets the value of the 'Disable the Messaging Interface'
checkbox UNCHECKED. The driver uses the Messaging Interface.
EnableMessagingInterface(pBlackIceDEVMODE As Long) As Boolean
Input value
- handle to the BlackIceDEVMODE.
Return value - TRUE if the flag was successfully set, otherwise FALSE.
6.7.6.23
DisableMessagingInterface
Sets the BLF_SENDMESSAGE flag to 0 (false). Sets the value of the 'Disable the Messaging
Interface' checkbox. The driver will not use Messaging Interface.
DisableMessagingInterface(pBlackIceDEVMODE As Long) As Boolean
Input value
- handle to the BlackIceDEVMODE.
Return value - TRUE if the flag was successfully set to 0 (false), otherwise FALSE.
230
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
6.7.7
6.7.7.1
Miscellaneous methods
GetInterfaceName
Returns the value of the InterfaceName member of the BlackIceDEVMODE. The InterfaceName
member stores the name of the messaging interface.
InterfaceName(pBlackIceDEVMODE As Long) As String
Input value
- handle to the BlackIceDEVMODE
Return value - Interface Name
6.7.7.2
SetInterfaceName
Sets the InterfaceName member of the BlackIceDEVMODE. The InterfaceName member stores
the name of the messaging interface.
SetInterfaceName(intfname As String, pBlackIceDEVMODE As Long) As Boolean
GetPaperLength
Returns the value of the dmPaperLength member of the DevMode. (DM.dmPaperLength member
of the BlackIceDEVMODE ) This value represent the 'Actual paper length'.
GetPaperLength(pBlackIceDEVMODE As Long) As Integer
Input value
- handle to the BlackIceDEVMODE
Return value - Actual paper length
6.7.7.4
SetPaperLength
231
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
6.7.7.5
IsTiffDllEnabled
Returns the value of the BLF_ENABLETIFFDLL flag. If the flag is set, the printer driver will
load the TIFF32.DLL. This flag can only be set programmatically.
IsTiffDllEnabled(pBlackIceDEVMODE As Long) As Boolean
Input value
- handle to the BlackIceDEVMODE
Return value - TRUE if the TIFF32.DLL is enabled, otherwise FALSE
6.7.7.6
EnableTiffDll
Sets the BLF_ENABLETIFFDLL flag. If the flag is set, the printer driver will load the
TIFF32.DLL. This flag can only be set programmatically.
EnableTiffDll(pBlackIceDEVMODE As Long) As Boolean
Input value
- handle to the BlackIceDEVMODE.
Return value - TRUE if the flag was successfully set, otherwise FALSE.
6.7.7.7
DisableTiffDll
Sets the BLF_ENABLETIFFDLL flag to 0 (false). If the flag is set, the printer driver will load the
TIFF32.DLL. This flag can only be set programmatically.
DisableTiffDll(pBlackIceDEVMODE As Long) As Boolean
Input value
- handle to the BlackIceDEVMODE.
Return value - TRUE if the flag was successfully set to 0 (false), otherwise FALSE.
6.7.7.8
IsJpegDllEnabled
Returns the value of the BLF_ENABLEJPEGDLL flag. If the flag is set, the printer driver will
load the JPEG32.DLL. This flag can only be set programmatically.
IsJpegDllEnabled(pBlackIceDEVMODE As Long) As Boolean
Input value
- handle to the BlackIceDEVMODE
Return value - TRUE if the JPEG32.DLL is enabled, otherwise FALSE
6.7.7.9
EnableJpegDll
Sets the BLF_ENABLEJPEGDLL flag. If the flag is set, the printer driver will load the
JPEG32.DLL. This flag can only be set programmatically.
EnableJpegDll(pBlackIceDEVMODE As Long) As Boolean
Input value
- handle to the BlackIceDEVMODE.
Return value - TRUE if the flag was successfully set, otherwise FALSE.
232
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
6.7.7.10
DisableJpegDll
Sets the BLF_ENABLEJPEGDLL flag to 0 (false). If the flag is set, the printer driver will load
the JPEG32.DLL. Can be set only programmatically.
DisableJpegDll(pBlackIceDEVMODE As Long) As Boolean
Input value
- handle to the BlackIceDEVMODE.
Return value - TRUE if the flag was successfully set to 0 (false), otherwise FALSE.
6.7.7.11
GetTIFFDLLName
Input value
- handle to the BlackIceDEVMODE
Return value - TIFFDLLName
6.7.7.12
SetTIFFDLLName
GetJPEGDLLName
Input value
- handle to the BlackIceDEVMODE
Return value - JPEGDLLName
6.7.7.14
SetJPEGDLLName
GetResourceDLLName
Input value
- handle to the BlackIceDEVMODE
Return value - ResourceDLLName
6.7.7.16
SetResourceDLLName
GetBitsPerPixel
Input value
- handle to the BlackIceDEVMODE
Return value - Color depth in pixels.
The PrinterSettings program allows users to change the settings of Black Ice printers.
OK:
Cancel:
Apply:
Open printer:
235
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
237
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
Instead of one dialog box, the settings are divided into two groups that can be found in two
separate dialogs on Xpand W2K: Properties and Printing Preferences. On NT 4.0 it is
named Properties and Document Defaults.
Properties: this dialog can be opened by clicking on the Black Ice printer with the right
mouse button and choosing Properties. The parameters available in this dialog will be used by
every printing application when printing to this printer. The last property sheet contains Black
Ice specific settings.
Document Defaults: another group of settings can be found by clicking on the Black Ice
printer with the right mouse button and selecting Document Defaults. This dialog contains
default values for document related and other settings. However; if a printing application
wants to modify some of these settings it can call the DocumentProperties() function to do so.
Even two or more applications running simultaneously can use different settings.
The XP/W2K and NT driver writes information to a named pipe instead of sending actual
messages.
The user needs Administrator privileges to be able to modify the printers settings on
XP/W2K and NT.
238
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
239
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
8. Custom Config: Selecting this setting will bring up the Driver Properties dialog box where you
can you manually configure the driver. You can change these settings at any time after
installation. See the following sections of the manual for more detail.
Please see the installation section below for each option:
Fax Applications:
Here you can specify the type of TIFF file that will be outputted. The settings can be based on a
specific hardware type or you can go with the default setting. Make your selection and press the Next
button to complete the installation. You can change these settings at any time after installation. See
the following sections of the manual for more detail.
Selecting this option automatically configures the driver for document imaging. By default the file
format will be set to 24 bit JPEG. Press finish to complete the installation. You can change these
settings at any time after installation. See the following sections of the manual for more detail.
Custom Config:
Press the Printer button to manually configure the driver or press the next button to proceed with the
default settings and complete the installation. By default, the image format is set to 24 bit JPEG.
Pressing the Printer button will bring up the following dialog box.
242
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
Use this dialog box and the various sheets to configure the driver. The following sections of the
manual will describe in detail how to configure the properties of the Printer Driver. Make your
selections and press OK to complete the installation.
243
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
244
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
245
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
Paper Width
Paper width is shown in the selected unit type of 0.01 inch, 0.1 mm, or a pixel.
246
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
Paper Height
Paper height is shown in the selected unit type of 0.01 inch, 0.1 mm, or a pixel.
Units
The units are the type of measurement used to describe the paper width and height. The units can be
0.01 inch, 0.1 mm (mm = millimeter), or a pixel.
The VARIABLE paper size is specified by 0.01 inch or 0.1 mm. The formula to compute
between mm and pixels is mm = pixel x 254/DPI or pixel = mm x DPI/254.
The VARIABLE paper size specified in pixels can be any size in the boundary of the
Microsoft environment with a maximum width and height of 65535 x 65535 pixels. The DPI
information will be ignored.
Please Note:
The VARIABLE paper size specified in pixels is a special case. Normally, page size times DPI
is equal to the image size in pixels. With the VARIABLE paper size specified in pixels setting,
the image size in pixels is absolute and the DPI can be set arbitrarily. The VARIABLE paper size
specified in pixels setting can be very useful in web and graphic applications where the physical
size of the image is the preeminent factor.
Letter 8 1/2 x 11 in
Tabloid 11 x 17 in
Ledger 17 x 11 in
Legal 8 1/2 x 14 in
Statement 5 1/2 x 8 1/2 in
Executive 7 1/4 x 10 1/2 in
A3 297 x 420 mm
A4 210 x 297 mm
A4 Small 210 x 297 mm
247
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
A5 148 x 210 mm
B4 250 x 354
B5 182 x 257 mm
Folio 8 1/2 x 13 in
Quarto 215 x 275 mm
10x14 in
11x17 in
Note 8 1/2 x 11 in
Envelope #9 3 7/8 x 8 7/8
Envelope #10 4 1/8 x 9
Envelope #11 4 1/2 x 10 3/8
Envelope #12 4 \276 x 11
Envelope #14 5 x 11
C size sheet
D size sheet
E size sheet
Envelope DL 110 x 220mm
Envelope C5 162 x 229 mm
Envelope C3 324 x 458 mm
Envelope C4 229 x 324 mm
Envelope C6 114 x 162 mm
Envelope C65 114 x 229 mm
Envelope B4 250 x 353 mm
Envelope B5 176 x 250 mm
Envelope B6 176 x 125 mm
Envelope 110 x 230 mm
Envelope Monarch 3.875 x 7.5 in
6 3/4 Envelope 3 5/8 x 6 1/2 in
US Std Fanfold 14 7/8 x 11 in
German Std Fanfold 8 1/2 x 12 in
German Legal Fanfold 8 1/2 x 13 in
Fax paper 8.64 x 11 in or 215 mm
If the Create faxable image box is checked, only Fax and Legal paper sizes will be available. As
a result, saved images can be faxed.
248
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
249
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
204 x 98 DPI
204 x 196 DPI
200x200 DPI
The Driver also supports variable dot per inch (DPI) graphic resolution that can range from 50
DPI to 1500 DPI.
Please Note:
For faxing, when selecting resolution, remember that increased resolution slows down
transmission speed, while lower resolutions increase throughput at the cost of image quality.
Horizontal Resolution
Shows the horizontal resolution setting. Also, when Custom resolution is selected, the required
value can be entered.
250
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
Vertical Resolution
Shows the vertical resolution setting. Also, when Custom resolution is selected the required value
can be entered.
251
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
TIFF Group 3 1D
TIFF Group 3 1D No EOL
TIFF Group 3 2D
TIFF Group 4
TIFF Packed
TIFF LZW
TIFF Uncompressed
PCX Image Format
Intel DCX Image Format
Microsoft DIB (BMP)
CALS
RAW CCITT TIFF Group 3 1D
RAW CCITT TIFF Group 3 1D No EOL
RAW CCITT TIFF Group 3 2D
RAW CCITT TIFF Group 4
IBM MRR
Options
Create a multi page image
When this button is checked the driver will save every printed page in one image file. If it is
unchecked all the pages printed will be generated in separate files.
NOTE: This option is only supported by the TIFF (any type of TIFF) and DCX file formats.
Disable image
Check this option to disable the image file generation setting of the driver. This can be useful when the
Write text file radio button is checked for text output and the image file is not needed. As a result, the
driver will only generate a text file, no image files will be generated.
Mail Merge
When this checkbox is checked, the driver will recognize special character sequences in the
printed text to extract some of the information in a text file or to force the driver to start
generating a new image file.
This feature is useful when generating multi-page TIFF files from a large document using a
custom printing application.
The recognized character sequences all start with two # characters. Most of these commands
will cause the driver to remove or alter the printed text and write it in the merged output file in
text format. This file will have the same filename as the group file, with the MRG extension. The
actual name of this file will be written in the group file in the following format:
Merge Output=c:\aaaa1000.mrg
The recognized command sequences are as follows:
##~~
Lines starting with these four characters and ending with ~~ will not be printed,
but written to the merged output file. For example, if the following string is sent
to the driver:
##~~ Phone number=6031234321~~
there will be an empty line printed in the output image file and the following line
will be added to the merged output file:
254
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
Phone number=6031234321 .
##**
Lines starting with these four characters and ending with ** will be partially
printed and also written to the merged output file. If the string enclosed by the
** marks contains an equation mark, the characters after the equation mark will
be printed. Otherwise the whole string between the asterisks will be printed.
Every character between the asterisks will be written to the merged output file.
For example, if the following string is printed with the driver:
##** Adressee=Company Name**
the following will be written to the merged output file:
Adressee=Company Name
and the following line will be printed to the output image file:
Company Name
All of the above command lines must be printed as one continuous string from left to right. If they
are printed one part at a time using several separate printing function calls, ( first printing ##~~
and then the rest of the line ) the driver may not be able to correctly recognize them.
The mail merge file will also contain page delimiter information to mark where the new page is
started. The page delimiter is an empty line, the Page 1: text (where the number is the current
page number) and another empty line :
Page 1:
Page 2:
Page 3:
This information will appear in the Mail Merge file even is there is no mail merge information in
that particular the page.
TIFF Options
All of the following settings are only available for TIFF files.
Photo Quality
The Photo Quality option enables or disables the dithering of the Black Ice driver. When Photo
Quality is enabled, five high quality filters become accessible. Digital half-toning, also referred to
as spatial dithering, produces the illusion of continuous-tone pictures on media that is only
capable of displaying binary picture elements, for example: fax machines and most printers.
Floyd-Steinberg and Jarvis-Judice-Ninke are the text book filters. The Smooth, Sharp, and
Stucki filters are less known, but produce better quality output. Floyd-Steinberg is the default
setting.
Intensity
The photo quality program group also contains a scroll bar that lets you control the intensity of the
output image. The lower the Intensity value is, the darker the output image will be.
Photo Quality output is designed primarily for faxing or to transmit color pictures on a
monochrome device. When a color picture is faxed from a conventional desktop fax machine, the
result is unrecognizable in most cases. On computer-generated faxes, the output quality can be
increased to picture quality using the Black Ice printer driver.
How is performance affected by the Photo Quality output?
The fastest filter is the Floyd-Steinberg, because it requires the least computation. Stucki is the
slowest filter, but has the highest quality. The Stucki filter produces the best visible output.
257
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
258
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
22. Use the prefix and extension: the output filename will be generated from random
characters. The first three characters will be the characters specified in the Filename
Prefix edit box and random numbers will be added.
NOTE: Only the first 3 characters from the Filename Prefix field will be used, if it is
longer the string will be truncated.
23. Prefix and extension from the registry: The file name prefix and the extension will be
read from the specified registry key. The registry path must be under the
HKEY_LOCAL_MACHINE or HKEY_CURRENT_USER root key. Use the File
Name Prefix value name for the file prefix and the File Name extension value name for
the extension.
259
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
24. Prefix and extension from the INI file: In this case the filename and the prefix will be
read from the specified INI file. The driver will search in the INI file for a section width
the printer name. Use the File Name Prefix key for the file prefix and the File Name
extension key for the extension.
You can search for an existing INI file, create a new one or edit the selected file using the
browse [] and edit [Edit] buttons.
[Black Ice Color Printer]
File name prefix=ABC
File name extension=TIFF
25. Exact filename: The printed file will be generated with the same name specified in the
Enter the filename edit box.
26. Exact filename from the registry: The filename will be read from the specified registry
key. The registry path must be under the HKEY_LOCAL_MACHINE or
HKEY_CURRENT_USER root key. The value name containing the filename must be
"File Name". The file name can be specified with the path or without.
260
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
27. Exact filename from the INI file: In this case the filename will be read from the specified
INI file. The driver will search the INI file for a section with the printers name. Use the
File Name key for the Filename. The file name can be specified with the path or
without.
[Black Ice Color Printer]
File name =C:\Output\page.tiff
28. Use the document name: The driver will use the document name the application passes
to the driver when generating the name of the output image.
Filename
Enter the INI file name here, the registry path, or the file name depending on the selected file name
generation method.
Filename Prefix
This is the prefix for the generated files if the Use this prefix and extension setting is selected for the
filename generation method. If the prefix is longer than 3 characters it will be truncated to the first 3
characters.
Filename Extension
This shows the current extension of the files. If the Use custom extension setting is selected the
default extension is changed with the string entered here.
Output directory
In this edit box you can specify the path where the driver will save the generated image files.
The printer driver can handle long directory names like C:\My Documents\Printed Files\
261
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
262
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
Application
The name of the application to be started. You must specify a valid application name and the full
pathname (location of the application exe) (for example: e:\fax\test.exe). The printer driver can
handle long file and directory names.
Pass Parameters
If this is option is checked, the driver will pass parameters to the application that is started. Please
refer to the Programming Interface section in this manual for more detail.
264
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
265
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
Paper Width
Paper width is shown in the selected unit type of 0.01 inch, 0.1 mm, or a pixel.
266
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
Paper Height
Paper height is shown in the selected unit type of 0.01 inch, 0.1 mm, or a pixel.
Units
The units are the type of measurement used to describe the paper width and height. The units can be
0.01 inch, 0.1 mm (mm = millimeter), or a pixel.
The VARIABLE paper size is specified by 0.01 inch or 0.1 mm. The formula to compute
between mm and pixels is mm = pixel x 254/DPI or pixel = mm x DPI/254.
The VARIABLE paper size specified in pixels can be any size in the boundary of the
Microsoft environment with a maximum width and height of 65535 x 65535 pixels. The DPI
information will be ignored.
Please Note:
The VARIABLE paper size specified in pixels is a special case. Normally, page size times DPI
is equal to the image size in pixels. With the VARIABLE paper size specified in pixels setting,
the image size in pixels is absolute and the DPI can be set arbitrarily. The VARIABLE paper size
specified in pixels setting can be very useful in web and graphic applications where the physical
size of the image is the preeminent factor.
Letter 8 1/2 x 11 in
Tabloid 11 x 17 in
Ledger 17 x 11 in
Legal 8 1/2 x 14 in
Statement 5 1/2 x 8 1/2 in
Executive 7 1/4 x 10 1/2 in
A3 297 x 420 mm
A4 210 x 297 mm
A4 Small 210 x 297 mm
267
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
A5 148 x 210 mm
B4 250 x 354
B5 182 x 257 mm
Folio 8 1/2 x 13 in
Quarto 215 x 275 mm
10x14 in
11x17 in
Note 8 1/2 x 11 in
Envelope #9 3 7/8 x 8 7/8
Envelope #10 4 1/8 x 9
Envelope #11 4 1/2 x 10 3/8
Envelope #12 4 \276 x 11
Envelope #14 5 x 11
C size sheet
D size sheet
E size sheet
Envelope DL 110 x 220mm
Envelope C5 162 x 229 mm
Envelope C3 324 x 458 mm
Envelope C4 229 x 324 mm
Envelope C6 114 x 162 mm
Envelope C65 114 x 229 mm
Envelope B4 250 x 353 mm
Envelope B5 176 x 250 mm
Envelope B6 176 x 125 mm
Envelope 110 x 230 mm
Envelope Monarch 3.875 x 7.5 in
6 3/4 Envelope 3 5/8 x 6 1/2 in
US Std Fanfold 14 7/8 x 11 in
German Std Fanfold 8 1/2 x 12 in
German Legal Fanfold 8 1/2 x 13 in
Fax paper 8.64 x 11 in or 215 mm
If the Create faxable image box is checked, only Fax and Legal paper sizes will be available. As
a result, saved images can be faxed.
268
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
When landscape mode is selected this will rotate the generated landscape image 90 degrees so it can be
printed. Also, this option is selected automatically when the Create Faxable Image setting is checked.
204 x 98 DPI
204 x 196 DPI
200x200 DPI
The Driver also supports variable dot per inch (DPI) graphic resolution that can range from 50
DPI to 1500 DPI.
Please Note:
For faxing, when selecting resolution, remember that increased resolution slows down
transmission speed, while lower resolutions increase throughput at the cost of image quality.
Horizontal Resolution
270
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
Shows the horizontal resolution setting. Also, when Custom resolution is selected, the required
value can be entered.
Vertical Resolution
Shows the vertical resolution setting. Also, when Custom resolution is selected the required value
can be entered.
271
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
JPEG
JPEG L*a*b
Microsoft DIB (BMP)
TIFF Uncompressed
TIFF Group 3 1D
TIFF Group 3 1D No EOL
TIFF Group 3 2D
TIFF Group 4
TIFF Packed
TIFF LZW
TIFF JPEG
TIFF Group 3 1D
PCX Image Format
Intel DCX Image Format
CALS
RAW CCITT TIFF Group 3 1D
RAW CCITT TIFF Group 3 1D No EOL
RAW CCITT TIFF Group 3 2D
RAW CCITT TIFF Group 4
Extended Metafile
IBM MRR
Color Depth
The color depth setting for the generated image. The value can be 1 bit, 8 bits, 8 bits grayscale and 24
bits.
The file types shown in the File Format combo box depends on this value. The user can only select
from file types compatible with the current color depth setting. For example: if 1 bit is selected, the
JPEG file type will not be shown.
273
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
Options
Create a multi page image
When this button is checked the driver will save every printed page in one image file. If it is
unchecked all the pages printed will be generated in separate files.
NOTE: This option is only supported by the TIFF (any type of TIFF) and DCX file formats.
Disable image
Check this option to disable the image file generation setting of the driver. This can be useful when the
Write text file is checked for text output and the image file is not needed. As a result, the driver will
only generate a text file, no image files will be generated.
Mail Merge
When this checkbox is checked, the driver will recognize special character sequences in the
printed text to extract some of the information in a text file or to force the driver to start
generating a new image file. This feature is useful when generating multi-page TIFF files from a
large document using a custom printing application.
The recognized character sequences all start with two # characters. Most of these commands
will cause the driver to remove or alter the printed text and write it in the merged output file in
text format. This file will have the same filename as the group file, with the MRG extension. The
actual name of this file will be written in the group file in the following format:
Merge Output=c:\aaaa1000.mrg
The recognized command sequences are as follows:
##~~
Lines starting with these four characters and ending with ~~ will not be printed,
but written to the merged output file. For example, if the following string is sent
to the driver:
##~~ Phone number=6031234321~~
there will be an empty line printed in the output image file and the following line
will be added to the merged output file:
Phone number=6031234321 .
##**
Lines starting with these four characters and ending with ** will be partially
printed and also written to the merged output file. If the string enclosed by the
** marks contains an equation mark, the characters after the equation mark will
be printed. Otherwise the whole string between the asterisks will be printed.
Every character between the asterisks will be written to the merged output file.
For example, if the following string is printed with the driver:
##** Adressee=Company Name**
the following will be written to the merged output file:
Adressee=Company Name
and the following line will be printed to the output image file:
Company Name
All of the above command lines must be printed as one continuous string from left to right. If they
are printed one part at a time using several separate printing function calls, ( first printing ##~~
and then the rest of the line ) the driver may not be able to correctly recognize them.
The mail merge file will also contain page delimiter information to mark where the new page is
started. The page delimiter is an empty line, the Page 1: text (where the number is the current
page number) and another empty line :
Page 1:
275
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
Page 2:
Page 3:
This information will appear in the Mail Merge file even is there is no mail merge information in
that particular the page.
TIFF Options
All of the following settings are only available for TIFF files.
If this box is checked, the driver will set the page number tag of every page in the output TIFF
file.
Photo Quality
The Photo Quality option enables or disables the dithering of the Black Ice driver. When Photo
Quality is enabled, five high quality filters become accessible. Digital half-toning, also referred to
as spatial dithering, produces the illusion of continuous-tone pictures on media that is only
capable of displaying binary picture elements, for example: fax machines and most printers.
Floyd-Steinberg and Jarvis-Judice-Ninke are the text book filters. The Smooth, Sharp, and
Stucki filters are less known, but produce better quality output. Floyd-Steinberg is the default
setting.
Intesity
The photo quality program group also contains a scroll bar that lets you control the intensity of the
output image. The lower the Intensity value is, the darker the output image will be.
277
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
278
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
29. Use this prefix and extension: the output filename will be generated from random
characters. The first three characters will be the characters specified in the Filename
Prefix edit box and random numbers will be added.
NOTE: Only the first 3 characters from the Filename Prefix field will be used, if it is
longer the string will be truncated.
30. Prefix and extension from the registry: The file name prefix and the extension will be
read from the specified registry key. The registry path must be under the
HKEY_LOCAL_MACHINE or HKEY_CURRENT_USER root key. Use the File
Name Prefix value name for the file prefix and the File Name extension value name for
the extension.
279
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
31. Prefix and extension from the INI file: In this case the filename and the prefix will be
read from the specified INI file. The driver will search in the INI file for a section width
the printer name. Use the File Name Prefix key for the file prefix and the File Name
extension key for the extension.
You can search for an existing INI file, create a new one or edit the selected file using the
browse [] and edit [Edit] buttons.
[Black Ice Color Printer]
File name prefix=ABC
File name extension=TIFF
32. Exact filename: The printed file will be generated with the same name specified in the
Enter the filename edit box.
33. Exact filename from the registry: The filename will be read from the specified registry
key. The registry path must be under the HKEY_LOCAL_MACHINE or
HKEY_CURRENT_USER root key. The value name containing the filename must be
"File Name". The file name can be specified with the path or without.
280
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
34. Exact filename from the INI file: In this case the filename will be read from the specified
INI file. The driver will search the INI file for a section with the printers name. Use the
File Name key for the Filename. The file name can be specified with the path or
without.
[Black Ice Color Printer]
File name =C:\Output\page.tiff
35. Use the document name: The driver will use the document name the application passes
to the driver when generating the name of the output image.
Filename
Enter the INI file name here, the registry path, or the file name depending on the selected file name
generation method.
Filename Prefix
This is the prefix for the generated files if the Use this prefix and extension setting is selected for the
filename generation method. If the prefix is longer than 3 characters it will be truncated to the first 3
characters.
Filename Extension
This shows the current extension of the files. If the Use custom extension setting is selected the
default extension is changed with the string entered here.
Output directory
In this edit box you can specify the path where the driver will save the generated image files.
The printer driver can handle long directory names like C:\My Documents\Printed Files\
281
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
282
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
Check the Enable start application check box to enable the driver to launch an application or
uncheck it to disable the application launching.
If the specified application is already running, the printer driver will not start it again.
Application
The name of the application to be started. You must specify a valid application name and the full
pathname (location of the application exe) (for example: e:\fax\test.exe). The printer driver can
handle long file and directory names.
Pass Parameters
If this is option is checked, the driver will pass parameters to the application that is started. Please
refer to the Programming Interface section in this manual for more detail.
284
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
285
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
Paper Width
Paper width is shown in the selected unit type of 0.01 inch, 0.1 mm, or a pixel.
286
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
Paper Height
Paper height is shown in the selected unit type of 0.01 inch, 0.1 mm, or a pixel.
Units
The units are the type of measurement used to describe the paper width and height. The units can be
0.01 inch, 0.1 mm (mm = millimeter), or a pixel.
The VARIABLE paper size is specified by 0.01 inch or 0.1 mm. The formula to compute
between mm and pixels is mm = pixel x 254/DPI or pixel = mm x DPI/254.
The VARIABLE paper size specified in pixels can be any size in the boundary of the
Microsoft environment with a maximum width and height of 65535 x 65535 pixels. The DPI
information will be ignored.
Please Note:
The VARIABLE paper size specified in pixels is a special case. Normally, page size times DPI
is equal to the image size in pixels. With the VARIABLE paper size specified in pixels setting,
the image size in pixels is absolute and the DPI can be set arbitrarily. The VARIABLE paper size
specified in pixels setting can be very useful in web and graphic applications where the physical
size of the image is the preeminent factor.
Letter 8 1/2 x 11 in
Tabloid 11 x 17 in
Ledger 17 x 11 in
Legal 8 1/2 x 14 in
Statement 5 1/2 x 8 1/2 in
Executive 7 1/4 x 10 1/2 in
A3 297 x 420 mm
A4 210 x 297 mm
A4 Small 210 x 297 mm
A5 148 x 210 mm
287
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
B4 250 x 354
B5 182 x 257 mm
Folio 8 1/2 x 13 in
Quarto 215 x 275 mm
10x14 in
11x17 in
Note 8 1/2 x 11 in
Envelope #9 3 7/8 x 8 7/8
Envelope #10 4 1/8 x 9
Envelope #11 4 1/2 x 10 3/8
Envelope #12 4 \276 x 11
Envelope #14 5 x 11
C size sheet
D size sheet
E size sheet
Envelope DL 110 x 220mm
Envelope C5 162 x 229 mm
Envelope C3 324 x 458 mm
Envelope C4 229 x 324 mm
Envelope C6 114 x 162 mm
Envelope C65 114 x 229 mm
Envelope B4 250 x 353 mm
Envelope B5 176 x 250 mm
Envelope B6 176 x 125 mm
Envelope 110 x 230 mm
Envelope Monarch 3.875 x 7.5 in
6 3/4 Envelope 3 5/8 x 6 1/2 in
US Std Fanfold 14 7/8 x 11 in
German Std Fanfold 8 1/2 x 12 in
German Legal Fanfold 8 1/2 x 13 in
Fax paper 8.64 x 11 in or 215 mm
If the Create faxable image box is checked, only Fax and Legal paper sizes will be available. As
a result, saved images can be faxed.
288
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
Available resolutions are listed in the Graphics Resolution window. These modes are as
follows:
204 x 98 DPI
204 x 196 DPI
200x200 DPI
The Driver also supports variable dot per inch (DPI) graphic resolution that can range from 50
DPI to 1500 DPI.
Please Note:
For faxing, when selecting resolution, remember that increased resolution slows down
transmission speed, while lower resolutions increase throughput at the cost of image quality.
Horizontal Resolution
Shows the horizontal resolution setting. Also, when Custom resolution is selected, the required
value can be entered.
Vertical Resolution
Shows the vertical resolution setting. Also, when Custom resolution is selected the required value
can be entered.
290
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
291
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
Options
292
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
Disable image
Check this option to disable the image file generation setting of the driver. This can be useful when the
Write text file radio button is checked for text output and the image file is not needed. As a result, the
driver will only generate a text file, no image files will be generated.
Mail Merge
When this checkbox is checked, the driver will recognize special character sequences in the
printed text to extract some of the information in a text file or to force the driver to start
generating a new image file. This feature is useful when generating multi-page TIFF files from a
large document using a custom printing application.
293
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
The recognized character sequences all start with two # characters. Most of these commands
will cause the driver to remove or alter the printed text and write it in the merged output file in
text format. This file will have the same filename as the group file, with the MRG extension. The
actual name of this file will be written in the group file in the following format:
Merge Output=c:\aaaa1000.mrg
The recognized command sequences are as follows:
##~~
Lines starting with these four characters and ending with ~~ will not be printed,
but written to the merged output file. For example, if the following string is sent
to the driver:
##~~ Phone number=6031234321~~
there will be an empty line printed in the output image file and the following line
will be added to the merged output file:
Phone number=6031234321 .
##**
Lines starting with these four characters and ending with ** will be partially
printed and also written to the merged output file. If the string enclosed by the
** marks contains an equation mark, the characters after the equation mark will
be printed. Otherwise the whole string between the asterisks will be printed.
Every character between the asterisks will be written to the merged output file.
For example, if the following string is printed with the driver:
##** Adressee=Company Name**
the following will be written to the merged output file:
Adressee=Company Name
and the following line will be printed to the output image file:
Company Name
All of the above command lines must be printed as one continuous string from left to right. If they
are printed one part at a time using several separate printing function calls, ( first printing ##~~
and then the rest of the line ) the driver may not be able to correctly recognize them.
The mail merge file will also contain page delimiter information to mark where the new page is
started. The page delimiter is an empty line, the Page 1: text (where the number is the current
page number) and another empty line :
Page 1:
Page 2:
Page 3:
294
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
This information will appear in the Mail Merge file even is there is no mail merge information in
that particular the page.
295
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
296
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
36. Use this prefix and extension: the output filename will be generated from random
characters. The first three characters will be the characters specified in the Filename
Prefix edit box and random numbers will be added.
NOTE: Only the first 3 characters from the Filename Prefix field will be used, if it is
longer the string will be truncated.
37. Prefix and extension from the registry: The file name prefix and the extension will be
read from the specified registry key. The registry path must be under the
HKEY_LOCAL_MACHINE or HKEY_CURRENT_USER root key. Use the File
Name Prefix value name for the file prefix and the File Name extension value name for
the extension.
297
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
38. Prefix and extension from the INI file: In this case the filename and the prefix will be
read from the specified INI file. The driver will search in the INI file for a section width
the printer name. Use the File Name Prefix key for the file prefix and the File Name
extension key for the extension.
You can search for an existing INI file, create a new one or edit the selected file using the
browse [] and edit [Edit] buttons.
[Black Ice Color Printer]
File name prefix=ABC
File name extension=TIFF
39. Exact filename: The printed file will be generated with the same name specified in the
Enter the filename edit box.
40. Exact filename from the registry: The filename will be read from the specified registry
key. The registry path must be under the HKEY_LOCAL_MACHINE or
HKEY_CURRENT_USER root key. The value name containing the filename must be
"File Name". The file name can be specified with the path or without.
298
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
41. Exact filename from the INI file: In this case the filename will be read from the specified
INI file. The driver will search the INI file for a section with the printers name. Use the
File Name key for the Filename. The file name can be specified with the path or
without.
[Black Ice Color Printer]
File name =C:\Output\page.tiff
42. Use the document name: The driver will use the document name the application passes
to the driver when generating the name of the output image.
Filename
Enter the INI file name here, the registry path, or the file name depending on the selected file name
generation method.
Filename Prefix
This is the prefix for the generated files if the Use this prefix and extension setting is selected for the
filename generation method. If the prefix is longer than 3 characters it will be truncated to the first 3
characters.
Filename Extension
This shows the current extension of the files. If the Use custom extension setting is selected the
default extension is changed with the string entered here.
Output directory
In this edit box you can specify the path where the driver will save the generated image files.
The printer driver can handle long directory names like C:\My Documents\Printed Files\
299
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
300
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
generated image files. Please refer to the Messaging Interface, Programming Interface and
Group Files Description section in this manual for more detail.
Check the Enable start application check box to enable the driver to launch an application or
uncheck it to disable the application launching.
If the specified application is already running, the printer driver will not start it again.
Application
The name of the application to be started. You must specify a valid application name and the full
pathname (location of the application exe) (for example: e:\fax\test.exe). The printer driver can
handle long file and directory names.
Pass Parameters
If this is option is checked, the driver will pass parameters to the application that is started. Please
refer to the Programming Interface section in this manual for more detail.
302
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
Windows DEVMODE
The Black Ice Printer Drivers are using a BlackIceDEVMODE data structure based on the default
Windows DEVMODE data structure:
typedef struct _devicemode {
BCHAR dmDeviceName[CCHDEVICENAME];
WORD
dmSpecVersion;
WORD
dmDriverVersion;
WORD
dmSize;
WORD
dmDriverExtra;
DWORD dmFields;
union {
struct {
short dmOrientation;
short dmPaperSize;
short dmPaperLength;
short dmPaperWidth;
};
POINTL dmPosition;
};
short dmScale;
short dmCopies;
short dmDefaultSource;
short dmPrintQuality;
short dmColor;
short dmDuplex;
short dmYResolution;
short dmTTOption;
short dmCollate;
BCHAR dmFormName[CCHFORMNAME];
WORD
dmLogPixels;
303
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
DWORD dmBitsPerPel;
DWORD dmPelsWidth;
DWORD dmPelsHeight;
union {
DWORD dmDisplayFlags;
DWORD dmNup;
}
DWORD dmDisplayFrequency;
DWORD dmICMMethod;
DWORD dmICMIntent;
DWORD dmMediaType;
DWORD dmDitherType;
DWORD dmReserved1;
DWORD dmReserved2;
} DEVMODE;
Structure member
dmOrientation
304
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
DM_PAPERSIZE
DM_PAPERLENGTH
DM_PAPERWIDTH
DM_POSITION
DM_SCALE
DM_COPIES
DM_DEFAULTSOURCE
DM_PRINTQUALITY
DM_COLOR
DM_DUPLEX
DM_YRESOLUTION
DM_TTOPTION
DM_COLLATE
DM_FORMNAME
DM_LOGPIXELS
DM_BITSPERPEL
DM_PELSWIDTH
DM_PELSHEIGHT
DM_DISPLAYFLAGS
DM_NUP
DM_DISPLAYFREQUENCY
DM_ICMMETHOD
DM_ICMINTENT
DM_MEDIATYPE
DM_DITHERTYPE
DM_PANNINGWIDTH
DM_PANNINGHEIGHT
dmPaperSize
dmPaperLength
dmPaperWidth
dmPosition
dmScale
dmCopies
dmDefaultSource
dmPrintQuality
dmColor
dmDuplex
dmYResolution
dmTTOption
dmCollate
dmFormName
dmLogPixels
dmBitsPerPel
dmPelsWidth
dmPelsHeight
dmDisplayFlags
dmNup
dmDisplayFrequency
dmICMMethod
dmICMIntent
dmMediaType
dmDitherType
Windows 2000 or later: dmPanningWidth
Windows 2000 or later: dmPanningHeight
dmOrientation
For printer devices only, selects the orientation of the paper. This member can be either
DMORIENT_PORTRAIT (1) or DMORIENT_LANDSCAPE (2).
dmPaperSize
For printer devices only, selects the size of the paper to print on. This member can be set
to zero if the length and width of the paper are both set by the dmPaperLength and
dmPaperWidth members. Otherwise, the dmPaperSize member can be set to one of the
following predefined values.
#define DMPAPER_FAX
#define DMPAPER_VARIABLE
#define DMPAPER_VARIABLE_PIXEL
#define DMPAPER_LETTER
#define DMPAPER_LETTERSMALL
DMPAPER_USER+1
DMPAPER_USER+2
DMPAPER_USER+3
1
2
/* Letter 8 1/2 x 11 in
/* Letter Small 8 1/2 x 11 in
305
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
*/
*/
#define
#define
#define
#define
#define
#define
#define
#define
#define
#define
#define
#define
#define
#define
#define
#define
#define
#define
#define
#define
#define
#define
#define
#define
#define
#define
#define
#define
#define
#define
#define
#define
#define
#define
#define
#define
#define
#define
#define
#define
#define
#define
#define
#define
#define
#define
#define
#define
#define
#define
#define
#define
#define
#define
#define
#define
#define
#define
#define
#define
DMPAPER_TABLOID
3
DMPAPER_LEDGER
4
DMPAPER_LEGAL
5
DMPAPER_STATEMENT
6
DMPAPER_EXECUTIVE
7
DMPAPER_A3
8
DMPAPER_A4
9
DMPAPER_A4SMALL
10
DMPAPER_A5
11
DMPAPER_B4
12
DMPAPER_B5
13
DMPAPER_FOLIO
14
DMPAPER_QUARTO
15
DMPAPER_10X14
16
DMPAPER_11X17
17
DMPAPER_NOTE
18
DMPAPER_ENV_9
19
DMPAPER_ENV_10
20
DMPAPER_ENV_11
21
DMPAPER_ENV_12
22
DMPAPER_ENV_14
23
DMPAPER_CSHEET
24
DMPAPER_DSHEET
25
DMPAPER_ESHEET
26
DMPAPER_ENV_DL
27
DMPAPER_ENV_C5
28
DMPAPER_ENV_C3
29
DMPAPER_ENV_C4
30
DMPAPER_ENV_C6
31
DMPAPER_ENV_C65
32
DMPAPER_ENV_B4
33
DMPAPER_ENV_B5
34
DMPAPER_ENV_B6
35
DMPAPER_ENV_ITALY
36
DMPAPER_ENV_MONARCH
37
DMPAPER_ENV_PERSONAL
38
DMPAPER_FANFOLD_US
39
DMPAPER_FANFOLD_STD_GERMAN 40
DMPAPER_FANFOLD_LGL_GERMAN 41
DMPAPER_ISO_B4
42
DMPAPER_JAPANESE_POSTCARD
43
DMPAPER_9X11
44
DMPAPER_10X11
45
DMPAPER_15X11
46
DMPAPER_ENV_INVITE
47
DMPAPER_RESERVED_48
48
DMPAPER_RESERVED_49
49
DMPAPER_LETTER_EXTRA
50
DMPAPER_LEGAL_EXTRA
51
DMPAPER_TABLOID_EXTRA
52
DMPAPER_A4_EXTRA
53
DMPAPER_LETTER_TRANSVERSE
54
DMPAPER_A4_TRANSVERSE
55
DMPAPER_LETTER_EXTRA_TRANSVERSE
DMPAPER_A_PLUS
57
DMPAPER_B_PLUS
58
DMPAPER_LETTER_PLUS
59
DMPAPER_A4_PLUS
60
DMPAPER_A5_TRANSVERSE
61
DMPAPER_B5_TRANSVERSE
62
/*
/*
/*
/*
/*
/*
/*
/*
/*
/*
/*
/*
/*
/*
/*
/*
/*
/*
/*
/*
/*
/*
/*
/*
/*
/*
/*
/*
/*
/*
/*
/*
/*
/*
/*
/*
/*
/*
/*
/*
/*
/*
/*
/*
/*
/*
/*
/*
/*
/*
/*
/*
/*
56
/*
/*
/*
/*
/*
/*
Tabloid 11 x 17 in
Ledger 17 x 11 in
Legal 8 1/2 x 14 in
Statement 5 1/2 x 8 1/2 in
Executive 7 1/4 x 10 1/2 in
A3 297 x 420 mm
A4 210 x 297 mm
A4 Small 210 x 297 mm
A5 148 x 210 mm
B4 (JIS) 257 x 364 mm
B5 (JIS) 182 x 257 mm
Folio 8 1/2 x 13 in
Quarto 215 x 275 mm
10 x 14 in
11 x 17 in
Note 8 1/2 x 11 in
Envelope #9 3 7/8 x 8 7/8 in
Envelope #10 4 1/8 x 9 1/2 in
Envelope #11 4 1/2 x 10 3/8 in
Envelope #12 4 3/4 x 11 in
Envelope #14 5 x 11 1/2 in
C size sheet
D size sheet
E size sheet
Envelope DL 110 x 220 mm
Envelope C5 162 x 229 mm
Envelope C3 324 x 458 mm
Envelope C4 229 x 324 mm
Envelope C6 114 x 162 mm
Envelope C65 114 x 229 mm
Envelope B4 250 x 353 mm
Envelope B5 176 x 250 mm
Envelope B6 176 x 125 mm
Envelope 110 x 230 mm
Envelope Monarch 3 7/8 x 7 1/2 in
6 3/4 Envelope 3 5/8 x 6 1/2 in
US Standard Fanfold 14 7/8 x 11 in
German Standard Fanfold 8 1/2 x 12
German Legal Fanfold 8 1/2 x 13 in
B4 (ISO) 250 x 353 mm
Japanese Postcard 100 x 148 mm
9 x 11 in
10 x 11 in
15 x 11 in
Envelope Invite 220 x 220 mm
RESERVED--DO NOT USE
RESERVED--DO NOT USE
Letter Extra 9 1/2 x 12 in
Legal Extra 9 1/2 x 15 in
Tabloid Extra 11.69 x 18 in
A4 Extra 9.27 x 12.69 in
Letter Transverse 8 1/2 x 11 in
A4 Transverse 210 x 297 mm
/*Letter Extra Transverse 9 1/2x12
SuperA/SuperA/A4 227 x 356 mm
SuperB/SuperB/A3 305 x 487 mm
Letter Plus 8.5 x 12.69 in
A4 Plus 210 x 330 mm
A5 Transverse 148 x 210 mm
B5 (JIS) Transverse 182 x 257 mm
306
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
in */
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
in*/
*/
*/
*/
*/
*/
*/
#define DMPAPER_A3_EXTRA
#define DMPAPER_A5_EXTRA
63
64
#define DMPAPER_A0
#define DMPAPER_A1
#define
#define
#define
#define
#define
#define
#define
#define
#define
#define
#define
#define
DMPAPER_USER+6
DMPAPER_USER+7
DMPAPER_USER+8
DMPAPER_USER+9
DMPAPER_USER+11
DMPAPER_USER+12
DMPAPER_USER+13
DMPAPER_USER+14
DMPAPER_USER+15
DMPAPER_USER+16
DMPAPER_USER+17
DMPAPER_USER+18
DMPAPER_ASHEET
DMPAPER_BSHEET
DMPAPER_FSHEET
DMPAPER_GSHEET
DMPAPER_HSHEET
DMPAPER_JSHEET
DMPAPER_KSHEET
DMPAPER_AASHEET
DMPAPER_BASHEET
DMPAPER_CASHEET
DMPAPER_DASHEET
DMPAPER_EASHEET
/*
/*
/*
/*
/*
/*
/*
/*
/*
/*
/*
/*
*/
*/
*/
*/
mm
mm
mm
mm
mm
mm
mm
mm
mm
mm
mm
mm
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
dmPaperLength
For printer devices only, this overrides the length of the paper specified by the
dmPaperSize member, either for custom paper sizes or for devices such as dot-matrix
printers that can print on a page of arbitrary length. These values, along with all other
values in this structure that specify a physical length, are in tenths of a millimeter.
dmPaperWidth
For printer devices only, this overrides the width of the paper specified by the
dmPaperSize member.
dmPosition
Windows 95/98/ME, Windows 2000/XP or later: For display devices only, a POINTL
structure that indicates the positional coordinates of the display device in reference to the
desktop area. The primary display device is always located at coordinates (0,0).
dmScale
Specifies the factor by which the printed output is to be scaled. The apparent page size is
scaled from the physical page size by a factor of dmScale/100. For example, a letter-sized
page with a dmScale value of 50 will contain as much data as a 17 by 22 inch page,
because the output text and graphics would be half their original height and width.
dmCopies
Selects the number of copies printed if the device supports multiple-page copies.
dmDefaultSource
Specifies the paper source. To retrieve a list of the available paper sources for a printer,
use the DeviceCapabilities function with the DC_BINS flag.
This member can be one of the following values, or it can be a device-specific value
greater than or equal to DMBIN_USER.
DMBIN_ONLYONE
DMBIN_LOWER
DMBIN_MIDDLE
DMBIN_MANUAL
DMBIN_ENVELOPE
307
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
DMBIN_ENVMANUAL
DMBIN_AUTO
DMBIN_TRACTOR
DMBIN_SMALLFMT
DMBIN_LARGEFMT
DMBIN_LARGECAPACITY
DMBIN_CASSETTE
DMBIN_FORMSOURCE
dmPrintQuality
Specifies the printer resolution. There are four predefined device-independent values:
DMRES_HIGH
DMRES_MEDIUM
DMRES_LOW
DMRES_DRAFT
If a positive value is specified, it specifies the number of dots per inch (DPI) and is
therefore device dependent.
dmColor
Switches between color and monochrome on color printers. The following values are
possible:
DMCOLOR_COLOR
DMCOLOR_MONOCHROME
dmDuplex
Selects duplex or double-sided printing for printers capable of duplex printing. The
following values are possible:
Value
DMDUP_SIMPLEX
DMDUP_HORIZONTAL
DMDUP_VERTICAL
Meaning
Normal (non-duplex) printing.
Short-edge binding, that is, the long edge of
the page is horizontal.
Long-edge binding, that is, the long edge of
the page is vertical.
dmYResolution
Specifies the y-resolution, in dots per inch, of the printer. If the printer initializes this
member, the dmPrintQuality member specifies the x-resolution, in dots per inch of the
printer.
dmTTOption
Specifies how TrueType fonts should be printed. This member can be one of the
following values.
308
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
Value
DMTT_BITMAP
Meaning
Prints TrueType fonts as graphics. This is the default
action for dot-matrix printers.
DMTT_DOWNLOAD
Downloads TrueType fonts as soft fonts. This is the
default action for Hewlett-Packard printers that use
Printer Control Language (PCL).
DMTT_DOWNLOAD_OUTLINE Window 95/98, Windows NT 4.0, and later:
Downloads TrueType fonts as outline soft fonts.
DMTT_SUBDEV
Substitutes device fonts for TrueType fonts. This is the
default action for PostScript printers.
dmUnusedPadding
Used to align the structure to a DWORD boundary. This should not be used or
referenced. Its name and usage is reserved and can change in future releases.
dmCollate
Specifies whether collation should be used when printing multiple copies. (This member is
ignored unless the printer driver indicates support for collation by setting the dmFields
member to DM_COLLATE.) This member can be be one of the following values.
Value
Meaning
DMCOLLATE_TRUE Collate when printing multiple copies.
DMCOLLATE_FALSE Do not collate when printing multiple copies.
Using DMCOLLATE_TRUE provides faster, more efficient output for collation, since the
data is sent to the device driver just once, no matter how many copies are required. The
printer is told to simply print the page again.
dmFormName
Windows XP/W2K and NT or later: Specifies the name of the form to use; for example,
"Letter" or "Legal". A complete set of names can be retrieved by using the EnumForms
function.
Windows 95: Printer drivers do not use this member.
dmLogPixels
Specifies the number of pixels per logical inch. Printer drivers do not use this member.
dmBitsPerPel
Specifies the color resolution, in bits per pixel, of the display device (for example: 4 bits
for 16 colors, 8 bits for 256 colors, or 16 bits for 65,536 colors). For example, display
drivers use this member in the ChangeDisplaySettings function. Printer drivers do not
use this member.
dmPelsWidth
309
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
Specifies the width, in pixels, of the visible device surface. For example, display drivers
use this member in the ChangeDisplaySettings function. Printer drivers do not use this
member.
dmPelsHeight
Specifies the height, in pixels, of the visible device surface. For example, display drivers
use this member in the ChangeDisplaySettings function. Printer drivers do not use this
member.
dmDisplayFlags
Specifies the device's display mode. This member can be a combination of the following
values.
Value
DM_GRAYSCALE
DM_INTERLACED
Meaning
Specifies that the display is a non-color device. If this flag is not
set, color is assumed.
Specifies that the display mode is interlaced. If the flag is not set,
non-interlaced is assumed.
For example, display drivers use this member in the ChangeDisplaySettings function.
Printer drivers do not use this member.
dmNup
Specifies where the NUP is done. It can be one of the following.
Value
DMNUP_SYSTEM
DMNUP_ONEUP
Meaning
The print spooler does the NUP.
The application does the NUP.
dmDisplayFrequency
Specifies the frequency, in hertz (cycles per second), of the display device in a particular
mode. This value is also known as the display device's vertical refresh rate. Display drivers
use this member. For example, it is used in the ChangeDisplaySettings function. Printer
drivers do not use this member.
When you call the EnumDisplaySettings function, the dmDisplayFrequency member
may return with a value of 0 or 1. These values represent the display hardware's default
refresh rate. This default rate is typically set by switches on a display card or computer
motherboard or by a configuration program that does not use Win32 display functions
such as ChangeDisplaySettings.
dmICMMethod
Windows 95/98/ME and later; Windows XP/W2K and NT or later:
Specifies how ICM is handled. For a non-ICM application, this member determines if ICM
is enabled or disabled. For ICM applications, the system examines this member to
determine how to handle ICM support. This member can be one of the following
310
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
Meaning
Specifies that ICM is disabled.
Specifies that ICM is handled by Windows.
Specifies that ICM is handled by the device driver.
Specifies that ICM is handled by the destination
device.
The printer driver must provide a user interface for setting this member. Most printer
drivers support only the DMICMMETHOD_SYSTEM or DMICMMETHOD_NONE
value. Drivers for PostScript printers support all values.
dmICMIntent
Windows 95/98/ME, Windows XP/W2K and NT or later:
Specifies which color matching method or intent should be used by default. This member
is primarily for non-ICM applications. ICM applications can establish intents by using the
ICM functions. This member can be one of the following predefined values or a driver
defined value greater than or equal to the value of DMICM_USER.
Value
Meaning
DMICM_ABS_COLORIMETRIC Color matching should optimize to match the exact
color requested without white point mapping. This
value is most appropriate for use with proofing.
DMICM_COLORMETRIC
Color matching should optimize to match the exact
color requested. This value is most appropriate for use
with business logos or other images when an exact
color match is desired.
DMICM_CONTRAST
Color matching should optimize for color contrast.
This value is the most appropriate choice for scanned
or photographic images when dithering is desired.
DMICM_SATURATE
Color matching should optimize for color saturation.
This value is the most appropriate choice for business
graphs when dithering is not desired.
dmMediaType
Windows 95/98/ME, Windows XP/W2K and NT or later:
Specifies the type of media being printed on. The member can be one of the following
predefined values or a driver-defined value greater than or equal to the value of
DMMEDIA_USER.
Value
Meaning
311
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
DMMEDIA_STANDARD
Plain paper.
DMMEDIA_GLOSSY
Glossy paper.
DMMEDIA_TRANSPARENCY Transparent film.
Whistler:
To retrieve a list of the available media types for a printer, use the DeviceCapabilities
function with the DC_MEDIATYPES flag.
dmDitherType
Windows 95/98/ME, Windows XP/W2K and NT or later:
Specifies how dithering is to be done. The member can be one of the following predefined
values, or a driver-defined value greater than or equal to the value of
DMDITHER_USER.
Value
DMDITHER_NONE
DMDITHER_COARSE
DMDITHER_FINE
DMDITHER_LINEART
Meaning
No dithering.
Dithering with a coarse brush.
Dithering with a fine brush.
Line art dithering, a special dithering method that
produces well defined borders between black, white,
and gray scalings. It is not suitable for images that
include continuous graduations in intensisty and hue,
such as scanned photographs.
DMDITHER_ERRORDIFFUSION Windows 95/98/ME: Dithering in which an
algorithm is used to spread, or diffuse, the error of
approximating a specified color over adjacent pixels.
In contrast, DMDITHER_COARSE,
DMDITHER_FINE, and DMDITHER_LINEART
use patterned half toning to approximate a color..
DMDITHER_GRAYSCALE
Device does gray scaling.
dmReserved1
Windows 95/98/ME, Windows XP/W2K and NT or later: Not used; must be zero.
dmReserved2
Windows 95/98/ME, Windows XP/W2K and NT or later: Not used; must be zero.
312
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
The BlackIceDEVMODE data structure contains the Windows DEVMODE and additional members:
On Windows XP/W2K and NT the application that uses this structure should set
the structure member alignment to 1 in the project settings and the following
value should be defined in the project: _WIN32_WINNT=0x0400. Without this,
the size of the of the BlackIceDEVMODE structure will not be correct and some
structure members will be shifted.
The BlackIceDEVMODE is defined in the 'devmode.h' file located in the Resource Toolkit under the
Install\InstallDll\ directory. (by default C:\Program Files\Black Ice Software, Inc\TIFF Printer Driver
Resource Toolkit\Install\InstallDLL\devmode.h)
Access the members of the BlackIceDEVMODE through the functions defined in the devmode.cpp file,
located in the RTK in the Install\InstallDll\ directory.
Example:
The InterfaceName member of the devmode can be accessed through the
DEVMODE_GetInterfaceName(BlackIceDEVMODE* pDevMode) and
DEVMODE_SetInterfaceName(BlackIceDEVMODE* pDevMode, LPCTSTR InterfaceName);
TCHAR InterfaceName[MAX_PATH]:
A TCHAR string type member.
The InterfaceName member stores the name of the messaging interface.
For Windows 95/98/ME is the name of the Windows Message broadcasted by
the driver.
Access functions:
LPCTSTR
DEVMODE_GetInterfaceName(BlackIceDEVMODE* pDevMode);
void
DEVMODE_SetInterfaceName(BlackIceDEVMODE* pDevMode, LPCTSTR
InterfaceName);
DM;
BliceMode;
Format;
ColorMode;
FAXheader;
LossRatio;
Dithering;
Brightness;
PaperWidthInPixels;
PaperHeightInPixels;
ApplicationPath[MAX_PATH];
LaunchFlags;
FileNameGenerationFlags;
OutputDirectory[MAX_PATH];
ImageFileName[MAX_PATH];
313
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
TCHAR
TCHAR
TCHAR
TCHAR
TCHAR
TCHAR
TCHAR
DWORD
DWORD
TCHAR
TCHAR
}BlackIceDEVMODE,
FileNamePrefix[MAX_PREFIX_LENGTH+1];
FileExtension[MAX_FILE_EXTENSION_LENGTH+1];
InterfaceName[MAX_PATH];
INIFileName[MAX_PATH];
TIFFDLLName[MAX_PATH];
JPEGDLLName[MAX_PATH];
ResourceDLLName[MAX_PATH];
SessionID;
UserFlags;
szUser1[128];
szUser2[128];
*LPBlackIceDEVMODE;
DEVMODE_IsInternetTiffFormatEnabled(BlackIceDEVMODE* pDevMode);
DEVMODE_EnableInternetTiffFormat(BlackIceDEVMODE* pDevMode);
DEVMODE_DisableInternetTiffFormat(BlackIceDEVMODE* pDevMode);
DEVMODE_IsPageNumberingEnabled(BlackIceDEVMODE* pDevMode);
DEVMODE_EnablePageNumbering(BlackIceDEVMODE* pDevMode);
DEVMODE_DisablePageNumbering(BlackIceDEVMODE* pDevMode);
DEVMODE_IsReverseBitOrderEnabled(BlackIceDEVMODE* pDevMode);
DEVMODE_EnableReverseBitOrder(BlackIceDEVMODE* pDevMode);
DEVMODE_DisableReverseBitOrder(BlackIceDEVMODE* pDevMode);
DEVMODE_IsAppendImageEnabled(BlackIceDEVMODE* pDevMode);
DEVMODE_EnableAppendImage(BlackIceDEVMODE* pDevMode);
DEVMODE_DisableAppendImage(BlackIceDEVMODE* pDevMode);
DEVMODE_IsWriteTextEnabled(BlackIceDEVMODE* pDevMode);
DEVMODE_EnableWriteText(BlackIceDEVMODE* pDevMode);
DEVMODE_DisableWriteText(BlackIceDEVMODE* pDevMode);
DEVMODE_IsMailMergeEnabled(BlackIceDEVMODE* pDevMode);
DEVMODE_EnableMailMerge(BlackIceDEVMODE* pDevMode);
DEVMODE_DisableMailMerge(BlackIceDEVMODE* pDevMode);
DEVMODE_IsAdvancedTextEnabled(BlackIceDEVMODE* pDevMode);
DEVMODE_EnableAdvancedText(BlackIceDEVMODE* pDevMode);
DEVMODE_DisableAdvancedText(BlackIceDEVMODE* pDevMode);
DEVMODE_IsImageDisabled(BlackIceDEVMODE* pDevMode);
DEVMODE_EnableDisableImage(BlackIceDEVMODE* pDevMode);
DEVMODE_DisableDisableImage(BlackIceDEVMODE* pDevMode);
315
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
DEVMODE_IsGroupFileDisabled(BlackIceDEVMODE* pDevMode);
DEVMODE_DisableGroupFile(BlackIceDEVMODE* pDevMode);
DEVMODE_EnableGroupFile(BlackIceDEVMODE* pDevMode);
DEVMODE_IsMessagingInterfaceEnabled(BlackIceDEVMODE* pDevMode);
DEVMODE_EnableMessagingInterface(BlackIceDEVMODE* pDevMode);
DEVMODE_DisableMessagingInterface(BlackIceDEVMODE* pDevMode);
BLF_ENABLETIFFDLL: If set the using of the TIFF32.DLL is enabled. Can be set only
programmatically.
Access functions:
BOOL
void
void
DEVMODE_IsTiffDllEnabled(BlackIceDEVMODE* pDevMode);
DEVMODE_EnableTiffDll(BlackIceDEVMODE* pDevMode);
DEVMODE_DisableTiffDll(BlackIceDEVMODE* pDevMode);
DEVMODE_IsFaxOutputEnabled(BlackIceDEVMODE* pDevMode);
DEVMODE_EnableFaxOutput(BlackIceDEVMODE* pDevMode);
DEVMODE_DisableFaxOutput(BlackIceDEVMODE* pDevMode);
DEVMODE_IsEasternCharSupportEnabled(BlackIceDEVMODE* pDevMode);
DEVMODE_EnableEasternCharSupport(BlackIceDEVMODE* pDevMode);
DEVMODE_DisableEasternCharSupport(BlackIceDEVMODE* pDevMode);
DEVMODE_IsRotatePaperEnabled(BlackIceDEVMODE* pDevMode);
DEVMODE_EnableRotatePaper(BlackIceDEVMODE* pDevMode);
DEVMODE_DisableRotatePaper(BlackIceDEVMODE* pDevMode);
DEVMODE_IsDeleteGroupFileEnabled(BlackIceDEVMODE* pDevMode);
DEVMODE_EnableDeleteGroupFile(BlackIceDEVMODE* pDevMode);
DEVMODE_DisableDeleteGroupFile(BlackIceDEVMODE* pDevMode);
DEVMODE_IsKeepExistingFilesEnabled(BlackIceDEVMODE* pDevMode);
DEVMODE_EnableKeepExistingFiles(BlackIceDEVMODE* pDevMode);
316
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
void
DEVMODE_DisableKeepExistingFiles(BlackIceDEVMODE* pDevMode) ;
DEVMODE_IsAdvancedPaperSizeEnabled(BlackIceDEVMODE* pDevMode);
DEVMODE_EnableAdvancedPaperSize(BlackIceDEVMODE* pDevMode);
DEVMODE_DisableAdvancedPaperSize(BlackIceDEVMODE* pDevMode);
DEVMODE_IsCustomExtensionEnabled(BlackIceDEVMODE* pDevMode);
DEVMODE_EnableCustomExtension(BlackIceDEVMODE* pDevMode);
DEVMODE_DisableCustomExtension(BlackIceDEVMODE* pDevMode)
DWORD Format :
A DWORD type member.
Specifies the file format used by the driver. The available file formats are enumerated in
the devmode.h
enum TEFileFormats{ FFR_BMP,
FFR_PCX,
FFR_DCX,
FFR_TIFF_UNC,
FFR_TIFF_G31D,
FFR_TIFF_G31DNOEOL,
FFR_TIFF_G32D,
FFR_TIFF_G4,
FFR_TIFF_PACK,
FFR_TIFF_LZW,
FFR_TIFF_JPEG,
FFR_CALS,
FFR_RAW_G31D,
FFR_RAW_G31DNOEOL,
FFR_RAW_G32D,
FFR_RAW_G4,
FFR_JPEG,
FFR_JPEG_LAB,
FFR_EMF,
FFR_MMR,
FFR_END
};
Access functions:
DWORD DEVMODE_GetFileFormat(BlackIceDEVMODE* pDevMode);
void
DEVMODE_SetFileFormat(BlackIceDEVMODE* pDevMode, DWORD Format);
NOTE: In the Monochrome driver only the monochrome file formats are available, such as
TIFF. The Metafile driver creates only Enhanced Metafile Format (EMF).
DWORD ColorMode:
A DWORD type member.
Specifies the color depth used by the printer. The values are enumerated in the devmode.h
317
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
enum ColorMode {
BITS_1,
BITS_8GRAY,
BITS_8,
BITS_24,
BITS_END
};
Access functions:
DWORD DEVMODE_GetColorDepth(BlackIceDEVMODE* pDevMode);
void
DEVMODE_SetColorDepth(BlackIceDEVMODE* pDevMode, DWORD ColorDepth);
NOTE: In the Monochrome driver only the BITS_1 ColorMode is available. The Metafile
driver accepts only the BITS_24 value..
DWORD FAXheader:
A DWORD type member.
Specifies the height in pixels of the fax header.
Access functions:
DWORD DEVMODE_GetFaxHeader(BlackIceDEVMODE* pDevMode);
void
DEVMODE_SetFaxHeader(BlackIceDEVMODE* pDevMode, DWORD nPixels);
DWORD LossRatio:
A DWORD type member.
Specifies the loss ratio of the jpeg image.
Access functions:
DWORD DEVMODE_GetLossRatio(BlackIceDEVMODE* pDevMode);
void
DEVMODE_SetLossRatio(BlackIceDEVMODE* pDevMode, DWORD dwLossRatio);
DWORD Dithering:
A DWORD type member.
Specifies the dithering method for the monochrome image. The available values are
defined in the devmode.h
#define
#define
#define
#define
#define
#define
DITHER_NONE
DITHER_FS4
DITHER_JJN
DITHER_SMOOTH
DITHER_SHARP
DITHER_STUCKI
0
1
2
3
4
5
Access functions:
DWORD DEVMODE_GetDithering(BlackIceDEVMODE* pDevMode);
void
DEVMODE_SetDithering(BlackIceDEVMODE* pDevMode, DWORD dwDithering);
DWORD Brightness:
A DWORD type member.
Specifies the brightness value.
318
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
Access functions:
DWORD DEVMODE_GetBrightness(BlackIceDEVMODE* pDevMode);
void
DEVMODE_SetBrightness(BlackIceDEVMODE* pDevMode, DWORD dwBrightness);
DWORD PaperWidthInPixels:
A DWORD type member.
Specifies the Paper Width value in pixels.
Access functions:
DWORD DEVMODE_GetPageWidthInPixels(BlackIceDEVMODE* pDevMode);
void
DEVMODE_SetPaperWidthInPixel(BlackIceDEVMODE* pDevMode, DWORD nPixels);
DWORD PaperHeightInPixels:
A DWORD type member.
Specifies the Paper Width value in pixels.
Access functions:
DWORD DEVMODE_GetPageHeightInPixels(BlackIceDEVMODE* pDevMode);
void DEVMODE_SetPaperHeightInPixel(BlackIceDEVMODE* pDevMode, DWORD nPixels);
TCHAR ApplicationPath[MAX_PATH]:
A string type member.
Specifies the name and the path of the application to be started after printing.
Access functions:
LPCTSTR DEVMODE_GetApplicationPath(BlackIceDEVMODE* pDevMode);
void
DEVMODE_SetApplicationPath(BlackIceDEVMODE* pDevMode, LPCTSTR
ApplicationPath);
DWORD LaunchFlags :
A DWORD type member.
Each bit of LaunchFlags represents a flag used by the printer driver. If the bit is set the
value is TRUE, if it is not the value is FALSE. The flags and their values are the
following:
BLF_LAUNCHAPP
0x00000001
BLF_STARTBEFOREPRINT
0x00000002
BLF_PASSPARAMETERS
0x00000004
BLF_STARTNORMAL
0x00000008
BLF_STARTMINIMIZED
0x00000010
BLF_STARTHIDDEN
0x00000020
DEVMODE_IsStartApplicationEnabled(BlackIceDEVMODE* pDevMode);
DEVMODE_EnableStartApplication(BlackIceDEVMODE* pDevMode);
DEVMODE_DisableStartApplication(BlackIceDEVMODE* pDevMode);
319
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
DEVMODE_IsStartBeforePrint(BlackIceDEVMODE* pDevMode);
DEVMODE_EnableStartBeforePrint(BlackIceDEVMODE* pDevMode);
DEVMODE_DisableStartBeforePrint(BlackIceDEVMODE* pDevMode) ;
DEVMODE_IsPassParametersEnabled(BlackIceDEVMODE* pDevMode);
DEVMODE_EnablePassParameters(BlackIceDEVMODE* pDevMode);
DEVMODE_DisablePassParameters(BlackIceDEVMODE* pDevMode) ;
DEVMODE_IsStartNormal(BlackIceDEVMODE* pDevMode);
DEVMODE_EnableStartNormal(BlackIceDEVMODE* pDevMode);
DEVMODE_DisableStartNormal(BlackIceDEVMODE* pDevMode) ;
DEVMODE_IsStartMinimized(BlackIceDEVMODE* pDevMode);
DEVMODE_EnableStartMinimized(BlackIceDEVMODE* pDevMode);
DEVMODE_DisableStartMinimized(BlackIceDEVMODE* pDevMode) ;
DEVMODE_IsStartHidden(BlackIceDEVMODE* pDevMode);
DEVMODE_EnableStartHidden(BlackIceDEVMODE* pDevMode);
DEVMODE_DisableStartHidden(BlackIceDEVMODE* pDevMode) ;
DWORD FileNameGenerationFlags :
A DWORD type member.
The FileNameGenerationFlags member represents the method used by the printer driver
to generate the files. This setting is in the Name generation Method combo. The
available values are defined in the devmode.h and must be one of the followings:
enum {
FILENAME_PREFIX_DEVMODE,
FILENAME_PREFIX_REGISTRY,
FILENAME_PREFIX_INI,
FILENAME_EXACT_DEVMODE,
FILENAME_EXACT_REGISTRY,
FILENAME_EXACT_INI,
FILENAME_DOCUMENT_NAME,
FILENAME_LAST
};
Access functions:
DWORD DEVMODE_GetFileGenerationMethod(BlackIceDEVMODE* pDevMode);
void
DEVMODE_SetFileGenerationMethod(BlackIceDEVMODE* pDevMode,
DWORD dwGenMethod);
320
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
TCHAR OutputDirectory[MAX_PATH]:
A TCHAR string type member.
The OutputDirectory member stores the path where the printer driver generates the files.
Access functions:
void
DEVMODE_SetOutputDirectory(BlackIceDEVMODE* pDevMode, LPCTSTR
OutputDir);
LPCTSTR DEVMODE_GetOutputDirectory(BlackIceDEVMODE* pDevMode);
TCHAR FileImageName[MAX_PATH]:
A TCHAR string type member.
The FileImageName member stores the file name if the file generation method is Exact
Filename.
Access functions:
LPCTSTR
DEVMODE_GetImageFileName(BlackIceDEVMODE* pDevMode);
void
DEVMODE_SetImageFileName(BlackIceDEVMODE* pDevMode, LPCTSTR
ImageFileName);
TCHAR InterfaceName[MAX_PATH]:
A TCHAR string type member.
The InterfaceName member stores the name of the messaging interface. For Windows
95/98/ME is the name of the Windows Message broadcasted by the driver.
Access functions:
LPCTSTR
DEVMODE_GetInterfaceName(BlackIceDEVMODE* pDevMode);
321
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
void
DEVMODE_SetInterfaceName(BlackIceDEVMODE* pDevMode, LPCTSTR
InterfaceName);
TCHAR INIFileName[MAX_PATH]:
A TCHAR string type member.
The INIFileName member stores the name of the INI file which contains the information
depending on the filename generation information.
For FILENAME_PREFIX_INI,
TCHAR TIFFDLLName[MAX_PATH]:
A TCHAR string type member.
The TIFFDLLName member stores the name and path of the TIFF32.DLL. This DLL
encodes the TIFF files. The file is needed for TIFF output.
Access functions:
LPCTSTR
DEVMODE_GetTIFFDLLName(BlackIceDEVMODE* pDevMode);
void
DEVMODE_SetTIFFDLLName (BlackIceDEVMODE* pDevMode, LPCTSTR
TIFFDLLName);
TCHAR JPEGDLLName[MAX_PATH]:
A TCHAR string type member.
The JPEGDLLName member stores the name and path of the JPEG32.DLL. This DLL
encodes the Jpeg files. The file is needed for Jpeg output.
Access functions:
LPCTSTR
DEVMODE_GetJPEGDLLName(BlackIceDEVMODE* pDevMode);
void
DEVMODE_SetJPEGDLLName (BlackIceDEVMODE* pDevMode, LPCTSTR
JPEGDLLName);
TCHAR ResourceDLLName[MAX_PATH]:
A TCHAR string type member.
322
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
The resources of the driver such as the driver property dialogs - are stored in a separate
DLL file. The look of the property sheets of the printer driver can be modified by moving
or hiding controls. Also, all the names of the paper formats, DPI setting and file name
generation methods are stored in this DLL and can be changed as well.
The ResourceDLLName member stores the name and path of the driver resource DLL.
Access functions:
LPCTSTR
DEVMODE_GetResourceDLLName(BlackIceDEVMODE* pDevMode);
void
DEVMODE_SetResourceDLLName(BlackIceDEVMODE* pDevMode, LPCTSTR
ResourceDLLName);
DWORD SessionID:
Reserverd.
DWORD UserFlags::
A DWORD value.
Reserved for extra programming possibilities.
TCHAR szUser1[128]:
A TCHAR string type member.
Reserved for extra programming possibilities.
TCHAR szUser2[128]:
A TCHAR string type member.
Reserved for extra programming possibilities.
323
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
Messaging Interface
All the Black Ice Printer Drivers have a messaging interface. The printer driver can communicate
with applications through this interface. The applications capture and process the messages sent
by the driver.
The driver can communicate with an application two different ways.
4. Method I: Through the WM_COPYDATA Windows message.
The WM_COPYDATA message is sent by the driver to a specific window. The driver has
to know the applications window handle. To pass the window handle to the driver, the
application, when it starts, should write its window handle using the WritePrinterData()
function to the PRINTER_DATA_WINDOW_HANDLE_KEY key.
The driver sends a WM_COPYDATA message to the applications window. The
application extracts the information from the data structure arrived with the message.
Before the application exits, it should overwrite the window handle in the registry to 0 by
setting the PRINTER_DATA_WINDOW_HANDLE_KEY to 0.
5. Method II. Through a windows message registered with RegisterWindowMessage ().
The driver registers a message with the RegisterWindowMessage () function and then
starts broadcasting the message. The application has to register the same message as the
driver. To accomplish this, use the string from the InterfaceName member of the
BlackIceDEVMODE structure. The application will then capture and process the
messages. The data will be written to an ini file by the driver defined in devmode.h.
#define BLACK_ICE_DEFAULT_INIFILE
TEXT("bi_group.ini")
The application will read the ini file when the BLACKICE_MESSAGE_STARTDOC
message arrives in order to get the name of the group file.. The driver writes all the
information about the generated images in the group file. See the Description of the Black
Ice Printer Messages and the Group File Description sections in this manual for more
detail.
//
//
//
//
324
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
Parameters
wParam
Handle to the window passing the data.
lParam
Pointer to a COPYDATASTRUCT structure that contains the data to be passed.
Return Values
If the receiving application processes this message, it should return TRUE; otherwise, it should
return FALSE.
Remarks
The data being passed must not contain pointers or other references to objects not accessible to
the application receiving the data.
While this message is being sent, the referenced data must not be changed by another thread of
the sending process.
The receiving application should consider the data read-only. The lParam parameter is valid only
during the processing of the message. The receiving application should not free the memory
referenced by lParam. If the receiving application must access the data after SendMessage
returns, it must copy the data into a local buffer.
When you send a WM_COPYDATA message, SendMessage allocates a block of memory
cbData bytes in size and copies the data from the caller's address space to this block. It then
sends the message to the destination window. When the receiving window procedure processes
this message, the lParam parameter is a pointer to a COPYDATASTRUCT structure that exists
in the address space of the receiving process. The lpData member is a pointer to the copied block
of memory and the address reflects the memory location in the receiving process's address space.
Members
325
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
dwData
Specifies data to be passed to the receiving application.
cbData
Specifies the size, in bytes, of the data pointed to by the lpData member.
lpData
Pointer to data to be passed to the receiving application. This member can be NULL.
Members
DWORD dwBlackIceFlag:
This constant value identifies the message. The value of this member should be BLACK_ICE_FLAG
(defined in devmode.h).
DWORD dwSize:
The size of the BLACKICE_PRINTER_MESSAGE structure.
DWORD dwMessage:
326
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
TCHAR szInterfaceName[MAX_PATH]:
This string identifies a printer driver (can be than more than one printer driver). The printer driver fills
the szInterfaceName[MAX_PATH] member with the value of the InterfaceName member of the
BlackIceDEVMODE structure. When the application captures the WM_COPYDATA message, the
application should compare the InterfaceName member of the designated printer drivers devmode data
structure with the szInterfaceName.
TEXT("bi_group.ini")
Method II. With this message the driver sends the name of the group file in the
szFileName member of the BLACKICE_PRINTER_MESSAGE structure .
Method II. With this message the driver sends the name of the group file in the
szFileName member of the BLACKICE_PRINTER_MESSAGE structure.
328
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
329
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
Image Format=JPEG
Image format can be
Microsoft Bitmap format
Paint Brush format
Intel format
- BMP"
- "PCX"
- "DCX"
- "TIFF Group 3 1D No EOL"
- "TIFF Uncompressed"
- "TIFF Group 3 2D"
- "TIFF Group 4"
- "TIFF Packed"
- "TIFF LZW"
- "TIFF JPEG"
- "TIFF Group 3 1D"
- "CALS"
- "RAW TIFF Group 3 1D"
- "RAW TIFF Group 3 1D No EOL"
- "RAW TIFF Group 3 2D"
- "RAW TIFF Group 4"
- "JPEG"
- "JPEG L*a*b"
- "Extended Metafile"
The message "JPEG32.DLL cannot be loaded" shown f driver failed to load the
JPEG DLL.
[Page 2]
FileName=c:\temp\AAA43840002.JPG
TextFileName=c:\temp\AAA43840002.TXT
[Page 3]
FileName=c:\temp\AAA60D30003.JPG
TextFileName=c:\temp\AAA60D30003.TXT
332
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
PrinterName Property
This property contains the name of the printer the application wants to capture messages from.
StartDoc event
The StartDoc event is fired when the selected printer starts to print a document. The parameter of this
event is the name (with the full path) of the generated group file.
StartPage event
The StartPage event is fired when the selected printer starts to print a new page. The parameter of this
event is the actual page number.
EndPage event
The EndPage event is fired when the selected printer finishes printing a page. The parameter of this
event is the name (with the full path) of the generated image file.
333
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
EndDoc event
The EndDoc event is fired when the selected printer finishes printing a document. The parameter of this
event is the name (with the full path) of the generated group file.
-
334
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
with a Black Ice printer. Non Black Ice printers will have a different DEVMODE
structure and this is the reason why the size is not correct.
6. Allocate memory for the BlackIceDEVMODE structure.
BlackIceDEVMODE* pdevModeTemp= (BlackIceDEVMODE*) new BYTE[Size];
if ( !pdevModeTemp )
{
OutputDebugString(TEXT("Not enough memory."));
return false ;
}
7. Retrieve the printers current BlackIceDEVMODE structure. This structure will contain
the current printer settings.
DocumentProperties(m_hWnd, hPrinter, PRINTER_NAME, pdevModeTemp, NULL,
DM_OUT_BUFFER);
8. Modify the printer settings by modifying members of the BlackIceDEVMODE structure.
The devmode.h and devmode.cpp file provides a set of functions that access and modify
members of the structure. It is not recommended modifying any structure member directly,
but through the functions from the devmode.h file.
The following code sample sets the output directory to c:\temp and sets the printer to
use the image.tif file name as image file name for the printed document.
DEVMODE_SetOutputDirectory(pDevMode, TEXT("C:\\TEMP"));
DEVMODE_SetFileGenerationMethod(pDevMode,
FILENAME_EXACT_DEVMODE);
DEVMODE_SetImageFileName(pDevMode, TEXT(IMAGE.TIF));
9. Save the new printer settings.
lRet = DocumentProperties(m_hWnd, hPrinter, PRINTER_NAME, NULL,
(DEVMODE*)pDevMode, DM_IN_BUFFER|DM_UPDATE );
if ( lRet <0 )
{
wsprintf(s,TEXT("DocumentProperties failed, Error: %d\n"), GetLastError());
OutputDebugString(s);
}
336
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
Fax Boards
GammaLink Fax Boards
In order to generate images for the GammaFax board use the following settings:
File Format = Tiff Group 3. 1 Dimension with Fillbits
Paper Size =Fax Paper or Create faxable Image checkbox checked.
Graphic Resolution = Fine FAX Resolution or Standard FAX Resolution
At this point the DPI setting has to be 204 x 98 or 204 x 196.
The Reverse Bit Order checkbox should be checked.
337
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
338
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
339
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
call dSetParameter()
340
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
#define
default
#define
#define
#define
#define
#define
#define
#define
#define
#define
PAR_INIC_PARAMETERS
values.
PAR_DRIVER_VERZIO
PAR_DRIVER_NAME
PAR_DRIVER_DRIVERFILE
PAR_DRIVER_DATAFILE
PAR_DRIVER_CONFIGFILE
PAR_PRINTER_NAME
PAR_PRINTER_PORT
PAR_PRINTER_PROCESS
PAR_PRINTER_DATATYPE
1
2
3
4
5
101
102
103
104
//
//
//
//
//
//
//
//
//
numeric
string
string
string
string
string
string
string
string
341
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
LPSTR
lpStringTmp - Represents the new value of the DEVMODE member specified in
the lpLong parameter.
Return Value
The dSetParameter() will return FALSE if the value passed in the lpLong parameter is not valid
(code to set the specified DEVMODE member is not present in the dSetParameter() function) ,
otherwise TRUE. Check the How to add code to set a member of the DEVMODE section for
more information on how to implement your own code to set the DEVMODE members.
All of these parameters are only necessary, because of the Install Shield DLL calling format.
G_DllFileName;
DllProc;
ParamValue;
tmpLong;
nResult;
G_DllFileName =
DllProc
tmpLong
ParamValue
CallDLLFx(
SUPPORTDIR ^ "MYDLL.DLL";
= "dSetParameter";
= PAR_DEVMODE_XDPI;
= "300";
G_DllFileName, DllProc, tmpLong, ParamValue);
DllProc
= "dDocumentProperties";
tmpLong
= 0;
ParamValue = "";
CallDLLFx( G_DllFileName, DllProc, tmpLong, ParamValue );
342
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
311
2. Modify the dSetParameter() function in the setupdll.cpp file in the Install DLL project. Add
the following to the switch statement:
case PAR_DEVMODE_ADVTEXT:
if ( _ttoi(lpString))
DEVMODE_ EnableWriteText (&BliceDevMode);
else
DEVMODE_ DisableWriteText (&BliceDevMode);
break;
7. Modify the dDocumentProperties() function in the setupdll.cpp file in the Install DLL
project. Add the following code to the dDocumentProperties(), before the last call of the
DocumentProperties() function:
if (DEVMODE_IsWriteTextEnabled(&BliceDevMode))
DEVMODE_EnableWriteText (pInPut);
else
DEVMODE_DisableWriteText (pInPut);
8. Rebuild the Install DLL and copy the file to the Install Shield project Setup Files\Compressed
Files\Language Independent\OS Independent folder.
Open the Install Shield project and the script file. Add the following code to the RUL file:
343
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
STRING
STRING
STRING
LONG
NUMBER
G_DllFileName;
DllProc;
ParamValue;
tmpLong;
nResult;
G_DllFileName =
DllProc
tmpLong
ParamValue
CallDLLFx(
SUPPORTDIR ^ "MYDLL.DLL";
= "dSetParameter";
= PAR_DEVMODE_ADVTEXT;
= VAL_YES;
G_DllFileName, DllProc, tmpLong, ParamValue);
DllProc
= "dDocumentProperties";
tmpLong
= 0;
ParamValue = "";
CallDLLFx( G_DllFileName, DllProc, tmpLong, ParamValue );
NOTE: Important! The printer must be installed correctly before you call the dSetParameter()
and dDocumentProprieties() functions to change the settings.
346
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
tmpLong = PAR_PRINTER_PORT;
nResult = CallDLLFx(G_DllFileName, DllProc, tmpLong, DriverFiles);
Then call the following function to install the printer:
dAddPrintProcessor(PrintProcessorFileName, PrintProcessorName); The name of the print
processor file is BiMPro95.dll
dAddPortMonitor(PortMonitorFileName, PortMonitorName); The name of the monitor file is
BiMMon95.dll
dAddPort( PORT_NAME, MONITOR_NAME)
and
dAddPrinter() passing the printer name in the string parameter.
...\Distribution\ BiEDrv95.drv
...\Distribution\ BiEMon95.dll
...\Distribution\ BiERes95.dll
...\Distribution\ BiERmv95.dll
...\Distribution\ BiEPro95.dll
...\Distribution\ BiImg.dll
...\Distribution\ JPEG32.DLL
...\Distribution\ TIFF32.DLL
348
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
Printer driver
Monochrome
printer driver for
Windows 95/98/ME
Metafile printer
driver for Windows
95/98/ME
File description
Driver file
Print processor file
Port monitor file
User Interface DLL
Driver Remove DLL
TIFF DLL
Filename
BiMDrv95.drv
BiMProc95.dll
BiMMon95.dll
BiMRes95.dll
BiMRmv95.dll
Tiff32.dll
JPEG DLL
JPEG32.dll
BiImg.dll
Driver file
Print processor file
Port monitor file
User Interface DLL
Driver Remove DLL
TIFF DLL
BiCDrv95.drv
BiCProc95.dll
BiCMon95.dll
BiCRes95.dll
BiCRmv95.dll
Tiff32.dll
JPEG DLL
JPEG32.dll
BiImg.dll
Driver file
Print processor file
Port monitor file
User Interface DLL
Driver Remove DLL
TIFF DLL
BiEDrv95.drv
BiEProc95.dll
BiEMon95.dll
BiERes95.dll
BiERmv95.dll
Tiff32.dll
JPEG DLL
JPEG32.dll
BiImg.dll
Target location
<SYSTEM>
<SYSTEM>
<SYSTEM>
<SYSTEM>
<SYSTEM>
<SYSTEM>,
<WINDOWS>
<SYSTEM>,
<WINDOWS>
<SYSTEM>,
<WINDOWS>
<SYSTEM>
<SYSTEM>
<SYSTEM>
<SYSTEM>
<SYSTEM>
<SYSTEM>,
<WINDOWS>
<SYSTEM>,
<WINDOWS>
<SYSTEM>,
<WINDOWS>
<SYSTEM>
<SYSTEM>
<SYSTEM>
<SYSTEM>
<SYSTEM>
<SYSTEM>,
<WINDOWS>
<SYSTEM>,
<WINDOWS>
<SYSTEM>,
<WINDOWS>
<SYSTEM> The default location for the driver files is the \WINDOWS\system directory.
<WINDOWS>The Windows directory.
10.
You have to rename all the printer files except for BiImg.DLL.
During the installation process, specify a separate print processor, port monitor, printer driver,
port and printer names for each printer.(VERY IMPORTANT)
Follow these steps for each printer.
The Message Capture OCX control does not require a license file.
The OCX control exports the following Properties and Events:
PrinterName Property
This property contains the name of the printer the application wants to capture messages from.
StartDoc event
The StartDoc event is fired when the selected printer starts to print a document. The parameter of this
event is the name (with the full path) of the generated group file.
StartPage event
The StartPage event is fired when the selected printer starts to print a new page. The parameter of this
event is the actual page number.
EndPage event
The EndPage event is fired when the selected printer finishes printing a page. The parameter of this
event is the name (with the full path) of the generated image file.
EndDoc event
The EndDoc event is fired when the selected printer finishes printing a document. The parameter of this
event is the name (with the full path) of the generated group file.
6 The BlackIceDEVMODE.DLL
The BlackiceDEVMODE.DLLis a tool to retrieve, modify and set the values of the printer
DEVMODE. Setting the values of the printer DEVMODE will change the settings of the printer.
The BlackiceDEVMODE.DLL can be found in the Resource Toolkit
/* Before use other functions, load the devmode from the printer with the
LoadBlackIceDEVMODE() function. */
pDevMode = LoadBlackIceDEVMODE(Black Ice Color);
if (!pDevMode) {
sprintf(szMessage, "Error loading the devmode. Error no.: %d,
BlackIce_GetLastError());
AfxMessageBox(szMessage,MB_OK,0);
return(0);
}
if (!GetOrientation)
{
AfxMessageBox("Function not loaded from the DLL,MB_OK,0);
}
else
{
if( GetOrientation(pDevMode) == 1)
{
// Portrait
}
else
{
if( GetOrientation(pDevMode) == 2)
{
353
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
// Landscape
)
else
{
// wrong value;
}
}
}
/* At the end you should release the DEVMODE buffer allocated by the
LoadBlackIceDEVMODE() function. You can use the ReleaseBlackIceDEVMODE function */
ReleaseBlackIceDEVMODE(pDevMode);
The BlackIceDEVMODE.DLL contains functions for loading and saving the DEVMODE.
6.3.1.1
BlackIce_GetLastError
Returns the error code that occurred last in the system. This function helps to debug programs.
DWORD BlackIce_GetLastError();
LoadBlackIceDEVMODE
This function returns a pointer to a BlackIceDEVMODE structure. The settings of the specified
printer can be accessed through the BlackIceDEVMODE structure. The function allocates the
required amount of memory for the structure. The allocated memory must be freed by calling the
ReleaseBlackIceDEVMODE() function.
BlackIceDEVMODE*
LoadBlackIceDEVMODE(LPCTSTR printername);
354
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
6.3.1.3
ReleaseBlackIceDEVMODE
ReleaseBlackIceDEVMODE(BlackIceDEVMODE* pDevMode);
Input value
SaveBlackIceDEVMODE
6.3.2
The description of the functions from the BlackIceDEVMODE.DLL are organized as the controls
of the Printer Driver User Interface.
The Black Ice Printer Driver User Interface driver has 4 tab controls.
1. Device Settings
2. File Formats
3. Filename Generation
4. Start Application
All the values from the user interface can be set programmatically using the functions from the
BlackIceDEVMODE.DLL.
6.3.3
6.3.3.1
GetPaperSize
Returns the value of the dmPaperSize member of the DevMode. Represents the value of the
'Paper Size' combo box.
int
GetPaperSize(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure
Return value - paper size (integer number)
355
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
6.3.3.2
SetPaperSize
Sets the dmPaperSize member of the DevMode. Sets the value of the 'Paper Size' combo box.
BOOL
Returns the value of the PaperWidthInPixels member of the BlackIceDEVMODE. Represents the
value of the 'Paper Width' edit box.
DWORD GetPageWidthInPixels(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure
Return value - paper width in pixels (DWORD number)
6.3.3.4
SetPaperWidthInPixel
Sets the PaperWidthInPixels member of the BlackIceDEVMODE. Sets the value of the 'Paper
Width' edit box.
BOOL
Input value
- pointer to the BlackIceDEVMODE structure
Return value - paper height in pixels (DWORD number)
6.3.3.6
SetPaperHeightInPixel
Sets the PaperHeightInPixels member of the BlackIceDEVMODE. Sets the value of the 'Paper
Height' edit box.
BOOL
356
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
6.3.3.7
GetFaxHeader
Returns the value of the FAXheader member of the BlackIceDEVMODE. Represents the value of
the 'Fax header' edit box.
DWORD GetFaxHeader(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure
Return value - fax header in pixels (DWORD number)
6.3.3.8
SetFaxHeader
Sets the FAXheader member of the BlackIceDEVMODE. Sets the value of the 'Fax header' edit
box.
BOOL
Returns the value of the BLF_FAXOUTPUT flag. Represents the value of the Create Faxable
Image checkbox.
BOOL
IsFaxOutputEnabled(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure
Return value - TRUE if the FaxOutput is used, otherwise FALSE
6.3.3.10
EnableFaxOutput
Sets the BLF_FAXOUTPUT flag. Sets the value of the Create Faxable Image checkbox.
BOOL
EnableFaxOutput(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure.
Return value - TRUE if the flag was successfully set, otherwise FALSE.
6.3.3.11
DisableFaxOutput
Sets the BLF_FAXOUTPUT flag to 0 (false). Sets the value of the Create Faxable Image
checkbox UNCHECKED.
BOOL
DisableFaxOutput(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure.
Return value - TRUE if the flag was successfully set to 0 (false), otherwise FALSE.
357
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
6.3.3.12
IsAdvancedPaperSizeEnabled
Returns the value of the BLF_ADVANCEDPAPERSIZE flag. Represents the value of the
Advanced Papersize checkbox.
BOOL
IsAdvancedPaperSizeEnabled(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure
Return value - TRUE if the Advanced Papersize is used, otherwise FALSE
6.3.3.13
EnableAdvancedPaperSize
Sets the BLF_ADVANCEDPAPERSIZE flag. Sets the value of the Advanced Papersize
checkbox.
BOOL
EnableAdvancedPaperSize(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure.
Return value - TRUE if the flag was successfully set, otherwise FALSE.
6.3.3.14
DisableAdvancedPaperSize
Sets the BLF_ADVANCEDPAPERSIZE flag to 0 (false). Sets the value of the Advanced
Papersize checkbox UNCHECKED.
BOOL
DisableAdvancedPaperSize(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure.
Return value - TRUE if the flag was successfully set to 0 (false), otherwise FALSE.
6.3.3.15
GetOrientation
Returns the value of the dmOrientation member of the DevMode. Represents the value of the
'Orientation' radio button.
int
GetOrientation(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure
Return value - If the value is 1: the orientation is Portrait, if the value is 2: the orientation is
Landscape
6.3.3.16
SetOrientation
Sets the dmOrientation member of the DevMode. Sets the value of the 'Orientation' radio button.
BOOL
358
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
6.3.3.17
IsRotatePaperEnabled
Returns the value of the BLF_ROTATEPAPER flag. Represents the value of the Rotate
Landscape image to Portrait checkbox.
BOOL
IsRotatePaperEnabled(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure
Return value - TRUE if Rotate Landscape image to Portrait is used, otherwise FALSE
6.3.3.18
EnableRotatePaper
Sets the BLF_ROTATEPAPER flag. Sets the value of the Rotate Landscape image to Portrait
checkbox.
BOOL
EnableRotatePaper(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure.
Return value - TRUE if the flag was successfully set, otherwise FALSE.
6.3.3.19
DisableRotatePaper
Sets the BLF_ROTATEPAPER flag to 0 (false). Sets the value of the Rotate Landscape image
to Portrait checkbox UNCHECKED.
BOOL
DisableRotatePaper(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure.
Return value - TRUE if the flag was successfully set to 0 (false), otherwise FALSE.
6.3.3.20
GetXDPI
Returns the value of the dmPrintQuality member of the DevMode. Represents the value of the
'Horizontal Resolution' edit box.
int
GetXDPI(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure
Return value - Horizontal Resolution (integer number)
6.3.3.21
SetXDPI
Sets the dmPrintQuality member of the DevMode. Sets the value of the 'Horizontal Resolution'
edit box.
BOOL
359
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
6.3.3.22
GetYDPI
Returns the value of the dmYResolutionmember of the DevMode. Represents the value of the
'Vertical Resolution' edit box.
int
GetYDPI(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure
Return value - Vertical Resolution (integer number)
6.3.3.23
SetYDPI
Sets the dmYResolutionmember of the DevMode. Sets the value of the 'Vertical Resolution' edit
box.
BOOL
6.3.3.24
IsFaxLowOutputEnabled
Returns the value of the BLF_LOWFAXRES flag. If true, the low fax resolution (204x98) is
selected, if false the Fine Fax resolution (204x196) is selected when the Create Faxable Image
option is selected.
BOOL
IsLowFaxOutputEnabled(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure
Return value - TRUE if Low Fax Output is used, otherwise FALSE
6.3.3.25
EnableLowFaxOutput
Sets the BLF_ LOWFAXRES flag. Sets the value of the fax resolution when the Create Faxable
Image checkbox is selected.
BOOL
EnableLowFaxOutput(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure.
Return value - TRUE if the flag was successfully set, otherwise FALSE.
360
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
6.3.3.26
DisableLowFaxOutput
Sets the BLF_ LOWFAXRES flag 0 (false). Sets the value of the fax resolution when the Create
Faxable Image checkbox is selected.
BOOL
DisableLowFaxOutput(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure.
Return value - TRUE if the flag was successfully set to 0 (false), otherwise FALSE.
6.3.4
6.3.4.1
GetFileFormat
Returns the value of the Format member of the BlackIceDEVMODE. Represents the value of the
'File Format' combo box.
DWORD GetFileFormat(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure
Return value - File Format (DWORD number)
6.3.4.2
SetFileFormat
Sets the Format member of the BlackIceDEVMODE. Sets the value of the 'File Format' combo
box.
BOOL
GetLossRatio
Returns the value of the LossRatio member of the BlackIceDEVMODE. Represents the value of
the 'JPEG loss ratio' slider.
DWORD GetLossRatio(BlackIceDEVMODE* pDevMode);
361
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
Input value
- pointer to the BlackIceDEVMODE structure
Return value - JPEG loss ratio (DWORD number)
6.3.4.4
SetLossRatio
Sets the LossRatio member of the BlackIceDEVMODE. Sets the value of the 'JPEG loss ratio'
slider.
BOOL
Returns the value of the ColorMode member of the BlackIceDEVMODE. Represents the value of
the 'Color Depth' radio button.
DWORD GetColorDepth(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure
Return value - Color Depth (DWORD number)
6.3.4.6
SetColorDepth
Sets the ColorMode member of the BlackIceDEVMODE. Sets the value of the 'Color Depth'
radio button.
BOOL
Returns the value of the BLF_MULTIIMAGE flag. Represents the value of the Create
Multipage Image checkbox.
BOOL
IsMultipageImageEnabled(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure
Return value - TRUE if Create Multipage Image is used, otherwise FALSE
6.3.4.8
EnableMultipageImage
Sets the BLF_MULTIIMAGE flag. Sets the value of the Create Multipage Image checkbox.
BOOL
EnableMultipageImage(BlackIceDEVMODE* pDevMode);
362
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
Input value
- pointer to the BlackIceDEVMODE structure.
Return value - TRUE if the flag was successfully set, otherwise FALSE.
6.3.4.9
DisableMultipageImage
Sets the BLF_MULTIIMAGE flag to 0 (false). Sets the value of the Create Multipage Image
checkbox UNCHECKED.
BOOL
DisableMultipageImage(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure.
Return value - TRUE if the flag was successfully set to 0 (false), otherwise FALSE.
6.3.4.10
IsAppendImageEnabled
Returns the value of the BLF_MULTIIMAGE flag. Represents the value of the Create
Multipage Image checkbox.
BOOL
IsAppendImageEnabled(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure
Return value - TRUE if Create Multipage Image is used, otherwise FALSE
6.3.4.11
EnableAppendImage
Sets the BLF_MULTIIMAGE flag. Sets the value of the Create Multipage Image checkbox.
BOOL
EnableAppendImage(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure.
Return value - TRUE if the flag was successfully set, otherwise FALSE.
6.3.4.12
DisableAppendImage
Sets the BLF_MULTIIMAGE flag to 0 (false). Sets the value of the Create Multipage Image
checkbox UNCHECKED.
BOOL
DisableAppendImage(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure.
Return value - TRUE if the flag was successfully set to 0 (false), otherwise FALSE.
6.3.4.13
IsDisableImageEnabled
Returns the value of the BLF_DISABLEIMAGE flag. Represents the value of the 'Disable Image'
checkbox.
BOOL
IsDisableImageEnabled(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure
Return value - TRUE if Disable Image is used, otherwise FALSE
363
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
6.3.4.14
EnableDisableImage
Sets the BLF_DISABLEIMAGE flag. Sets the value of the 'Disable Image' checkbox.
BOOL
EnableDisableImage(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure.
Return value - TRUE if the flag was successfully set, otherwise FALSE.
6.3.4.15
DisableDisableImage
Sets the BLF_DISABLEIMAGE flag to 0 (false). Sets the value of the 'Disable Image' checkbox
UNCHECKED.
BOOL
DisableDisableImage(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure.
Return value - TRUE if the flag was successfully set to 0 (false), otherwise FALSE.
6.3.4.16
IsEasternCharSupportEnabled
Returns the value of the BLF_GLYPHSUPPORT flag. Represents the value of the 'Eastern
Character Support' checkbox.
BOOL
IsEasternCharSupportEnabled(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure
Return value - TRUE if Eastern Character Support is used, otherwise FALSE
6.3.4.17
EnableEasternCharSupport
Sets the BLF_GLYPHSUPPORT flag. Sets the value of the 'Eastern Character Support'
checkbox.
BOOL
EnableEasternCharSupport(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure.
Return value - TRUE if the flag was successfully set, otherwise FALSE.
6.3.4.18
DisableEasternCharSupport
Sets the BLF_GLYPHSUPPORT flag to 0 (false). Sets the value of the 'Eastern Character
Support' checkbox UNCHECKED.
BOOL
DisableEasternCharSupport(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure.
Return value - TRUE if the flag was successfully set to 0 (false), otherwise FALSE.
364
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
6.3.4.19
IsWriteTextEnabled
Returns the value of the BLF_WRITETEXT flag. Represents the value of the 'Write Text File'
checkbox.
BOOL
IsWriteTextEnabled(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure
Return value - TRUE if the Write Text File is used, otherwise FALSE
6.3.4.20
EnableWriteText
Sets the BLF_WRITETEXT flag. Sets the value of the 'Write Text File' checkbox.
BOOL
EnableWriteText(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure.
Return value - TRUE if the flag was successfully set, otherwise FALSE.
6.3.4.21
DisableWriteText
Sets the BLF_WRITETEXT flag to 0 (false). Sets the value of the 'Write Text File' checkbox
UNCHECKED.
BOOL
DisableWriteText(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure.
Return value - TRUE if the flag was successfully set to 0 (false), otherwise FALSE.
6.3.4.22
IsMailMergeEnabled
Returns the value of the BLF_MAILMERGE flag. Represents the value of the Mail Merge
checkbox.
BOOL
IsMailMergeEnabled(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure
Return value - TRUE if the WriteText File is used, otherwise FALSE
6.3.4.23
EnableMailMerge
Sets the BLF_MAILMERGE flag. Sets the value of the Mail Merge checkbox.
BOOL
EnableMailMerge(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure.
Return value - TRUE if the flag was successfully set, otherwise FALSE.
6.3.4.24
DisableMailMerge
Sets the BLF_MAILMERGE flag to 0 (false). Sets the value of the Mail Merge checkbox
UNCHECKED.
365
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
BOOL
DisableMailMerge(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure.
Return value - TRUE if the flag was successfully set to 0 (false), otherwise FALSE.
6.3.4.25
IsAdvancedTextEnabled
Returns the value of the BLF_ADVANCEDTEXT flag. Represents the value of the 'Save
position and style' checkbox.
BOOL
IsAdvancedTextEnabled(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure
Return value - TRUE if Save position and style is used, otherwise FALSE
6.3.4.26
EnableAdvancedText
Sets the BLF_ADVANCEDTEXT flag. Sets the value of the 'Save position and style' checkbox.
BOOL
EnableAdvancedText(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure.
Return value - TRUE if the flag was successfully set, otherwise FALSE.
6.3.4.27
DisableAdvancedText
Sets the BLF_ADVANCEDTEXT flag to 0 (false). Sets the value of the 'Save position and style'
checkbox UNCHECKED.
BOOL
DisableAdvancedText(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure.
Return value - TRUE if the flag was successfully set to 0 (false), otherwise FALSE.
6.3.4.28
IsInternetTiffFormatEnabled
Returns the value of the BLF_INTERNETTIFF flag. Represents the value of the Internet TIFF
format checkbox.
BOOL
IsInternetTiffFormatEnabled(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure
Return value - TRUE if Internet TIFF format is used, otherwise FALSE
6.3.4.29
EnableInternetTiffFormat
Sets the BLF_INTERNETTIFF flag. Sets the value of the Internet TIFF format checkbox.
BOOL
EnableInternetTiffFormat(BlackIceDEVMODE* pDevMode);
Input value
366
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
Return value - TRUE if the flag was successfully set, otherwise FALSE.
6.3.4.30
DisableInternetTiffFormat
Sets the BLF_INTERNETTIFF flag to 0 (false). Sets the value of the Internet TIFF format
checkbox UNCHECKED.
BOOL
DisableInternetTiffFormat(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure.
Return value - TRUE if the flag was successfully set to 0 (false), otherwise FALSE.
6.3.4.31
IsReverseBitOrderEnabled
Returns the value of the BLF_REVERSEFILLORDER flag. Represents the value of the Reverse
Bit Order in TIFF checkbox.
BOOL
IsReverseBitOrderEnabled(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure
Return value - TRUE if the Reverse Bit Order in TIFF is used, otherwise FALSE
6.3.4.32
EnableReverseBitOrder
Sets the BLF_REVERSEFILLORDER flag. Sets the value of the Reverse Bit Order in the TIFF
checkbox.
BOOL
EnableReverseBitOrder(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure.
Return value - TRUE if the flag was successfully set, otherwise FALSE.
6.3.4.33
DisableReverseBitOrder
Sets the BLF_REVERSEFILLORDER flag to 0 (false). Sets the value of the Reverse Bit Order
in the TIFF checkbox UNCHECKED.
BOOL
DisableReverseBitOrder(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure.
Return value - TRUE if the flag was successfully set to 0 (false), otherwise FALSE.
6.3.4.34
IsPageNumberingEnabled
Returns the value of the BLF_PAGENUMBERING flag. Represents the value of the Add Page
Numbering Tag checkbox.
BOOL
IsPageNumberingEnabled(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure
Return value - TRUE if the Add Page Numbering Tag is used, otherwise FALSE
367
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
6.3.4.35
EnablePageNumbering
Sets the BLF_PAGENUMBERING flag. Sets the value of the Add Page Numbering Tag
checkbox.
BOOL
EnablePageNumbering(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure.
Return value - TRUE if the flag was successfully set, otherwise FALSE.
6.3.4.36
DisablePageNumbering
Sets the BLF_PAGENUMBERING flag to 0 (false). Sets the value of the Add Page Numbering
Tag checkbox UNCHECKED.
BOOL
DisablePageNumbering(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure.
Return value - TRUE if the flag was successfully set to 0 (false), otherwise FALSE.
6.3.4.37
GetDithering
Returns the value of the Dithering member of the BlackIceDEVMODE. Represents the value of
the 'Photo Quality' radio button.
DWORD GetDithering(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure
Return value - Photo Quality (DWORD number)
6.3.4.38
SetDithering
Sets the Dithering member of the BlackIceDEVMODE. Sets the value of the 'Photo Quality' radio
button.
BOOL
Returns the value of the Brightness member of the BlackIceDEVMODE. Represents the value of
the 'Intensity' slider.
DWORD GetBrightness(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure
Return value - Intensity (DWORD number)
368
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
6.3.4.40
SetBrightness
Sets the Brightness member of the BlackIceDEVMODE. Sets the value of the 'Intensity' slider.
BOOL
6.3.5
6.3.5.1
GetFileGenerationMethod
Input value
- pointer to the BlackIceDEVMODE structure
Return value - File Name Generation Method (DWORD number)
6.3.5.2
SetFileGenerationMethod
Sets the FileNameGenerationFlags member of the BlackIceDEVMODE. Sets the value of the 'File
Name Generation Method' combo box.
BOOL
Returns the value of the FileNamePrefix member of the BlackIceDEVMODE. Represents the
value of the 'File Name Prefix' edit box.
LPCTSTR
GetFileNamePrefix(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure
Return value - File Name Prefix (string)
6.3.5.4
SetFileNamePrefix
Sets the FileNamePrefix member of the BlackIceDEVMODE. Sets the value of the 'File Name
Prefix' edit box.
BOOL
369
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
Returns the value of the FileExtension member of the BlackIceDEVMODE. Represents the value
of the 'File Name Extension' edit box.
LPCTSTR
GetFileExtension(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure
Return value - File Name Extension (string)
6.3.5.6
SetFileExtension
Sets the FileExtension member of the BlackIceDEVMODE. Sets the value of the 'File Name
Extension' edit box.
BOOL
6.3.5.7
IsCustomExtensionEnabled
Returns the value of the BLF_CUSTOMEXT flag. Represents the value of the 'Use Custom
Extension' checkbox.
BOOL
IsCustomExtensionEnabled(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure
Return value - TRUE if the Use Custom Extension is used, otherwise FALSE
6.3.5.8
EnableCustomExtension
Sets the BLF_CUSTOMEXT flag. Sets the value of the 'Use Custom Extension' checkbox.
BOOL
EnableCustomExtension(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure.
Return value - TRUE if the flag was successfully set, otherwise FALSE.
6.3.5.9
DisableCustomExtension
Sets the BLF_CUSTOMEXT flag to 0 (false). Sets the value of the 'Use Custom Extension'
checkbox UNCHECKED.
BOOL
DisableCustomExtension(BlackIceDEVMODE* pDevMode);
Input value
370
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
Return value - TRUE if the flag was successfully set to 0 (false), otherwise FALSE.
6.3.5.10
GetINIFileName
Returns the value of the INIFileName member of BlackIceDEVMODE. Represents the value of
the 'INI File Name'/'Registry path'/etc. edit box.
LPCTSTR
GetINIFileName(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure
Return value - INI File Name/Registry Path/etc. (string)
6.3.5.11
SetINIFileName
Sets the INIFileName member of the BlackIceDEVMODE. Sets the value of the 'INI File
Name'/'Registry path'/etc. edit box.
BOOL
Returns the value of the FileImageName member of the BlackIceDEVMODE. Represents the
value of the 'File Image Name' edit box if the Filename Generation method is Exact filename.
LPCTSTR
GetImageFileName(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure
Return value - Image Filename (string)
6.3.5.13
SetImageFileName
Sets the FileImageName member of the BlackIceDEVMODE. Sets the value of the 'File Image
Name' edit box if the Filename Generation method is Exact filename.
BOOL
Returns the value of the BLF_KEEPFILES flag. Represents the value of the 'Keep existing files'
checkbox.
BOOL
IsKeepExistingFilesEnabled(BlackIceDEVMODE* pDevMode);
Input value
371
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
EnableKeepExistingFiles
Sets the BLF_KEEPFILES flag. Sets the value of the 'Keep existing files' checkbox.
BOOL
EnableKeepExistingFiles(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure.
Return value - TRUE if the flag was successfully set, otherwise FALSE.
6.3.5.16
DisableKeepExistingFiles
Sets the BLF_KEEPFILES flag 0 (false). Sets the value of the 'Keep existing files' checkbox
UNCHECKED.
BOOL
DisableKeepExistingFiles(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure.
Return value - TRUE if the flag was successfully set to 0 (false), otherwise FALSE.
6.3.5.17
GetOutputDirectory
Returns the value of the OutputDirectory member of the BlackIceDEVMODE. Represents the
value of the 'Output Directory' edit box.
LPCTSTR
GetOutputDirectory(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure
Return value - Output Directory (string)
6.3.5.18
SetOutputDirectory
Sets the OutputDirectory member of the BlackIceDEVMODE. Sets the value of the 'Output
Directory' edit box.
BOOL
Returns the value of the BLF_DISABLEGROUPFILE flag. Represents the value of the 'Disable
Group File' checkbox.
BOOL
IsGroupFileDisabled(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure
Return value - TRUE if Disable Group File is used, otherwise FALSE
372
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
6.3.5.20
DisableGroupFile
Sets the BLF_DISABLEGROUPFILE flag. Sets the value of the 'Disable Group File' checkbox.
BOOL
DisableGroupFile(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure.
Return value - TRUE if the flag was successfully set, otherwise FALSE.
6.3.5.21
EnableGroupFile
Sets the BLF_DISABLEGROUPFILE flag to 0 (false). Sets the value of the 'Disable Group File'
checkbox UNCHECKED.
BOOL
EnableGroupFile(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure.
Return value - TRUE if the flag was successfully set to 0 (false), otherwise FALSE.
6.3.5.22
IsDeleteGroupFileEnabled
Returns the value of the BLF_DELETEGROUPFILE flag. Represents the value of the 'Delete
Group File After Printing' checkbox.
BOOL
IsDeleteGroupFileEnabled(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure
Return value - TRUE if Delete Group File After Printing is used, otherwise FALSE
6.3.5.23
EnableDeleteGroupFile
Sets the BLF_DELETEGROUPFILE flag. Sets the value of the 'Delete Group File After Printing'
checkbox.
BOOL
EnableDeleteGroupFile(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure.
Return value - TRUE if the flag was successfully set, otherwise FALSE.
6.3.5.24
DisableDeleteGroupFile
Sets the BLF_DELETEGROUPFILE flag to 0 (false). Sets the value of the 'Delete Group File
After Printing' checkbox UNCHECKED.
BOOL
DisableDeleteGroupFile(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure.
Return value - TRUE if the flag was successfully set to 0 (false), otherwise FALSE.
373
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
6.3.6
6.3.6.1
IsStartApplicationEnabled
Returns the value of the BLF_LAUNCHAPP flag. Represents the value of the 'Enable Start
Application' checkbox.
BOOL
IsStartApplicationEnabled(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure
Return value - TRUE if the Enable Start Application is used, otherwise FALSE
6.3.6.2
EnableStartApplication
Sets the BLF_LAUNCHAPP flag. Sets the value of the 'Enable Start Application' checkbox.
BOOL
EnableStartApplication(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure.
Return value - TRUE if the flag was successfully set, otherwise FALSE.
6.3.6.3
DisableStartApplication
Sets the BLF_LAUNCHAPP flag to 0 (false). Sets the value of the 'Enable Start Application'
checkbox UNCHECKED.
BOOL
DisableStartApplication(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure.
Return value - TRUE if the flag was successfully set to 0 (false), otherwise FALSE.
6.3.6.4
GetApplicationPath
Returns the value of the ApplicationPath member of the BlackIceDEVMODE. Represents the
value of the 'Output Directory' edit box.
LPCTSTR
GetApplicationPath(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure
Return value - Application Path (string)
6.3.6.5
SetApplicationPath
Sets the ApplicationPath member of the BlackIceDEVMODE. Sets the value of the 'Application
Path' edit box.
BOOL
6.3.6.6
IsStartBeforePrint
Returns the value of the BLF_STARTBEFOREPRINT flag. Represents the value of the 'Start
Before Printing' radio button.
BOOL
IsStartBeforePrint(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure
Return value - TRUE if Start Before Printing is used, otherwise FALSE (The driver will start
the application after printing)
6.3.6.7
EnableStartBeforePrint
Sets the BLF_STARTBEFOREPRINT flag. Sets the value of the 'Start Before Printing' radio
button.
BOOL
EnableStartBeforePrint(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure.
Return value - TRUE if the flag was successfully set, otherwise FALSE.
6.3.6.8
DisableStartBeforePrint
Sets the BLF_STARTBEFOREPRINT flag to 0 (false). Sets the value of the 'Start Before
Printing' radio button UNCHECKED. (Sets the value of the 'Start After Printing' radio button
CHECKED)
BOOL
DisableStartBeforePrint(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure.
Return value - TRUE if the flag was successfully set to 0 (false), otherwise FALSE.
6.3.6.9
IsPassParametersEnabled
Returns the value of the BLF_PASSPARAMETERS flag. Represents the value of the 'Pass
Parameters' checkbox.
BOOL
IsPassParametersEnabled(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure
Return value - TRUE if the Pass Parameters is used, otherwise FALSE
6.3.6.10
EnablePassParameters
Sets the BLF_PASSPARAMETERS flag. Sets the value of the 'Pass Parameters' checkbox.
BOOL
EnablePassParameters(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure.
Return value - TRUE if the flag was successfully set, otherwise FALSE.
375
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
6.3.6.11
DisablePassParameters
Sets the BLF_PASSPARAMETERS flag to 0 (false). Sets the value of the 'Pass Parameters'
checkbox UNCHECKED.
BOOL
DisablePassParameters(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure.
Return value - TRUE if the flag was successfully set to 0 (false), otherwise FALSE.
6.3.6.12
IsStartNormal
Returns the value of the BLF_STARTNORMAL flag. Represents the value of the 'Normal' radio
button.
BOOL
IsStartNormal(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure
Return value - TRUE if the Start Application In a Normal Window is used, otherwise FALSE
6.3.6.13
EnableStartNormal
Sets the BLF_STARTNORMAL flag. Sets the value of the 'Normal' radio button. The driver will
start the application In a Normal window
BOOL
EnableStartNormal(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure.
Return value - TRUE if the flag was successfully set, otherwise FALSE.
6.3.6.14
DisableStartNormal
Sets the BLF_STARTNORMAL flag to 0 (false). Sets the value of the 'Normal' radio button
UNCHECKED.
BOOL
DisableStartNormal(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure.
Return value - TRUE if the flag was successfully set to 0 (false), otherwise FALSE.
6.3.6.15
IsStartMinimized
Returns the value of the BLF_STARTMINIMIZED flag. Represents the value of the 'Minimized'
radio button.
BOOL
IsStartMinimized(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure
Return value - TRUE if Start Application In a Minimized Window is used, otherwise FALSE
376
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
6.3.6.16
EnableStartMinimized
Sets the BLF_STARTMINIMIZED flag. Sets the value of the 'Minimized' radio button. The
driver will start the application In a Minimized window
BOOL
EnableStartMinimized(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure.
Return value - TRUE if the flag was successfully set, otherwise FALSE.
6.3.6.17
DisableStartMinimized
Sets the BLF_STARTMINIMIZED flag to 0 (false). Sets the value of the 'Minimized' radio
button UNCHECKED.
BOOL
DisableStartMinimized(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure.
Return value - TRUE if the flag was successfully set to 0 (false), otherwise FALSE.
6.3.6.18
IsStartHidden
Returns the value of the BLF_STARTHIDDEN flag. Represents the value of the 'Hidden' radio
button.
BOOL
IsStartHidden(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure
Return value - TRUE if Start Application Hidden is used, otherwise FALSE
6.3.6.19
EnableStartHidden
Sets the BLF_STARTHIDDEN flag. Sets the value of the 'Hidden' radio button. The driver will
start the application Hidden
BOOL
EnableStartHidden(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure.
Return value - TRUE if the flag was successfully set, otherwise FALSE.
6.3.6.20
DisableStartHidden
Sets the BLF_STARTHIDDEN flagb to 0 (false). Sets the value of the 'Hidden' radio button
UNCHECKED.
BOOL
DisableStartHidden(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure.
Return value - TRUE if the flag was successfully set to 0 (false), otherwise FALSE.
377
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
6.3.6.21
IsMessagingInterfaceEnabled
Returns the value of the BLF_SENDMESSAGE flag. Represents the value of the 'Disable the
Messaging Interface' checkbox.
BOOL
IsMessagingInterfaceEnabled(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure
Return value - TRUE if the Messaging Interface is used (the check box is unchecked), otherwise
FALSE (Messaging Interface will not be used and the check box is checked)
6.3.6.22
EnableMessagingInterface
Sets the BLF_SENDMESSAGE flag. Sets the value of the 'Disable the Messaging Interface'
checkbox UNCHECKED. The driver will use the Messaging Interface.
BOOL
EnableMessagingInterface(BlackIceDEVMODE* pDevMode);
Input value
Return value - TRUE if the flag was successfully set, otherwise FALSE.
6.3.6.23
DisableMessagingInterface
Sets the BLF_SENDMESSAGE flag to 0 (false). Sets the value of the 'Disable the Messaging
Interface' checkbox. The driver will not use the Messaging Interface.
BOOL
DisableMessagingInterface(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure.
Return value - TRUE if the flag was successfully set to 0 (false), otherwise FALSE.
6.3.7
6.3.7.1
GetInterfaceName
Returns the value of the InterfaceName member of the BlackIceDEVMODE. The InterfaceName
member stores the name of the messaging interface.
LPCTSTR
InterfaceName(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure
Return value - Interface Name (string)
6.3.7.2
SetInterfaceName
Sets the InterfaceName member of the BlackIceDEVMODE. The InterfaceName member stores
the name of the messaging interface.
BOOL
378
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
Returns the value of the dmPaperLength member of the DevMode. (DM.dmPaperLength member
of the BlackIceDEVMODE ) This value represents the 'Actual paper length'.
int
GetPaperLength(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure
Return value - Actual paper length (integer number)
6.3.7.4
SetPaperLength
Returns the value of the BLF_ENABLETIFFDLL flag. If the flag is set, the printer driver will
load the TIFF32.DLL. This flag can only be set programmatically.
BOOL
IsTiffDllEnabled(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure
Return value - TRUE if the TIFF32.DLL is enabled, otherwise FALSE
6.3.7.6
EnableTiffDll
Sets the BLF_ENABLETIFFDLL flag. If the flag is set, the printer driver will load the
TIFF32.DLL. This flag can only be set programmatically.
BOOL
EnableTiffDll(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure.
Return value - TRUE if the flag was successfully set, otherwise FALSE.
6.3.7.7
DisableTiffDll
Sets the BLF_ENABLETIFFDLL flag to 0 (false). If the flag is set, the printer driver will load the
JPEG32.DLL. This flag can only be set programmatically.
BOOL
DisableTiffDll(BlackIceDEVMODE* pDevMode);
379
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
Input value
- pointer to the BlackIceDEVMODE structure.
Return value - TRUE if the flag was successfully set to 0 (false), otherwise FALSE.
6.3.7.8
IsJpegDllEnabled
Returns the value of the BLF_ENABLEJPEGDLL flag. If the flag is set, the printer driver will
load the JPEG32.DLL. This flag can only be set programmatically.
BOOL
IsJpegDllEnabled(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure
Return value - TRUE if the JPEG32.DLL is enabled, otherwise FALSE
6.3.7.9
EnableJpegDll
Sets the BLF_ENABLEJPEGDLL flag. If the flag is set, the printer driver will load the
JPEG32.DLL. This flag can only be set programmatically.
BOOL
EnableJpegDll(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure.
Return value - TRUE if the flag was successfully set, otherwise FALSE.
6.3.7.10
DisableJpegDll
Sets the BLF_ENABLEJPEGDLL flag to 0 (false). If the flag is set, the printer driver will load
the JPEG32.DLL. This flag can only be set programmatically.
BOOL
DisableJpegDll(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure.
Return value - TRUE if the flag was successfully set to 0 (false), otherwise FALSE.
6.3.7.11
GetTIFFDLLName
GetTIFFDLLName(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure
Return value - TIFFDLLName (string)
6.3.7.12
SetTIFFDLLName
BOOL
- TIFFDLLName (string)
- pointer to the BlackIceDEVMODE structure.
- TRUE if the member was successfully set, otherwise FALSE.
GetJPEGDLLName
GetJPEGDLLName(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure
Return value - JPEGDLLName (string)
6.3.7.14
SetJPEGDLLName
- JPEGDLLName (string)
- pointer to the BlackIceDEVMODE structure.
- TRUE if the member was successfully set, otherwise FALSE.
GetResourceDLLName
GetResourceDLLName(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure
Return value - ResourceDLLName (string)
6.3.7.16
SetResourceDLLName
- ResourceDLLName (string)
- pointer to the BlackIceDEVMODE structure.
- TRUE if the member was successfully set, otherwise FALSE.
381
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
6.3.7.17
GetBitsPerPixel
GetResourceDLLName(BlackIceDEVMODE* pDevMode);
Input value
- pointer to the BlackIceDEVMODE structure
Return value - Color depth in pixels (DWORD number)
382
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
The PrinterSettings program allows users to change settings of the Black Ice printers. It is a
dialog based MFC application.
There are five button in the form:
OK:
saves the settings and exits the program.
Cancel:
exits the program without changing the printer settings
Apply:
save the settings without exiting. You can continue to modify the controls.
Open printer:
closes the currently opened printer and tries to open the printer specified in
the Printer Name edit box.
383
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
8 The BlackIceDEVMODE.OCX
The BlackceDEVMODE.OCX is distributed in the Resource Toolkit.
In the sample below you can see how to read or modify the page orientation of the printer.
'read the Orientation
If Form1.BlackIceDEVMODE1.GetOrientation(pBlackIceDEVMODE) = 1 Then
'Portrait
384
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
. . .
Else
'Landscape
. . .
End If
'set to Portrait
bSuccess = Form1.BlackIceDEVMODE1.SetOrientation(1, pBlackIceDEVMODE)
If (bSuccess = False) Then
MsgBox "Error in calling Active X function: 'SetOrientation'"
End If
To save settings call SaveBlackIceDEVMODE function. The return value sign whether the saving
was successful or not.
bSuccess = Form1.BlackIceDEVMODE1.SaveBlackIceDEVMODE(PrinterName, pBlackIceDEVMODE)
If (bSuccess = False) Then
MsgBox ("Error saving the devmode")
Exit Sub
End If
When you are finished you have to release the memory allocated by the
LoadBlackIceDEVMODE method. You can use the ReleaseBlackIceDEVMODE method:
Call Form1.BlackIceDEVMODE1.ReleaseBlackIceDEVMODE(pBlackIceDEVMODE)
8.3.1
To set the Printer Driver settings you have to set the values of the printer DEVMODE. The
BlackIceDEVMODE.OCX contains methods to load, save and modify the printer settings.
385
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
8.3.1.1
LoadBlackIceDEVMODE
This method returns a long value that represents the BlackIceDEVMODE handle. This handle is
used by the rest of the methods to read and modify the settings of the printer.
The LoadBlackIceDEVMODE method allocates the memory space required for the DevMode
structure ( for the printer settings).
NOTE: The memory must be freed using the ReleaseBlackIceDEVMODE method.
LoadBlackIceDEVMODE(PrinterName As String) As Long
- Printer Name
- handle to the BlackIceDEVMODE. If the return value is 0, the
DevMode loading failed.
ReleaseBlackIceDEVMODE
This method frees the memory allocated for the printer settings representetd by the
BlackIceDEVMODE handle.
ReleaseBlackIceDEVMODE(pBlackIceDEVMODE) As Long
SaveBlackIceDEVMODE
8.3.2
The methods from the BlackIceDEVMODE.OCX are grouped as the controls of the Printer
Driver User Interface. The Black Ice Printer Driver User Interface has 4 tab controls.
1. Device Settings
2. File Formats
3. Filename Generation
4. Start Application
All the values from the user interface can be set programmatically using the functions from the
BlackIceDEVMODE.OCX.
386
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
8.3.3
8.3.3.1
GetPaperSize
Returns the value of the dmPaperSize member of the DevMode. Represents the value of the
'Paper Size' combo box.
GetPaperSize(pBlackIceDEVMODE As Long) As Integer
Input value
- handle to the BlackIceDEVMODE
Return value - paper size (integer number)
8.3.3.2
SetPaperSize
Sets the dmPaperSize member of the DevMode. Sets the value of the 'Paper Size' combo box.
SetPaperSize(papersize As Integer, pBlackIceDEVMODE As Long ) As Boolean
GetPageWidthInPixels
Returns the value of the PaperWidthInPixels member of the BlackIceDEVMODE. Represents the
value of the 'Paper Width' edit box.
GetPageWidthInPixels(pBlackIceDEVMODE As Long) As Long
Input value
- handle to the BlackIceDEVMODE
Return value - paper width in pixels ( As a Long number)
8.3.3.4
SetPaperWidthInPixel
Sets the PaperWidthInPixels member of the BlackIceDEVMODE. Sets the value of the 'Paper
Width' edit box.
SetPaperWidthInPixel(paperwidth As Long, pBlackIceDEVMODE As Long) As Boolean
GetPageHeightInPixels
387
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
Input value
- handle to the BlackIceDEVMODE
Return value - paper height in pixels
8.3.3.6
SetPaperHeightInPixel
Sets the PaperHeightInPixels member of the BlackIceDEVMODE. Sets the value of the 'Paper
Height' edit box.
SetPaperHeightInPixel(paperheight As Long, pBlackIceDEVMODE As Long) As Boolean
GetFaxHeader
Returns the value of the FAXheader member of the BlackIceDEVMODE. Represents the value of
the 'Fax header' edit box.
GetFaxHeader(pBlackIceDEVMODE As Long) As Long
Input value
- handle to the BlackIceDEVMODE
Return value - fax header in pixels
8.3.3.8
SetFaxHeader
Sets the FAXheader member of the BlackIceDEVMODE. Sets the value of the 'Fax header' edit
box.
Boolean SetFaxHeader( As Long faxheader, pBlackIceDEVMODE As Long) As
IsFaxOutputEnabled
Returns the value of the BLF_FAXOUTPUT flag. Represents the value of the Create Faxable
Image checkbox.
IsFaxOutputEnabled(pBlackIceDEVMODE As Long) As Boolean
Input value
- handle to the BlackIceDEVMODE
Return value - TRUE if FaxOutput is used, otherwise FALSE
388
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
8.3.3.10
EnableFaxOutput
Sets the BLF_FAXOUTPUT flag. Sets the value of the Create Faxable Image checkbox.
EnableFaxOutput(pBlackIceDEVMODE As Long) As Boolean
Input value
- handle to the BlackIceDEVMODE.
Return value - TRUE if the flag was successfully set, otherwise FALSE.
8.3.3.11
DisableFaxOutput
Sets the BLF_FAXOUTPUT flag to 0 (false). Sets the value of the Create Faxable Image
checkbox UNCHECKED.
DisableFaxOutput(pBlackIceDEVMODE As Long) As Boolean
Input value
- handle to the BlackIceDEVMODE.
Return value - TRUE if the flag was successfully set to 0 (false), otherwise FALSE.
8.3.3.12
IsAdvancedPaperSizeEnabled
Returns the value of the BLF_ADVANCEDPAPERSIZE flag. Represents the value of the
Advanced Papersize checkbox.
IsAdvancedPaperSizeEnabled(pBlackIceDEVMODE As Long) As Boolean
Input value
- handle to the BlackIceDEVMODE
Return value - TRUE if Advanced Papersize is used, otherwise FALSE
8.3.3.13
EnableAdvancedPaperSize
Sets the BLF_ADVANCEDPAPERSIZE flag. Sets the value of the Advanced Papersize
checkbox.
EnableAdvancedPaperSize(pBlackIceDEVMODE As Long) As Boolean
Input value
- handle to the BlackIceDEVMODE.
Return value - TRUE if the flag was successfully set, otherwise FALSE.
8.3.3.14
DisableAdvancedPaperSize
Sets the BLF_ADVANCEDPAPERSIZE flag to 0 (false). Sets the value of the Advanced
Papersize checkbox UNCHECKED.
DisableAdvancedPaperSize(pBlackIceDEVMODE As Long) As Boolean
Input value
- handle to the BlackIceDEVMODE.
Return value - TRUE if the flag was successfully set to 0 (false), otherwise FALSE.
389
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
8.3.3.15
GetOrientation
Returns the value of the dmOrientation member of the DevMode. Represents the value of the
'Orientation' radio button.
GetOrientation(pBlackIceDEVMODE As Long) As Integer
Input value
- handle to the BlackIceDEVMODE
Return value - If the value is 1: the orientation is Portrait, if the value is 2: the orientation is
Landscape
8.3.3.16
SetOrientation
Sets the dmOrientation member of the DevMode. Sets the value of the 'Orientation' radio button.
SetOrientation(Orientation As Integer, pBlackIceDEVMODE As Long) As Boolean
IsRotatePaperEnabled
Returns the value of the BLF_ROTATEPAPER flag. Represents the value of the Rotate
Landscape image to Portrait checkbox.
IsRotatePaperEnabled(pBlackIceDEVMODE As Long) As Boolean
Input value
- handle to the BlackIceDEVMODE
Return value - TRUE if Rotate Landscape image to Portrait is used, otherwise FALSE
8.3.3.18
EnableRotatePaper
Sets the BLF_ROTATEPAPER flag. Sets the value of the Rotate Landscape image to Portrait
checkbox.
EnableRotatePaper(pBlackIceDEVMODE As Long) As Boolean
Input value
- handle to the BlackIceDEVMODE.
Return value - TRUE if the flag was successfully set, otherwise FALSE.
8.3.3.19
DisableRotatePaper
Sets the BLF_ROTATEPAPER flag to 0 (false). Sets the value of the Rotate Landscape image
to Portrait checkbox UNCHECKED.
DisableRotatePaper(pBlackIceDEVMODE As Long) As Boolean
Input value
390
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
Return value - TRUE if the flag was successfully set to 0 (false), otherwise FALSE.
8.3.3.20
GetXDPI
Returns the value of the dmPrintQuality member of the DevMode. Represents the value of the
'Horizontal Resolution' edit box.
GetXDPI(pBlackIceDEVMODE As Long) As Integer
Input value
- handle to the BlackIceDEVMODE
Return value - Horizontal Resolution (integer number)
8.3.3.21
SetXDPI
Sets the dmPrintQuality member of the DevMode. Sets the value of the 'Horizontal Resolution'
edit box.
SetXDPI(xdpi As Integer, pBlackIceDEVMODE As Long) As Boolean
GetYDPI
Returns the value of the dmYResolutionmember of the DevMode. Represents the value of the
'Vertical Resolution' edit box.
GetYDPI(pBlackIceDEVMODE As Long) As Integer
Input value
- handle to the BlackIceDEVMODE
Return value - Vertical Resolution
8.3.3.23
SetYDPI
Sets the dmYResolutionmember of the DevMode. Sets the value of the 'Vertical Resolution' edit
box.
SetYDPI(ydpi As Integer, pBlackIceDEVMODE As Long) As Boolean
391
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
8.3.3.24
IsFaxLowOutputEnabled
Returns the value of the BLF_LOWFAXRES flag. If true, the low fax resolution (204x98) is
selected, if false the Fine Fax resolution (204x196) is selected when the Create Faxable Image
option is selected.
BOOL
IsLowFaxOutputEnabled(BlackIceDEVMODE* pDevMode);
EnableLowFaxOutput
Sets the BLF_ LOWFAXRES flag. Sets the value of the fax resolution when the Create Faxable
Image checkbox is selected.
BOOL
EnableLowFaxOutput(BlackIceDEVMODE* pDevMode);
DisableLowFaxOutput
Sets the BLF_ LOWFAXRES flag 0 (false). Sets the value of the fax resolution when the Create
Faxable Image checkbox is selected.
BOOL
DisableLowFaxOutput(BlackIceDEVMODE* pDevMode);
392
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
8.3.4
8.3.4.1
GetFileFormat
Returns the value of the Format member of the BlackIceDEVMODE. Represents the value of the
'File Format' combo box.
GetFileFormat(pBlackIceDEVMODE As Long) As Long
Input value
- handle to the BlackIceDEVMODE
Return value - File Format
8.3.4.2
SetFileFormat
Sets the Format member of the BlackIceDEVMODE. Sets the value of the 'File Format' combo
box.
SetFileFormat(fileformat As Long, pBlackIceDEVMODE As Long) As Boolean
GetLossRatio
Returns the value of the LossRatio member of the BlackIceDEVMODE. Represents the value of
the 'JPEG loss ratio' slider.
GetLossRatio(pBlackIceDEVMODE As Long) As Long
Input value
- handle to the BlackIceDEVMODE
Return value - JPEG loss ratio
8.3.4.4
SetLossRatio
Sets the LossRatio member of the BlackIceDEVMODE. Sets the value of the 'JPEG loss ratio'
slider.
SetLossRatio(lossratio As Long, pBlackIceDEVMODE As Long) As Boolean
393
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
8.3.4.5
GetColorDepth
Returns the value of the ColorMode member of the BlackIceDEVMODE. Represents the value of
the 'Color Depth' radio button.
GetColorDepth(pBlackIceDEVMODE As Long) As Long
Input value
- handle to the BlackIceDEVMODE
Return value - Color Depth
8.3.4.6
SetColorDepth
Sets the ColorMode member of the BlackIceDEVMODE. Sets the value of the 'Color Depth'
radio button.
SetColorDepth(colordepth As Long, pBlackIceDEVMODE As Long) As Boolean
IsMultipageImageEnabled
Returns the value of the BLF_MULTIIMAGE flag. Represents the value of the Create
Multipage Image checkbox.
IsMultipageImageEnabled(pBlackIceDEVMODE As Long) As Boolean
Input value
- handle to the BlackIceDEVMODE
Return value - TRUE if Create Multipage Image is used, otherwise FALSE
8.3.4.8
EnableMultipageImage
Sets the BLF_MULTIIMAGE flag. Sets the value of the Create Multipage Image checkbox.
EnableMultipageImage(pBlackIceDEVMODE As Long) As Boolean
Input value
- handle to the BlackIceDEVMODE.
Return value - TRUE if the flag was successfully set, otherwise FALSE.
8.3.4.9
DisableMultipageImage
Sets the BLF_MULTIIMAGE flag to 0 (false). Sets the value of the Create Multipage Image
checkbox UNCHECKED.
DisableMultipageImage(pBlackIceDEVMODE As Long) As Boolean
Input value
- handle to the BlackIceDEVMODE.
Return value - TRUE if the flag was successfully set to 0 (false), otherwise FALSE.
394
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
8.3.4.10
IsAppendImageEnabled
Returns the value of the BLF_MULTIIMAGE flag. Represents the value of the Create
Multipage Image checkbox.
IsAppendImageEnabled(pBlackIceDEVMODE As Long) As Boolean
Input value
- handle to the BlackIceDEVMODE
Return value - TRUE if Create Multipage Image is used, otherwise FALSE
8.3.4.11
EnableAppendImage
Sets the BLF_MULTIIMAGE flag. Sets the value of the Create Multipage Image checkbox.
EnableAppendImage(pBlackIceDEVMODE As Long) As Boolean
Input value
- handle to the BlackIceDEVMODE.
Return value - TRUE if the flag was successfully set, otherwise FALSE.
8.3.4.12
DisableAppendImage
Sets the BLF_MULTIIMAGE flag to 0 (false). Sets the value of the Create Multipage Image
checkbox UNCHECKED.
DisableAppendImage(pBlackIceDEVMODE As Long) As Boolean
Input value
- handle to the BlackIceDEVMODE.
Return value - TRUE if the flag was successfully set to 0 (false), otherwise FALSE.
8.3.4.13
IsDisableImageEnabled
Returns the value of the BLF_DISABLEIMAGE flag. Represents the value of the 'Disable Image'
checkbox.
IsDisableImageEnabled(pBlackIceDEVMODE As Long) As Boolean
Input value
- handle to the BlackIceDEVMODE
Return value - TRUE if Disable Image is used, otherwise FALSE
8.3.4.14
EnableDisableImage
Sets the BLF_DISABLEIMAGE flag. Sets the value of the 'Disable Image' checkbox.
EnableDisableImage(pBlackIceDEVMODE As Long) As Boolean
Input value
- handle to the BlackIceDEVMODE.
Return value - TRUE if the flag was successfully set, otherwise FALSE.
8.3.4.15
DisableDisableImage
Sets the BLF_DISABLEIMAGE flag to 0 (false). Sets the value of the 'Disable Image' checkbox
UNCHECKED.
395
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
Input value
- handle to the BlackIceDEVMODE.
Return value - TRUE if the flag was successfully set to 0 (false), otherwise FALSE.
8.3.4.16
IsEasternCharSupportEnabled
Returns the value of the BLF_GLYPHSUPPORT flag. Represents the value of the 'Eastern
Character Support' checkbox.
IsEasternCharSupportEnabled(pBlackIceDEVMODE As Long) As Boolean
Input value
- handle to the BlackIceDEVMODE
Return value - TRUE if Eastern Character Support is used, otherwise FALSE
8.3.4.17
EnableEasternCharSupport
Sets the BLF_GLYPHSUPPORT flag. Sets the value of the 'Eastern Character Support'
checkbox.
EnableEasternCharSupport(pBlackIceDEVMODE As Long) As Boolean
Input value
- handle to the BlackIceDEVMODE.
Return value - TRUE if the flag was successfully set, otherwise FALSE.
8.3.4.18
DisableEasternCharSupport
Sets the BLF_GLYPHSUPPORT flag to 0 (false). Sets the value of the 'Eastern Character
Support' checkbox UNCHECKED.
DisableEasternCharSupport(pBlackIceDEVMODE As Long) As Boolean
Input value
- handle to the BlackIceDEVMODE.
Return value - TRUE if the flag was successfully set to 0 (false), otherwise FALSE.
8.3.4.19
IsWriteTextEnabled
Returns the value of the BLF_WRITETEXT flag. Represents the value of the 'Write Text File'
checkbox.
IsWriteTextEnabled(pBlackIceDEVMODE As Long) As Boolean
Input value
- handle to the BlackIceDEVMODE
Return value - TRUE if Write Text File is used, otherwise FALSE
8.3.4.20
EnableWriteText
Sets the BLF_WRITETEXT flag. Sets the value of the 'Write Text File' checkbox.
EnableWriteText(pBlackIceDEVMODE As Long) As Boolean
396
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
Input value
- handle to the BlackIceDEVMODE.
Return value - TRUE if the flag was successfully set, otherwise FALSE.
8.3.4.21
DisableWriteText
Sets the BLF_WRITETEXT flag to 0 (false). Sets the value of the 'Write Text File' checkbox
UNCHECKED.
DisableWriteText(pBlackIceDEVMODE As Long) As Boolean
Input value
- handle to the BlackIceDEVMODE.
Return value - TRUE if the flag was successfully set to 0 (false), otherwise FALSE.
8.3.4.22
IsMailMergeEnabled
Returns the value of the BLF_MAILMERGE flag. Represents the value of the Mail Merge
checkbox.
IsMailMergeEnabled(pBlackIceDEVMODE As Long) As Boolean
Input value
- handle to the BlackIceDEVMODE
Return value - TRUE if WriteText File is used, otherwise FALSE
8.3.4.23
EnableMailMerge
Sets the BLF_MAILMERGE flag. Sets the value of the Mail Merge checkbox.
EnableMailMerge(pBlackIceDEVMODE As Long) As Boolean
Input value
- handle to the BlackIceDEVMODE.
Return value - TRUE if the flag was successfully set, otherwise FALSE.
8.3.4.24
DisableMailMerge
Sets the BLF_MAILMERGE flag to 0 (false). Sets the value of the Mail Merge checkbox
UNCHECKED.
DisableMailMerge(pBlackIceDEVMODE As Long) As Boolean
Input value
- handle to the BlackIceDEVMODE.
Return value - TRUE if the flag was successfully set to 0 (false), otherwise FALSE.
8.3.4.25
IsAdvancedTextEnabled
Returns the value of the BLF_ADVANCEDTEXT flag. Represents the value of the 'Save
position and style' checkbox.
IsAdvancedTextEnabled(pBlackIceDEVMODE As Long) As Boolean
Input value
- handle to the BlackIceDEVMODE
Return value - TRUE if Save position and style is used, otherwise FALSE
397
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
8.3.4.26
EnableAdvancedText
Sets the BLF_ADVANCEDTEXT flag. Sets the value of the 'Save position and style' checkbox.
EnableAdvancedText(pBlackIceDEVMODE As Long) As Boolean
Input value
- handle to the BlackIceDEVMODE.
Return value - TRUE if the flag was successfully set, otherwise FALSE.
8.3.4.27
DisableAdvancedText
Sets the BLF_ADVANCEDTEXT flag to 0 (false). Sets the value of the 'Save position and style'
checkbox UNCHECKED.
DisableAdvancedText(pBlackIceDEVMODE As Long) As Boolean
Input value
- handle to the BlackIceDEVMODE.
Return value - TRUE if the flag was successfully set to 0 (false), otherwise FALSE.
8.3.4.28
IsInternetTiffFormatEnabled
Returns the value of the BLF_INTERNETTIFF flag. Represents the value of the Internet TIFF
format checkbox.
IsInternetTiffFormatEnabled(pBlackIceDEVMODE As Long) As Boolean
Input value
- handle to the BlackIceDEVMODE
Return value - TRUE if the Internet TIFF format is used, otherwise FALSE
8.3.4.29
EnableInternetTiffFormat
Sets the BLF_INTERNETTIFF flag. Sets the value of the Internet TIFF format checkbox.
EnableInternetTiffFormat(pBlackIceDEVMODE As Long) As Boolean
Input value
- handle to the BlackIceDEVMODE.
Return value - TRUE if the flag was successfully set, otherwise FALSE.
8.3.4.30
DisableInternetTiffFormat
Sets the BLF_INTERNETTIFF flag to 0 (false). Sets the value of the Internet TIFF format
checkbox UNCHECKED.
DisableInternetTiffFormat(pBlackIceDEVMODE As Long) As Boolean
Input value
- handle to the BlackIceDEVMODE.
Return value - TRUE if the flag was successfully set to 0 (false), otherwise FALSE.
8.3.4.31
IsReverseBitOrderEnabled
Returns the value of the BLF_REVERSEFILLORDER flag. Represents the value of the Reverse
Bit Order in TIFF checkbox.
398
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
Input value
- handle to the BlackIceDEVMODE
Return value - TRUE if the Reverse Bit Order in TIFF is used, otherwise FALSE
8.3.4.32
EnableReverseBitOrder
Sets the BLF_REVERSEFILLORDER flag. Sets the value of the Reverse Bit Order in TIFF
checkbox.
EnableReverseBitOrder(pBlackIceDEVMODE As Long) As Boolean
Input value
- handle to the BlackIceDEVMODE.
Return value - TRUE if the flag was successfully set, otherwise FALSE.
8.3.4.33
DisableReverseBitOrder
Sets the BLF_REVERSEFILLORDER flag to 0 (false). Sets the value of the Reverse Bit Order
in TIFF checkbox UNCHECKED.
DisableReverseBitOrder(pBlackIceDEVMODE As Long) As Boolean
Input value
- handle to the BlackIceDEVMODE.
Return value - TRUE if the flag was successfully set to 0 (false), otherwise FALSE.
8.3.4.34
IsPageNumberingEnabled
Returns the value of the BLF_PAGENUMBERING flag. Represents the value of the Add Page
Numbering Tag checkbox.
IsPageNumberingEnabled(pBlackIceDEVMODE As Long) As Boolean
Input value
- handle to the BlackIceDEVMODE
Return value - TRUE if the Add Page Numbering Tag is used, otherwise FALSE
8.3.4.35
EnablePageNumbering
Sets the BLF_PAGENUMBERING flag. Sets the value of the Add Page Numbering Tag
checkbox.
EnablePageNumbering(pBlackIceDEVMODE As Long) As Boolean
Input value
- handle to the BlackIceDEVMODE.
Return value - TRUE if the flag was successfully set, otherwise FALSE.
8.3.4.36
DisablePageNumbering
Sets the BLF_PAGENUMBERING flag to 0 (false). Sets the value of the Add Page Numbering
Tag checkbox UNCHECKED.
DisablePageNumbering(pBlackIceDEVMODE As Long) As Boolean
399
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
Input value
- handle to the BlackIceDEVMODE.
Return value - TRUE if the flag was successfully set to 0 (false), otherwise FALSE.
8.3.4.37
GetDithering
Returns the value of the Dithering member of the BlackIceDEVMODE. Represents the value of
the 'Photo Quality' radio button.
GetDithering(pBlackIceDEVMODE As Long) As Long
Input value
- handle to the BlackIceDEVMODE
Return value - Photo Quality
8.3.4.38
SetDithering
Sets the Dithering member of the BlackIceDEVMODE. Sets the value of the 'Photo Quality' radio
button.
SetDithering(dithering As Long, pBlackIceDEVMODE As Long) As Boolean
GetBrightness
Returns the value of the Brightness member of the BlackIceDEVMODE. Represents the value of
the 'Intensity' slider.
GetBrightness(pBlackIceDEVMODE As Long) As Long
Input value
- handle to the BlackIceDEVMODE
Return value - Intensity
8.3.4.40
SetBrightness
Sets the Brightness member of the BlackIceDEVMODE. Sets the value of the 'Intensity' slider.
SetBrightness(brightness As Long, pBlackIceDEVMODE As Long) As Boolean
400
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
8.3.5
8.3.5.1
GetFileGenerationMethod
Input value
- handle to the BlackIceDEVMODE
Return value - File Name Generation Method
8.3.5.2
SetFileGenerationMethod
Sets the FileNameGenerationFlags member of the BlackIceDEVMODE. Sets the value of the 'File
Name Generation Method' combo box.
SetFileGenerationMethod(fnamegen As Long, pBlackIceDEVMODE As Long) As Boolean
GetFileNamePrefix
Returns the value of the FileNamePrefix member of the BlackIceDEVMODE. Represents the
value of the 'File Name Prefix' edit box.
GetFileNamePrefix(pBlackIceDEVMODE As Long) As String
Input value
- handle to the BlackIceDEVMODE
Return value - File Name Prefix
8.3.5.4
SetFileNamePrefix
Sets the FileNamePrefix member of the BlackIceDEVMODE. Sets the value of the 'File Name
Prefix' edit box.
SetFileNamePrefix(fnamepref As String, pBlackIceDEVMODE As Long) As Boolean
401
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
8.3.5.5
GetFileExtension
Returns the value of the FileExtension member of the BlackIceDEVMODE. Represents the value
of the 'File Name Extension' edit box.
GetFileExtension(pBlackIceDEVMODE As Long) As String
Input value
- handle to the BlackIceDEVMODE
Return value - File Name Extension
8.3.5.6
SetFileExtension
Sets the FileExtension member of the BlackIceDEVMODE. Sets the value of the 'File Name
Extension' edit box.
SetFileExtension(fnameext As String, pBlackIceDEVMODE As Long) As Boolean
IsCustomExtensionEnabled
Returns the value of the BLF_CUSTOMEXT flag. Represents the value of the 'Use Custom
Extension' checkbox.
IsCustomExtensionEnabled(pBlackIceDEVMODE As Long) As Boolean
Input value
- handle to the BlackIceDEVMODE
Return value - TRUE if Use Custom Extension is used, otherwise FALSE
8.3.5.8
EnableCustomExtension
Sets the BLF_CUSTOMEXT flag. Sets the value of the 'Use Custom Extension' checkbox.
EnableCustomExtension(pBlackIceDEVMODE As Long) As Boolean
Input value
- handle to the BlackIceDEVMODE.
Return value - TRUE if the flag was successfully set, otherwise FALSE.
8.3.5.9
DisableCustomExtension
Sets the BLF_CUSTOMEXT flag to 0 (false). Sets the value of the 'Use Custom Extension'
checkbox UNCHECKED.
DisableCustomExtension(pBlackIceDEVMODE As Long) As Boolean
Input value
- handle to the BlackIceDEVMODE.
Return value - TRUE if the flag was successfully set to 0 (false), otherwise FALSE.
402
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
8.3.5.10
GetINIFileName
Returns the value of the INIFileName member of the BlackIceDEVMODE. Represents the value
of the 'INI File Name'/'Registry path'/etc. edit box.
GetINIFileName(pBlackIceDEVMODE As Long) As String
Input value
- handle to the BlackIceDEVMODE
Return value - INI File Name/Registry Path/etc
8.3.5.11
SetINIFileName
Sets the INIFileName member of the BlackIceDEVMODE. Sets the value of the 'INI File
Name'/'Registry path'/etc. edit box.
SetINIFileName(inifname As String, pBlackIceDEVMODE As Long) As Boolean
GetImageFileName
Returns the value of the FileImageName member of the BlackIceDEVMODE. Represents the
value of the 'File Image Name' edit box if the Filename Generation method is Exact filename.
GetImageFileName(pBlackIceDEVMODE As Long) As String
Input value
- handle to the BlackIceDEVMODE
Return value - Image Filename
8.3.5.13
SetImageFileName
Sets the FileImageName member of the BlackIceDEVMODE. Sets the value of the 'File Image
Name' edit box if the Filename Generation method is Exact filename.
SetImageFileName(filename As String, pBlackIceDEVMODE As Long) As Boolean
IsKeepExistingFilesEnabled
Returns the value of the BLF_KEEPFILES flag. Represents the value of the 'Keep existing files'
checkbox.
IsKeepExistingFilesEnabled(pBlackIceDEVMODE As Long) As Boolean
403
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
Input value
- handle to the BlackIceDEVMODE
Return value - TRUE if Keep existing files is used, otherwise FALSE
8.3.5.15
EnableKeepExistingFiles
Sets the BLF_KEEPFILES flag. Sets the value of the 'Keep existing files' checkbox.
EnableKeepExistingFiles(pBlackIceDEVMODE As Long) As Boolean
Input value
- handle to the BlackIceDEVMODE.
Return value - TRUE if the flag was successfully set, otherwise FALSE.
8.3.5.16
DisableKeepExistingFiles
Sets the BLF_KEEPFILES flag to 0 (false). Sets the value of the 'Keep existing files' checkbox
UNCHECKED.
DisableKeepExistingFiles(pBlackIceDEVMODE As Long) As Boolean
Input value
- handle to the BlackIceDEVMODE.
Return value - TRUE if the flag was successfully set to 0 (false), otherwise FALSE.
8.3.5.17
GetOutputDirectory
Returns the value of the OutputDirectory member of the BlackIceDEVMODE. Represents the
value of the 'Output Directory' edit box.
GetOutputDirectory(pBlackIceDEVMODE As Long) As String
Input value
- handle to the BlackIceDEVMODE
Return value - Output Directory
8.3.5.18
SetOutputDirectory
Sets the OutputDirectory member of the BlackIceDEVMODE. Sets the value of the 'Output
Directory' edit box.
SetOutputDirectory(outputdir As String, pBlackIceDEVMODE As Long) As Boolean
IsGroupFileDisabled
Returns the value of the BLF_DISABLEGROUPFILE flag. Represents the value of the 'Disable
Group File' checkbox.
IsGroupFileDisabled(pBlackIceDEVMODE As Long) As Boolean
Input value
404
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
DisableGroupFile
Sets the BLF_DISABLEGROUPFILE flag. Sets the value of the 'Disable Group File' checkbox.
DisableGroupFile(pBlackIceDEVMODE As Long) As Boolean
Input value
- handle to the BlackIceDEVMODE.
Return value - TRUE if the flag was successfully set, otherwise FALSE.
8.3.5.21
EnableGroupFile
Sets the BLF_DISABLEGROUPFILE flag to 0 (false). Sets the value of the 'Disable Group File'
checkbox UNCHECKED.
EnableGroupFile(pBlackIceDEVMODE As Long) As Boolean
Input value
- handle to the BlackIceDEVMODE.
Return value - TRUE if the flag was successfully set to 0 (false), otherwise FALSE.
8.3.5.22
IsDeleteGroupFileEnabled
Returns the value of the BLF_DELETEGROUPFILE flag. Represents the value of the 'Delete
Group File After Printing' checkbox.
IsDeleteGroupFileEnabled(pBlackIceDEVMODE As Long) As Boolean
Input value
- handle to the BlackIceDEVMODE
Return value - TRUE if Delete Group File After Printing is used, otherwise FALSE
8.3.5.23
EnableDeleteGroupFile
Sets the BLF_DELETEGROUPFILE flag. Sets the value of the 'Delete Group File After Printing'
checkbox.
EnableDeleteGroupFile(pBlackIceDEVMODE As Long) As Boolean
Input value
- handle to the BlackIceDEVMODE.
Return value - TRUE if the flag was successfully set, otherwise FALSE.
8.3.5.24
DisableDeleteGroupFile
Sets the BLF_DELETEGROUPFILE flag to 0 (false). Sets the value of the 'Delete Group File
After Printing' checkbox UNCHECKED.
DisableDeleteGroupFile(pBlackIceDEVMODE As Long) As Boolean
Input value
- handle to the BlackIceDEVMODE.
Return value - TRUE if the flag was successfully set to 0 (false), otherwise FALSE.
405
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
8.3.6
8.3.6.1
IsStartApplicationEnabled
Returns the value of the BLF_LAUNCHAPP flag. Represents the value of the 'Enable Start
Application' checkbox.
IsStartApplicationEnabled(pBlackIceDEVMODE As Long) As Boolean
Input value
- handle to the BlackIceDEVMODE
Return value - TRUE if Enable Start Application is used, otherwise FALSE
8.3.6.2
EnableStartApplication
Sets the BLF_LAUNCHAPP flag. Sets the value of the 'Enable Start Application' checkbox.
EnableStartApplication(pBlackIceDEVMODE As Long) As Boolean
Input value
- handle to the BlackIceDEVMODE.
Return value - TRUE if the flag was successfully set, otherwise FALSE.
8.3.6.3
DisableStartApplication
Sets the BLF_LAUNCHAPP flag to 0 (false). Sets the value of the 'Enable Start Application'
checkbox UNCHECKED.
DisableStartApplication(pBlackIceDEVMODE As Long) As Boolean
Input value
- handle to the BlackIceDEVMODE.
Return value - TRUE if the flag was successfully set to 0 (false), otherwise FALSE.
8.3.6.4
GetApplicationPath
Returns the value of the ApplicationPath member of the BlackIceDEVMODE. Represents the
value of the 'Output Directory' edit box.
GetApplicationPath(pBlackIceDEVMODE As Long) As String
Input value
- handle to the BlackIceDEVMODE
Return value - Application Path
8.3.6.5
SetApplicationPath
Sets the ApplicationPath member of the BlackIceDEVMODE. Sets the value of the 'Application
Path' edit box.
SetApplicationPath(applicationpath As String ,pBlackIceDEVMODE As Long) As Boolean
- Application Path
406
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
IsStartBeforePrint
Returns the value of the BLF_STARTBEFOREPRINT flag. Represents the value of the 'Start
Before Printing' radio button.
IsStartBeforePrint(pBlackIceDEVMODE As Long) As Boolean
Input value
- handle to the BlackIceDEVMODE
Return value - TRUE if Start Before Printing is used, otherwise FALSE (The driver will start
application after printing)
8.3.6.7
EnableStartBeforePrint
Sets the BLF_STARTBEFOREPRINT flag. Sets the value of the 'Start Before Printing' radio
button.
EnableStartBeforePrint(pBlackIceDEVMODE As Long) As Boolean
Input value
- handle to the BlackIceDEVMODE.
Return value - TRUE if the flag was successfully set, otherwise FALSE.
8.3.6.8
DisableStartBeforePrint
Sets the BLF_STARTBEFOREPRINT flag to 0 (false). Sets the value of the 'Start Before
Printing' radio button UNCHECKED. (Sets the value of the 'Start After Printing' radio button
CHECKED)
DisableStartBeforePrint(pBlackIceDEVMODE As Long) As Boolean
Input value
- handle to the BlackIceDEVMODE.
Return value - TRUE if the flag was successfully set to 0 (false), otherwise FALSE.
8.3.6.9
IsPassParametersEnabled
Returns the value of the BLF_PASSPARAMETERS flag. Represents the value of the 'Pass
Parameters' checkbox.
IsPassParametersEnabled(pBlackIceDEVMODE As Long) As Boolean
Input value
- handle to the BlackIceDEVMODE
Return value - TRUE if Pass Parameters is used, otherwise FALSE
8.3.6.10
EnablePassParameters
Sets the BLF_PASSPARAMETERS flag. Sets the value of the 'Pass Parameters' checkbox.
EnablePassParameters(pBlackIceDEVMODE As Long) As Boolean
407
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
Input value
- handle to the BlackIceDEVMODE.
Return value - TRUE if the flag was successfully set, otherwise FALSE.
8.3.6.11
DisablePassParameters
Sets the BLF_PASSPARAMETERS flag to 0 (false). Sets the value of the 'Pass Parameters'
checkbox UNCHECKED.
DisablePassParameters(pBlackIceDEVMODE As Long) As Boolean
Input value
- handle to the BlackIceDEVMODE.
Return value - TRUE if the flag was successfully set to 0 (false), otherwise FALSE.
8.3.6.12
IsStartNormal
Returns the value of the BLF_STARTNORMAL flag. Represents the value of the 'Normal' radio
button.
IsStartNormal(pBlackIceDEVMODE As Long) As Boolean
Input value
- handle to the BlackIceDEVMODE
Return value - TRUE if Start Application In a Normal Window is used, otherwise FALSE
8.3.6.13
EnableStartNormal
Sets the BLF_STARTNORMAL flag. Sets the value of the 'Normal' radio button. The driver will
start the application In a Normal window
EnableStartNormal(pBlackIceDEVMODE As Long) As Boolean
Input value
- handle to the BlackIceDEVMODE.
Return value - TRUE if the flag was successfully set, otherwise FALSE.
8.3.6.14
DisableStartNormal
Sets the BLF_STARTNORMAL flag to 0 (false). Sets the value of the 'Normal' radio button
UNCHECKED.
DisableStartNormal(pBlackIceDEVMODE As Long) As Boolean
Input value
- handle to the BlackIceDEVMODE.
Return value - TRUE if the flag was successfully set to 0 (false), otherwise FALSE.
8.3.6.15
IsStartMinimized
Returns the value of the BLF_STARTMINIMIZED flag. Represents the value of the 'Minimized'
radio button.
IsStartMinimized(pBlackIceDEVMODE As Long) As Boolean
Input value
- handle to the BlackIceDEVMODE
Return value - TRUE if the Start Application In Minimized Window is used, otherwise FALSE
408
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
8.3.6.16
EnableStartMinimized
Sets the BLF_STARTMINIMIZED flag. Sets the value of the 'Minimized' radio button. The
driver will start the application In a Minimized window
EnableStartMinimized(pBlackIceDEVMODE As Long) As Boolean
Input value
- handle to the BlackIceDEVMODE.
Return value - TRUE if the flag was successfully set, otherwise FALSE.
8.3.6.17
DisableStartMinimized
Sets the BLF_STARTMINIMIZED flag to 0 (false). Sets the value of the 'Minimized' radio
button UNCHECKED.
DisableStartMinimized(pBlackIceDEVMODE As Long) As Boolean
Input value
- handle to the BlackIceDEVMODE.
Return value - TRUE if the flag was successfully set to 0 (false), otherwise FALSE.
8.3.6.18
IsStartHidden
Returns the value of the BLF_STARTHIDDEN flag. Represents the value of the 'Hidden' radio
button.
IsStartHidden(pBlackIceDEVMODE As Long) As Boolean
Input value
- handle to the BlackIceDEVMODE
Return value - TRUE if Start Application Hidden is used, otherwise FALSE
8.3.6.19
EnableStartHidden
Sets the BLF_STARTHIDDEN flag. Sets the value of the 'Hidden' radio button. The driver will
start the application Hidden
EnableStartHidden(pBlackIceDEVMODE As Long) As Boolean
Input value
- handle to the BlackIceDEVMODE.
Return value - TRUE if the flag was successfully set, otherwise FALSE.
8.3.6.20
DisableStartHidden
Sets the BLF_STARTHIDDEN flag to 0 (false). Sets the value of the 'Hidden' radio button
UNCHECKED.
DisableStartHidden(pBlackIceDEVMODE As Long) As Boolean
Input value
- handle to the BlackIceDEVMODE.
Return value - TRUE if the flag was successfully set to 0 (false), otherwise FALSE.
409
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
8.3.6.21
IsMessagingInterfaceEnabled
Returns the value of the BLF_SENDMESSAGE flag. Represents the value of the 'Disable the
Messaging Interface' checkbox.
IsMessagingInterfaceEnabled(pBlackIceDEVMODE As Long) As Boolean
Input value
- handle to the BlackIceDEVMODE
Return value - TRUE if the Messaging Interface is used (the check box is unchecked), otherwise
FALSE (the Messaging Interface will not be used and the check box is checked)
8.3.6.22
EnableMessagingInterface
Sets the BLF_SENDMESSAGE flag. Sets the value of the 'Disable the Messaging Interface'
checkbox UNCHECKED. The driver will use the Messaging Interface.
EnableMessagingInterface(pBlackIceDEVMODE As Long) As Boolean
Input value
- handle to the BlackIceDEVMODE.
Return value - TRUE if the flag was successfully set, otherwise FALSE.
8.3.6.23
DisableMessagingInterface
Sets the BLF_SENDMESSAGE flag to 0 (false). Sets the value of the 'Disable the Messaging
Interface' checkbox. The driver will not use the Messaging Interface.
DisableMessagingInterface(pBlackIceDEVMODE As Long) As Boolean
Input value
- handle to the BlackIceDEVMODE.
Return value - TRUE if the flag was successfully set to 0 (false), otherwise FALSE.
8.3.7
Miscellaneous methods
8.3.7.1
GetInterfaceName
Returns the value of the InterfaceName member of the BlackIceDEVMODE. The InterfaceName
member stores the name of the messaging interface.
InterfaceName(pBlackIceDEVMODE As Long) As String
Input value
- handle to the BlackIceDEVMODE
Return value - Interface Name
8.3.7.2
SetInterfaceName
Sets the InterfaceName member of the BlackIceDEVMODE. The InterfaceName member stores
the name of the messaging interface.
SetInterfaceName(intfname As String, pBlackIceDEVMODE As Long) As Boolean
- Interface Name
410
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
GetPaperLength
Returns the value of the dmPaperLength member of the DevMode. (DM.dmPaperLength member
of the BlackIceDEVMODE ) This value represent the 'Actual paper length'.
GetPaperLength(pBlackIceDEVMODE As Long) As Integer
Input value
- handle to the BlackIceDEVMODE
Return value - Actual paper length
8.3.7.4
SetPaperLength
IsTiffDllEnabled
Returns the value of the BLF_ENABLETIFFDLL flag. If the flag is set, the printer driver will
load the TIFF32.DLL. This flag can only be set programmatically.
IsTiffDllEnabled(pBlackIceDEVMODE As Long) As Boolean
Input value
- handle to the BlackIceDEVMODE
Return value - TRUE if the TIFF32.DLL is enabled, otherwise FALSE
8.3.7.6
EnableTiffDll
Sets the BLF_ENABLETIFFDLL flag. If the flag is set, the printer driver will load the
TIFF32.DLL. This flag can only be set programmatically.
EnableTiffDll(pBlackIceDEVMODE As Long) As Boolean
Input value
- handle to the BlackIceDEVMODE.
Return value - TRUE if the flag was successfully set, otherwise FALSE.
8.3.7.7
DisableTiffDll
Sets the BLF_ENABLETIFFDLL flag to 0 (false). If the flag is set, the printer driver will load the
TIFF32.DLL. This flag can only be set programmatically.
411
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
Input value
- handle to the BlackIceDEVMODE.
Return value - TRUE if the flag was successfully set to 0 (false), otherwise FALSE.
8.3.7.8
IsJpegDllEnabled
Returns the value of the BLF_ENABLEJPEGDLL flag. If the flag is set, the printer driver will
load the TIFF32.DLL. This flag can only be set programmatically.
IsJpegDllEnabled(pBlackIceDEVMODE As Long) As Boolean
Input value
- handle to the BlackIceDEVMODE
Return value - TRUE if the JPEG32.DLL is enabled, otherwise FALSE
8.3.7.9
EnableJpegDll
Sets the BLF_ENABLEJPEGDLL flag. If the flag is set, the printer driver will load the
JPEG32.DLL. This flag can only be set programmatically.
EnableJpegDll(pBlackIceDEVMODE As Long) As Boolean
Input value
- handle to the BlackIceDEVMODE.
Return value - TRUE if the flag was successfully set, otherwise FALSE.
8.3.7.10
DisableJpegDll
Sets the BLF_ENABLEJPEGDLL flag to 0 (false). If the flag is set, the printer driver will load
the JPEG32.DLL. This flag can only be set programmatically.
DisableJpegDll(pBlackIceDEVMODE As Long) As Boolean
Input value
- handle to the BlackIceDEVMODE.
Return value - TRUE if the flag was successfully set 0 (false), otherwise FALSE.
8.3.7.11
GetTIFFDLLName
Input value
- handle to the BlackIceDEVMODE
Return value - TIFFDLLName
412
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
8.3.7.12
SetTIFFDLLName
GetJPEGDLLName
Input value
- handle to the BlackIceDEVMODE
Return value - JPEGDLLName
8.3.7.14
SetJPEGDLLName
GetResourceDLLName
Input value
- handle to the BlackIceDEVMODE
Return value - ResourceDLLName
8.3.7.16
SetResourceDLLName
GetBitsPerPixel
Input value
- handle to the BlackIceDEVMODE
Return value - Color depth in pixels
414
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
The PrinterSettings program allows users to change settings of the Black Ice printers.
OK:
save the settings and exit.
Cancel:
exit the program without changing the settings.
Apply:
save the settings without exiting. You can continue to modify the controls.
Open printer:
close previously opened printer, and try to open the new printer specified
in the Printer name text box.
415
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
416
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
Instead of one dialog box, the settings are divided into two groups that can be found in two
separate dialogs on Xpand W2K: Properties and Printing Preferences. On NT 4.0 it is
named Properties and Document Defaults.
Properties: this dialog can be opened by clicking on the Black Ice printer with the right
mouse button and choosing Properties. The parameters available in this dialog will be used by
every printing application when printing to this printer. The last property sheet contains Black
Ice specific settings.
Document Defaults: another group of settings can be found by clicking on the Black Ice
printer with the right mouse button and selecting Document Defaults. This dialog contains
default values for document related and other settings. However; if a printing application
wants to modify some of these settings it can call the DocumentProperties() function to do so.
Even two or more applications running simultaneously can use different settings.
The XP/W2K and NT driver writes information to a named pipe instead of sending actual
messages.
The user needs Administrator privileges to be able to modify the printers settings on XP/W2K
and NT.
417
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
419
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
Technical Support
For Technical support contact us via E-mail or Fax:
E-mail: driversupport@blackice.com;
Fax (603) 672-4112
E-mail is the most expedient method of communication and provides a more reliable answer to
your issues, because it reduces miscommunication and provides a log of the questions and
answers for future reference.
Please include the version number of the product that you are using and the platform on which it
is installed.
420
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
421
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
Printing tips
How to print a document to a fax compatible
image without repaginating the document.
When the printer driver is set to Fax paper size and 204x196 or 204x98 DPI resolution, the application
(i.e. MS WORD) will repaginate the document to reflect the printer driver settings. This can cause
problems in the document, because parts of the documents can be shifted from one page to another,
single line texts will not fit to a single line anymore, etc.
In order to avoid the repagination, but still generate a faxable image, please follow the steps below:
1. On the Device settings tab of the Printers Document defaults or Printing Preferences dialog
box check the Create faxable image.
2. Set the paper size and the resolution to the same paper size and resolution your document was
formatted with.
3. Print the document.
This way when the application will check what the printer settings are, it will find that the printer setting
are similar to the document settings, therefore there is no need to repaginate the document. When the
document is printed, the printer driver will print the document with the document settings and at the
very end will resize the generated image to fax size.
423
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
Troubleshooting
Creating Installations For Users
To configure the printer driver, with default settings, for individual users under Windows 2000
and XP you have to modify the INI file shipped with the driver. For details, please see the
Components of the Resource Tool Kit chapter and the How to set the printer setting at install
time using an INI file section. To verify the correct settings, install the printer driver as
administrator. When the printer driver is installed, select the installed printer driver Properties.
Click on the Advanced Tab. When the advanced window opens, click on the Printing Default...
button to display, verify or change the settings for a system user.
424
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
425
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
426
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
427
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
2. The Enable advanced printing features check box on the Advanced tab of the printers
Properties dialog box has been unchecked. By unchecking the Enable advanced printing
features check box, the system will force the printer driver to use the RAW data type.
SOLUTION: Open the Black Ice printers Properties dialog box and select the Advanced tab.
Make sure that the Enable advanced printing features check box is checked. Click the Print
Processor button and select NT EMF 1.003 as the data type.
3. The printers data type was manually changed to a data type different than NT EMF 1.003.
SOLUTION: Open the Black Ice printers Properties dialog box and select the Advanced tab.
Click the Print Processor button and select NT EMF 1.003 as the data type.
HKEY_LOCAL_MACHINE\SOFTWARE\Black
Ice Software, Inc\ Cannot Created message
Problem description:
The HKEY_LOCAL_MACHINE\SOFTWARE\Black Ice Software, Inc\ registry key cannot be
created message is received at installation time on the Terminal Server.
Solution:
This message is received at installation time if the install cannot create the
HKEY_LOCAL_MACHINE\SOFTWARE\Black Ice Software, Inc\ registry key for some
reason. This registry key is vital to use the printer drivers Launch Application option on the
Terminal Server. If the install could not create the key in the registry the system administrator has
to create this key manually. When the key is created, add READ and WRITE permission to the
key for all the users who will use the Black Ice printer to launch an application.
428
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
Solution:
The document was created using the DPI settings of the default printer. Most applications (for
example, Word, Excel, etc.) store the printer settings in the document.
For example if the default printer was set to print at 600 DPI when the document was created, the 600
DPI setting is saved in the document. Because the Black Ice Printer Driver supports the 600 DPI
setting, the application will send the document to the printer with the documents DPI setting. To use
the Black Ice printer settings in the application, go to the Page Setup and change the DPI setting to the
required value and save the document. If the application does not have a Page Setup option, try the
Print or Printing Options, select the Black Ice Printer and save the document. In this case the document
will be saved with the Black Ice Printer DPI settings.
Problem description:
I am logged in as regular user with no administrative rights. The Start application option at the printer
Printinng Preferences is checked but the application does not start.
The same application is started by the printer driver if I am logged in as administrator.
Solution:
This problem can occur on NT/Win2000/Xp and Terminal Server systems.
The printer driver writes information about the application to be started into the
HKEY_LOCAL_MACHINE\SOFTWARE\Black Ice Software, Inc. registry key.
That part of the printer driver which writes this information into the registry key runs on the
current user account. If the current user account does not have write permission to the
HKEY_LOCAL_MACHINE\SOFTWARE\Black Ice Software, Inc. registry key, the
application cannot be started.
In order to allow the printer driver to start applications for regular users, before or after printing,
the system administrator has to give write permission to the
HKEY_LOCAL_MACHINE\SOFTWARE\Black Ice Software, Inc. registry key.
431
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
432
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
Index
A
Add Fax header....................56, 76, 268, 288
Add Page Numbering Tag. . .43, 65, 256, 276
AdvancedPaperSize........................................
DisableAdvancedPaperSize................171, 206, 358, 389
EnableAdvancedPaperSize.................171, 206, 358, 389
IsAdvancedPaperSizeEnabled.............171, 206, 358, 389
AdvancedText................................................
DisableAdvancedText.........................180, 215, 366, 398
EnableAdvancedText..........................180, 215, 366, 398
IsAdvancedTextEnabled.....................180, 215, 366, 397
AppendImage.................................................
DisableAppendImage..........................178, 213, 363, 395
EnableAppendImage...........................177, 212, 363, 395
IsAppendImageEnabled......................177, 212, 363, 395
B
Bicom...............................................134, 337
BlackIceDEVMODE C++ Sample. .199, 383
BlackIceDEVMODE VB Sample............414
BlackIceDEVMODE.DLL...............164, 352
BlackIceDEVMODE.OCX..............200, 384
BLICECTR.DLL.....................................127
Brightness.......................................................
GetBrightness.....................................183, 218, 368, 400
SetBrightness......................................183, 218, 369, 400
C
Changing DEVMODE with DLL functions
.......................................................167, 355
Changing DEVMODE with OCX functions
.......................................................202, 386
Color Depth ......................................61, 273
ColorDepth....................................................
GetColorDepth....................................176, 211, 362, 394
SetColorDepth....................................176, 211, 362, 394
Commetrex.......................................134, 337
configuration on Windows 95/98/ME....265,
285
Configuration on Windows XP/W2K and NT
.................................................................73
D
default page orientation 36, 57, 77, 249, 269,
289
Default resolution. .36, 58, 78, 250, 270, 289
Default settings are not set for all users after
installation on Win2000 and XP ........429
DeleteGroupFile.............................................
DisableDeleteGroupFile.....................189, 224, 373, 405
EnableDeleteGroupFile......................189, 224, 373, 405
IsDeleteGroupFileEnabled..................189, 224, 373, 405
DisableLowFaxOutput.....................361, 392
Distorted images from MS Word and Excel
...............................................................430
dithering...............................43, 65, 256, 277
Dithering........................................................
GetDithering.......................................182, 217, 368, 400
SetDithering........................................183, 218, 368, 400
433
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
EndWaitPrnPipe.......................................128
F
Fax Boards.......................................134, 337
Fax header..........................................35, 248
FaxHeader......................................................
GetFaxHeader.....................................170, 205, 357, 388
SetFaxHeader.....................................170, 205, 357, 388
FaxLowOutput...............................................
DisableFaxOutput...............................................173, 209
EnableFaxOutput................................................173, 208
IsLowFaxOutputEnabled....................................173, 208
FaxOutput......................................................
DisableFaxOutput...............................170, 205, 357, 389
EnableFaxOutput................................170, 205, 357, 389
IsFaxOutputEnabled...........................170, 205, 357, 388
FileFormat......................................................
GetFileFormat.....................................175, 210, 361, 393
SetFileFormat.....................................176, 211, 361, 393
FileGenerationMethod...................................
GetFileGenerationMethod..................184, 219, 369, 401
SetFileGenerationMethod...................185, 220, 369, 401
I
ImageFileName..............................................
INI file......................................................153
INIFileName...................................................
GetINIFileName..................................186, 221, 371, 403
SetINIFileName..................................186, 221, 371, 403
InternetTiffFormat..........................................
DisableInternetTiffFormat..................181, 216, 367, 398
EnableInternetTiffFormat...................181, 216, 366, 398
IsInternetTiffFormatEnabled...............181, 216, 366, 398
JPEGDLLName.............................................
GetJPEGDLLName.............................198, 233, 381, 413
SetJPEGDLLName.............................198, 233, 381, 413
K
Keep existing files..48, 69, 87, 261, 281, 299
KeepExistingFiles...........................................
DisableKeepExistingFiles..................187, 222, 372, 404
EnableKeepExistingFiles....................187, 222, 372, 404
IsKeepExistingFilesEnabled...............187, 222, 371, 403
L
Landscape..............36, 57, 77, 249, 269, 289
LoadBlackIceDEVMODE.....166, 201, 354,
386
LossRatio.......................................................
GetLossRatio......................................176, 211, 361, 393
SetLossRatio.......................................176, 211, 362, 393
M
MailMerge......................................................
DisableMailMerge..............................180, 215, 365, 397
EnableMailMerge...............................180, 215, 365, 397
IsMailMergeEnabled..........................180, 215, 365, 397
Messaging Interface.......................................
Change the name.........................................................161
434
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
N
Natural Micro Systems.....................135, 338
O
OCX Functions................................201, 385
OpenPrinter..............................................335
Orientation.....................................................
GetOrientation....................................171, 206, 358, 390
SetOrientation.....................................171, 206, 358, 390
output directory..............................................
different output directory for each user.......................160
OutputDirectory.............................................
GetOutputDirectory............................188, 223, 372, 404
SetOutputDirectory.............................188, 223, 372, 404
P
Page Sizes Supported. .55, 75, 247, 267, 287
PageHeightInPixels........................................
GetPageHeightInPixels.......................169, 204, 356, 387
SetPaperHeightInPixel........................169, 204, 356, 388
PageNumbering..............................................
DisablePageNumbering......................182, 217, 368, 399
EnablePageNumbering.......................182, 217, 368, 399
IsPageNumberingEnabled...................182, 217, 367, 399
PageWidthInPixels.........................................
GetPageWidthInPixels........................169, 204, 356, 387
SetPaperWidthInPixel.........................169, 204, 356, 387
Paper size.......................................................
advanced paper size......................................................36
Paper Sizes.....................................................
supported......................................................................34
PaperLength...................................................
GetPaperLength..................................195, 231, 379, 411
SetPaperLength...................................196, 231, 379, 411
PaperSize........................................................
GetPaperSize......................................168, 203, 355, 387
SetPaperSize.......................................169, 204, 356, 387
PassParameters...............................................
DisablePassParameters.......................192, 227, 376, 408
EnablePassParameters........................192, 227, 375, 407
IsPassParametersEnabled...................192, 227, 375, 407
Project settings...........................................91
Project Settings..............................................
XP/W2k/NT and Terminal Server................................91
R
ReleaseBlackIceDEVMODE. 166, 202, 355,
386
Resource Toolkit..............................137, 339
ResourceDLLName.......................................
GetResourceDLLName.......................198, 234, 381, 413
SetResourceDLLName........................198, 234, 381, 413
RotatePaper....................................................
DisableRotatePaper............................172, 207, 359, 390
EnableRotatePaper..............................172, 207, 359, 390
IsRotatePaperEnabled.........................172, 207, 359, 390
S
Sample Code....................................129, 335
SaveBlackIceDEVMODE167, 202, 355, 386
SetListeningPriority..................................128
SetYDPI...................................................360
Sharp....................................43, 65, 256, 277
Smooth.................................43, 65, 256, 277
spatial dithering....................43, 65, 256, 277
Specifying Graphic Resolution.....36, 58, 78,
250, 270, 289
Specifying Page Orientation.36, 57, 77, 249,
269, 289
Specifying Paper Size. .34, 55, 75, 247, 267,
287
Specifying the File Format...40, 60, 80, 252,
272, 292
Standard FAX mode....37, 58, 78, 250, 270,
290
Start Application - functions....225, 374, 406
StartApplication.............................................
DisableStartApplication......................191, 226, 374, 406
EnableStartApplication.......................191, 226, 374, 406
IsStartApplicationEnabled..................190, 225, 374, 406
StartBeforePrint.............................................
DisableStartBeforePrint......................192, 227, 375, 407
EnableStartBeforePrint.......................192, 227, 375, 407
435
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
StartHidden....................................................
DisableStartHidden.............................194, 229, 377, 409
EnableStartHidden..............................194, 229, 377, 409
IsStartHidden......................................194, 229, 377, 409
StartMinimized...............................................
DisableStartMinimized.......................194, 229, 377, 409
EnableStartMinimized........................193, 228, 377, 409
IsStartMinimized................................193, 228, 376, 408
StartNormal....................................................
DisableStartNormal............................193, 228, 376, 408
EnableStartNormal.............................193, 228, 376, 408
IsStartNormal......................................193, 228, 376, 408
TIFFDLLName..............................................
GetTIFFDLLName..............................197, 233, 380, 412
SetTIFFDLLName..............................197, 233, 380, 413
X
XDPI..............................................................
GetXDPI.............................................172, 207, 359, 391
SetXDPI..............................................172, 207, 359, 391
Y
YDPI..............................................................
GetYDPI.............................................173, 208, 360, 391
SetYDPI......................................................173, 208, 391
Z
ZSoft PCX Image Format....40, 61, 253, 273
Advanced Papersize ...57, 77, 249, 269, 289
Black Ice DEVMODE ...................102, 312
BLACKICE_PRINTER_MESSAGE . .117,
326
436
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 - 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution
437
292 Route 101, Amherst, NH 03031 Tel: (603)673-1019 Fax: (603)672-4112
1989 2001 Black Ice Software Inc.
Information Contained Is Not For Reproduction Or Distribution