Hide

SftPrintPreview/OCX 1.0 - ActiveX Print Preview Control

Display
Print

SftPrintPreview.SetCurrentPrinter Method

Changes the current printer and printer settings.

Syntax

VB.NETobject.SetCurrentPrinter(ByVal Printer As String, ByVal Info As String)
VBobject.SetCurrentPrinter(ByVal Printer As String, ByVal Info As String)
C#.NETvoid object.SetCurrentPrinter(string Printer, string Info);
VC++HRESULT object->SetCurrentPrinter(_bstr_t Printer, _bstr_t Info);
CHRESULT object->raw_SetCurrentPrinter(BSTR Printer, BSTR Info);

object

A SftPrintPreview object.

Printer

The name of the printer to become the current printer.

Info

A settings string retrieved using the GetCurrentPrinter method. This value can be an empty string, in which case default settings for the printer are used.

Comments

The SetCurrentPrinter method changes the current printer and printer settings.

The GetCurrentPrinter method returns a string representing printer settings for the current printer. If no printer is available, an empty, zero-length string is returned. The printer settings string contains all current printer settings and can be saved by the application (Registry, INI file, etc.). The SetCurrentPrinter method can be used to restore this printer, using the saved information, at a later time.

The current printer name can be retrieved and defined using the Printer.Name property.

See Also SftPrintPreview Object | Object Hierarchy


Last Updated 08/13/2020 - (email)
© 2024 Softel vdm, Inc.