Share via


Printer Members

Include Protected Members
Include Inherited Members

Provides a Printer object for use by upgraded Visual Basic 6.0 printing code.

The Printer type exposes the following members.

Constructors

  Name Description
Public method Printer Initializes a new instance of the Printer class.

Top

Methods

  Name Description
Public method Circle Overloaded. Prints a circle, an ellipse, or an arc on a page.
Public method EndDoc Ends a print operation sent to the Printer object, releasing the document to the print device or spooler.
Public method Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the type of the current instance. (Inherited from Object.)
Public method KillDoc Immediately stops the current print job.
Public method Line Overloaded. Prints lines on a page.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method NewPage Stops the printing on the current page and resumes printing on a new page.
Public method PaintPicture Prints the contents of an image file on a page.
Public method Print Prints text to a page.
Public method PSet Overloaded. Prints a single point on a page.
Public method Scale Overloaded. Defines the coordinate system of the Printer object.
Public method ScaleX Converts the value for the width of a page from one of the units of measure of the ScaleMode property to another.
Public method ScaleY Converts the value for the height of a page from one of the units of measure of the ScaleMode property to another.
Public method TextHeight Returns the height of a text string as it would be printed in the current font.
Public method TextWidth Returns the width of a text string as it would be printed in the current font.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Public method Write Prints text to a page without adding a carriage return.

Top

Properties

  Name Description
Public property ColorMode Gets or sets a value specifying whether the output will print in color or in monochrome on a device that supports color.
Public property Copies Gets or sets a value that determines the number of copies to be printed.
Public property CurrentX Gets or sets the horizontal coordinates for the next printing or drawing method.
Public property CurrentY Gets or sets the vertical coordinates for the next printing or drawing method.
Public property DeviceName Gets the name of the current printer.
Public property DocumentName Gets or sets the document name to display (for example, in a print status dialog box or printer queue) while printing the document.
Public property DrawStyle Gets or sets a value that determines the line style for output from graphics methods.
Public property DrawWidth Gets or sets the line width for output from graphics methods.
Public property Duplex Gets or sets a value that determines whether a page is printed on both sides (if the printer supports this feature).
Public property FillColor Gets or sets the color that is used to fill in shapes created by using the Circle and Line graphics methods.
Public property FillStyle Gets or sets the pattern used to fill shapes created by using the Circle and Line graphics methods.
Public property Font Gets or sets a FontFamily by name.
Public property FontBold Gets or sets the bold font style.
Public property FontCount Returns the number of fonts available for the current display device or active printer.
Public property FontItalic Gets or sets the italic font style.
Public property FontName Gets or sets the name of the font in which text is displayed for a printing operation.
Public property Fonts Gets all font names that are available for the current printer.
Public property FontSize Gets or sets the size of the font that is used for text in a run-time printing operation.
Public property FontStrikethru Gets or sets the strikethrough font style.
Public property FontTransparent Gets or sets a value that determines whether background graphics on a Printer object are printed behind text characters.
Public property FontUnderline Gets or sets the underlined font style.
Public property ForeColor Gets or sets the color in which text and graphics are printed.
Public property Height Gets or sets the height of a page.
Public property IsDefaultPrinter Returns a value that determines whether the currently selected printer is defined as the default printer in Control Panel.
Public property Orientation Gets or sets a value indicating whether documents are printed in portrait or landscape mode.
Public property Page Returns the page number of the page that is currently being printed.
Public property PaperBin Gets or sets a value indicating the default paper bin on the printer from which paper is fed during print operations.
Public property PaperSize Gets or sets a value indicating the paper size for the current printer.
Public property PrintAction Gets or sets a value that determines whether the print output is directed to a printer, to a print preview window, or to a file.
Public property PrintFileName Gets or sets a value that specifies the file name of an Encapsulated PostScript file and the path to which the file will be saved when the PrintAction property is set to PrintToFile.
Public property PrintQuality Gets or sets a value that indicates the printer resolution.
Public property RightToLeft Gets or sets a Boolean value that indicates the text display direction on a right-to-left system.
Public property ScaleHeight Gets or sets the number of units for the vertical measurement of the page when you use graphics methods.
Public property ScaleLeft Gets or sets the horizontal coordinates for the left edge of the page when you are using graphics methods.
Public property ScaleMode Gets or sets a value indicating the unit of measurement for the coordinates of an object when you are using graphics methods.
Public property ScaleTop Gets or sets the vertical coordinates for the top edge of the page when you are using graphics methods.
Public property ScaleWidth Gets or sets the number of units for the horizontal measurement of the page when you use graphics methods.
Public property TwipsPerPixelX Gets a value indicating the number of twips per pixel for an object measured horizontally.
Public property TwipsPerPixelY Gets a value indicating the number of twips per pixel for an object measured vertically.
Public property Width Gets or sets the width of a page.

Top

See Also

Reference

Printer Class

Microsoft.VisualBasic.PowerPacks.Printing.Compatibility.VB6 Namespace