SftPrintPreview/OCX 1.0

SftPrintPreview.GetCurrentPrinter Method

Softel vdm, Inc.

Retrieves the current printer settings.

Syntax       

VB.NET

Info = object.GetCurrentPrinter  As String

VB

Info = object.GetCurrentPrinter()  As String

C#.NET

string Info = object.GetCurrentPrinter();

VC++

_bstr_t* Info = object->GetCurrentPrinter();

C

HRESULT object->raw_GetCurrentPrinter(BSTR* Info);

Delphi

Info := object.GetCurrentPrinter()   : WideString;

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.


Feedback / comments / error reports for this topic
© 2004 - Softel vdm, Inc. - www.windowscontrols.com