DOCINFO Structure

Type DOCINFO
  cbSize As Long
  lpszDocName As String
  lpszOutput As Long
  lpszDatatype As String
  fwType As Long
End Type

Description & Usage

The DOCINFO structure holds information about a print job. This information is mainly used to give a description of the document to the print spooler. It also specifies whether to send the data to the printer or to a print file, as well as specifying a few additional options.

Visual Basic-Specific Issues

None.

Data Members

cbSize
The size in bytes of the structure.
lpszDocName
The name of the document being printed.
lpszOutput
To send the output to a print file, this is a pointer to a null-terminated string identifying the file to create. To send the output to the printer itself, set this to 0.
lpszDatatype
The data type of the document being printed, if applicable.
fwType
Zero or more of the following flags specifying additional options for printing:
DI_APPBANDING
If the program uses banding, set this flag to provide optimal performance during printing.
DI_ROPS_READ_DESTINATION
Use raster operations which involve reading the destination surface.

Constant Definitions

Const DI_APPBANDING = &H1
Const DI_ROPS_READ_DESTINATION = &H2

Used By

StartDoc

Go back to the alphabetical Structure listing.
Go back to the Reference section index.


Last Modified: November 2, 1999
This page is copyright © 1999 Paul Kuliniewicz. Copyright Information Revised October 29, 2000
Go back to the Windows API Guide home page.
E-mail: vbapi@vbapi.com Send Encrypted E-Mail
This page is at http://www.vbapi.com/ref/d/docinfo.html