Printer Class

 

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

Namespace:   Microsoft.VisualBasic.PowerPacks.Printing.Compatibility.VB6
Assembly:  Microsoft.VisualBasic.PowerPacks.Vs (in Microsoft.VisualBasic.PowerPacks.Vs.dll)

System.Object
  Microsoft.VisualBasic.PowerPacks.Printing.Compatibility.VB6.Printer

public class Printer

NameDescription
System_CAPS_pubmethodPrinter()

Initializes a new instance of the Printer class.

NameDescription
System_CAPS_pubpropertyColorMode

Gets or sets a value specifying whether the output will print in color or in monochrome on a device that supports color.

System_CAPS_pubpropertyCopies

Gets or sets a value that determines the number of copies to be printed.

System_CAPS_pubpropertyCurrentX

Gets or sets the horizontal coordinates for the next printing or drawing method.

System_CAPS_pubpropertyCurrentY

Gets or sets the vertical coordinates for the next printing or drawing method.

System_CAPS_pubpropertyDeviceName

Gets the name of the current printer.

System_CAPS_pubpropertyDocumentName

Gets or sets the document name to display (for example, in a print status dialog box or printer queue) while printing the document.

System_CAPS_pubpropertyDrawStyle

Gets or sets a value that determines the line style for output from graphics methods.

System_CAPS_pubpropertyDrawWidth

Gets or sets the line width for output from graphics methods.

System_CAPS_pubpropertyDuplex

Gets or sets a value that determines whether a page is printed on both sides (if the printer supports this feature).

System_CAPS_pubpropertyFillColor

Gets or sets the color that is used to fill in shapes created by using the Circle and Line graphics methods.

System_CAPS_pubpropertyFillStyle

Gets or sets the pattern used to fill shapes created by using the Circle and Line graphics methods.

System_CAPS_pubpropertyFont

Gets or sets a FontFamily by name.

System_CAPS_pubpropertyFontBold

Gets or sets the bold font style.

System_CAPS_pubpropertyFontCount

Returns the number of fonts available for the current display device or active printer.

System_CAPS_pubpropertyFontItalic

Gets or sets the italic font style.

System_CAPS_pubpropertyFontName

Gets or sets the name of the font in which text is displayed for a printing operation.

System_CAPS_pubpropertyFonts[Int32]

Gets all font names that are available for the current printer.

System_CAPS_pubpropertyFontSize

Gets or sets the size of the font that is used for text in a run-time printing operation.

System_CAPS_pubpropertyFontStrikethru

Gets or sets the strikethrough font style.

System_CAPS_pubpropertyFontTransparent

Gets or sets a value that determines whether background graphics on a Printer object are printed behind text characters.

System_CAPS_pubpropertyFontUnderline

Gets or sets the underlined font style.

System_CAPS_pubpropertyForeColor

Gets or sets the color in which text and graphics are printed.

System_CAPS_pubpropertyHeight

Gets or sets the height of a page.

System_CAPS_pubpropertyIsDefaultPrinter

Returns a value that determines whether the currently selected printer is defined as the default printer in Control Panel.

System_CAPS_pubpropertyOrientation

Gets or sets a value indicating whether documents are printed in portrait or landscape mode.

System_CAPS_pubpropertyPage

Returns the page number of the page that is currently being printed.

System_CAPS_pubpropertyPaperBin

Gets or sets a value indicating the default paper bin on the printer from which paper is fed during print operations.

System_CAPS_pubpropertyPaperSize

Gets or sets a value indicating the paper size for the current printer.

System_CAPS_pubpropertyPrintAction

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.

System_CAPS_pubpropertyPrintFileName

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.

System_CAPS_pubpropertyPrintQuality

Gets or sets a value that indicates the printer resolution.

System_CAPS_pubpropertyRightToLeft

Gets or sets a Boolean value that indicates the text display direction on a right-to-left system.

System_CAPS_pubpropertyScaleHeight

