Home > BSPrinter documentation > Reference

PrinterReplacement Property


Applies to: Global object


Type: Object


Description:

Returns or sets the new Printer object. It replaces the original VB.Printer object.

It is required in the client program (your program) that this code be added in a bas module:

Public Property Get Printer() As Printer
    Set Printer = PrinterReplacement
End Property

Public Property Set Printer(nPrinter As Printer)
    Set PrinterReplacement = nPrinter
End Property


If the program only has one form, the code can be added just on the form and the procedures can be Private instead of Public.