Hide

SftPrintPreview/OCX 1.0 - ActiveX Print Preview Control

Display
Print

SftPrintPreview.GetCurrentPrinter Method

Retrieves the current printer settings.

Syntax

VB.NETInfo = object.GetCurrentPrinter As String
VBInfo = object.GetCurrentPrinter() As String
C#.NETstring Info = object.GetCurrentPrinter();
VC++_bstr_t* Info = object->GetCurrentPrinter();
CHRESULT object->raw_GetCurrentPrinter(BSTR* Info);

object

A SftPrintPreview object.

Info

Retrieves the current printer settings.

Comments

The GetCurrentPrinter method retrieves the current 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 and its settings, 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.