Gets or sets the number of units for the vertical measurement of the page when you use graphics methods.

System_CAPS_pubpropertyScaleLeft

Gets or sets the horizontal coordinates for the left edge of the page when you are using graphics methods.

System_CAPS_pubpropertyScaleMode

Gets or sets a value indicating the unit of measurement for the coordinates of an object when you are using graphics methods.

System_CAPS_pubpropertyScaleTop

Gets or sets the vertical coordinates for the top edge of the page when you are using graphics methods.

System_CAPS_pubpropertyScaleWidth

Gets or sets the number of units for the horizontal measurement of the page when you use graphics methods.

System_CAPS_pubpropertyTwipsPerPixelX

Gets a value indicating the number of twips per pixel for an object measured horizontally.

System_CAPS_pubpropertyTwipsPerPixelY

Gets a value indicating the number of twips per pixel for an object measured vertically.

System_CAPS_pubpropertyWidth

Gets or sets the width of a page.

NameDescription
System_CAPS_pubmethodCircle(Boolean, Single, Single, Single, Int32, Single, Single, Single)

Prints a circle, an ellipse, or an arc on a page, specifying whether the center point is relative to the current location.

System_CAPS_pubmethodCircle(Single, Single, Single, Int32, Single, Single, Single)

Prints a circle, an ellipse, or an arc on a page.

System_CAPS_pubmethodEndDoc()

Ends a print operation sent to the Printer object, releasing the document to the print device or spooler.

System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodKillDoc()

Immediately stops the current print job.

System_CAPS_pubmethodLine(Boolean, Single, Single, Boolean, Single, Single, Int32, Boolean, Boolean)

Prints lines, squares, or rectangles on a page.

System_CAPS_pubmethodLine(Single, Single)

Prints lines on a page.

System_CAPS_pubmethodLine(Single, Single, Single, Single, Int32, Boolean, Boolean)

Prints lines, squares, or rectangles on a page.

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodNewPage()

Stops the printing on the current page and resumes printing on a new page.

System_CAPS_pubmethodPaintPicture(Image, Single, Single, Single, Single, Single, Single, Single, Single)

Prints the contents of an image file on a page.

System_CAPS_pubmethodPrint(Object[])

Prints text to a page.

System_CAPS_pubmethodPSet(Boolean, Single, Single, Int32)

Prints a single point in a specified color on a page, optionally specifying a point relative to the current coordinates.

System_CAPS_pubmethodPSet(Single, Single)

Prints a single point on a page.

System_CAPS_pubmethodPSet(Single, Single, Int32)

Prints a single point in a specified color on a page.

System_CAPS_pubmethodScale()

Defines the coordinate system of the Printer object.

System_CAPS_pubmethodScale(Single, Single, Single, Single)

Defines the coordinate system of the Printer object.

System_CAPS_pubmethodScaleX(Single, Int16, Int16)

Converts the value for the width of a page from one of the units of measure of the ScaleMode property to another.

System_CAPS_pubmethodScaleY(Single, Int16, Int16)

Converts the value for the height of a page from one of the units of measure of the ScaleMode property to another.

System_CAPS_pubmethodTextHeight(String)

Returns the height of a text string as it would be printed in the current font.

System_CAPS_pubmethodTextWidth(String)

Returns the width of a text string as it would be printed in the current font.

System_CAPS_pubmethodToString()

(Inherited from Object.)

System_CAPS_pubmethodWrite(Object[])

Prints text to a page without adding a carriage return.

The Visual Basic 6.0 Printer object has no direct equivalent in Visual Basic. The Printer object provides all the properties, methods, and events of the Visual Basic 6.0 Printer object. This enables Visual Basic 6.0 printing code to run after upgrade.

System_CAPS_noteNote

Functions and objects in the Microsoft.VisualBasic.PowerPacks.Printing.Compatibility.VB6 namespace are provided for use by the tools for upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code model differs significantly from the .NET Framework implementation.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: